123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688 |
- -- get Boilerplate for Translations
- local S = cannabis.S
- local path = cannabis.path
- --[[minetest.register_craftitem("cannabis:joint_fumo_acceso", {
- description = S("Joint of hash lit"),
- inventory_image = "joint_joint_fac.png",
- stack_max = 1 ,
- on_use = function(pos,player,pointed_thing)
- local p = player:get_pos()
- minetest.add_particlespawner({
- amount = 600,
- time = 3,
- minpos = {x=p.x-2,y=p.y+1,z=p.z-1},
- maxpos = {x=p.x+2,y=p.y+15,z=p.z+2},
- minvel = {x=0.2, y=0.2, z=0.2},
- maxvel = {x=0.4, y=0.8, z=0.4},
- minacc = {x=-0.2,y=0,z=-0.2},
- maxacc = {x=0.2,y=0.1,z=0.2},
- minexptime = 6,
- maxexptime = 8,
- minsize = 10,
- maxsize = 12,
- collisiondetection = false,
- vertical = false,
- texture = "j_smoke.png",
- -- playername = player
- toggle_eyes(player:get_player_name(), 1)
-
- })
- minetest.sound_play("canapa_joint", {
- to_player = "",
- gain = 1.0,
- })
- after_use=minetest.item_eat(2)
- after_use =function(itemstack, user, pointed_thing)
- itemstack:take_item()
- return
- end
-
- end
- }) ]]
- --______________________________________________________________________________________________________________________________________________
- --| |
- --| CRAFT ITEM JOINT |
- --|_____________________________________________________________________________________________________________________________________________|
-
-
- --_______________________________________________________________________fumo spento___________________________________________________________________
- minetest.register_craftitem("cannabis:joint_fumo_spento", {
- description = S("Joint of hash unlit"),
- inventory_image = "joint_joint_fsp.png",
-
- })
- --_______________________________________________________________________erba verde spento_____________________________________________________________
- minetest.register_craftitem("cannabis:joint_erba_spento", {
- description = S("Joint of weed unlit"),
- inventory_image = "joint_joint_csp.png",
-
- })
- --_______________________________________________________________________erba rossa spento_____________________________________________________________
- minetest.register_craftitem("cannabis:joint_erba_rossa_spento", {
- description = S("Joint of red_weed unlit"),
- inventory_image = "joint_joint_cspr.png",
-
- })
- --_______________________________________________________________________erba ice spento_______________________________________________________________
- minetest.register_craftitem("cannabis:joint_erba_ice_spento", {
- description = S("Joint of ice_weed unlit"),
- inventory_image = "joint_joint_cspi.png",
-
- })
- --_______________________________________________________________________FUMO ACCESO___________________________________________________________________
- --[[ ___________________________________________________________________________________________________________________________________________________________
- | |
- | |
- | local item = ItemStack("my_mod:my_item") --aggiunge un item dopo l uso codice da mettere alla fine come il codice del sound |
- | player:get_inventory():add_item("main", item) |
- | |
- | |
- |___________________________________________________________________________________________________________________________________________________________|]]
-
- minetest.register_craftitem("cannabis:joint_fumo_acceso", {
- description = S("Joint of hash lit"),
- inventory_image = "joint_joint_fac.png",
- stack_max = 1,
- on_use = function(itemstack,player,pointed_thing)
- if itemstack:take_item() ~= nil then
- local p = player:get_pos()
- minetest.add_particlespawner({
- amount = 600,
- time = 3,
- minpos = {x=p.x-2,y=p.y+1,z=p.z-1},
- maxpos = {x=p.x+2,y=p.y+15,z=p.z+2},
- minvel = {x=0.2, y=0.2, z=0.2},
- maxvel = {x=0.4, y=0.8, z=0.4},
- minacc = {x=-0.2,y=0,z=-0.2},
- maxacc = {x=0.2,y=0.1,z=0.2},
- minexptime = 6,
- maxexptime = 8,
- minsize = 10,
- maxsize = 12,
- collisiondetection = false,
- vertical = false,
- texture = "j_smoke_f.png"
- })
- minetest.sound_play("canapa_joint", { to_player = "", gain = 1.0 })
- toggle_f_eyes(player:get_player_name(), 1)
- local new_stack = ItemStack("cannabis:joint_fumo_acceso_m")
- return new_stack
- end
- end
- })
- --_______________________________________________________________________FUMO ACCESO CONSUMATO_______________________________________________________
-
- minetest.register_craftitem("cannabis:joint_fumo_acceso_m", {
- description = S("Half Joint of hash lit"),
- inventory_image = "joint_joint_fac_m.png",
- stack_max = 1,
- on_use = function(itemstack,player,pointed_thing)
- if itemstack:take_item() ~= nil then
- local p = player:get_pos()
- minetest.add_particlespawner({
- amount = 500,
- time = 3,
- minpos = {x=p.x-2,y=p.y+1,z=p.z-1},
- maxpos = {x=p.x+2,y=p.y+15,z=p.z+2},
- minvel = {x=0.2, y=0.2, z=0.2},
- maxvel = {x=0.4, y=0.8, z=0.4},
- minacc = {x=-0.2,y=0,z=-0.2},
- maxacc = {x=0.2,y=0.1,z=0.2},
- minexptime = 6,
- maxexptime = 8,
- minsize = 10,
- maxsize = 12,
- collisiondetection = false,
- vertical = false,
- texture = "j_smoke_f.png"
- })
- minetest.sound_play("canapa_joint_f", { to_player = "", gain = 1.0 })
- toggle_f_eyes(player:get_player_name(), 1)
- return itemstack
- end
- end
- })
- --______________________________________________________________________ E. VERDE ACCESA_________________________________________________
- minetest.register_craftitem("cannabis:joint_erba_acceso", {
- description = S("Joint of weed lit"),
- inventory_image = "joint_joint_cac.png",
- stack_max = 1 ,
- -- post_effect_color = smokeCOLOR,
- on_use =function(itemstack,player,pointed_thing)
- if itemstack:take_item() ~= nil then
- local p = player:get_pos()
- minetest.add_particlespawner({
- amount = 600,
- time = 3,
- minpos = {x=p.x-2,y=p.y+1,z=p.z-1},
- maxpos = {x=p.x+2,y=p.y+15,z=p.z+2},
- minvel = {x=0.2, y=0.2, z=0.2},
- maxvel = {x=0.4, y=0.8, z=0.4},
- minacc = {x=-0.2,y=0,z=-0.2},
- maxacc = {x=0.2,y=0.1,z=0.2},
- minexptime = 6,
- maxexptime = 8,
- minsize = 10,
- maxsize = 12,
- collisiondetection = false,
- vertical = false,
- texture = "j_smoke_v.png",
- })
- minetest.sound_play("canapa_joint_v", { to_player = "", gain = 1.0 })
- toggle_v_eyes(player:get_player_name(), 1)
- local new_stack = ItemStack("cannabis:joint_erba_acceso_m") -- sostituisce un item con un altro item
- return new_stack
- end
- end
- })
- --_______________________________________________________________________E. VERDE CONSUMATA_______________________________________
-
- minetest.register_craftitem("cannabis:joint_erba_acceso_m", {
- description = S("Half Joint of weed lit"),
- inventory_image = "joint_joint_cac_m.png",
- stack_max = 1,
- on_use = function(itemstack,player,pointed_thing)
- if itemstack:take_item() ~= nil then
- local p = player:get_pos()
- minetest.add_particlespawner({
- amount = 500,
- time = 3,
- minpos = {x=p.x-2,y=p.y+1,z=p.z-1},
- maxpos = {x=p.x+2,y=p.y+15,z=p.z+2},
- minvel = {x=0.2, y=0.2, z=0.2},
- maxvel = {x=0.4, y=0.8, z=0.4},
- minacc = {x=-0.2,y=0,z=-0.2},
- maxacc = {x=0.2,y=0.1,z=0.2},
- minexptime = 6,
- maxexptime = 8,
- minsize = 10,
- maxsize = 12,
- collisiondetection = false,
- vertical = false,
- texture = "j_smoke_v.png"
- })
- minetest.sound_play("canapa_joint_v", { to_player = "", gain = 1.0 })
- toggle_v_eyes(player:get_player_name(), 1)
- return itemstack
- end
- end
- })
-
- --_______________________________________________________________________E. ROSSA______________________________________
- minetest.register_craftitem("cannabis:joint_erba_rossa_acceso", {
- description = S("Joint of red weed lit"),
- inventory_image = "joint_joint_cacr.png",
- stack_max = 1 ,
- on_use =function(itemstack,player,pointed_thing)
- if itemstack:take_item() ~= nil then
- local p = player:get_pos()
- minetest.add_particlespawner({
- amount = 600,
- time = 3,
- minpos = {x=p.x-2,y=p.y+1,z=p.z-1},
- maxpos = {x=p.x+2,y=p.y+15,z=p.z+2},
- minvel = {x=0.2, y=0.2, z=0.2},
- maxvel = {x=0.4, y=0.8, z=0.4},
- minacc = {x=-0.2,y=0,z=-0.2},
- maxacc = {x=0.2,y=0.1,z=0.2},
- minexptime = 6,
- maxexptime = 8,
- minsize = 10,
- maxsize = 12,
- collisiondetection = false,
- vertical = false,
- texture = "j_smoke_r.png",
- })
- minetest.sound_play("canapa_joint_r", { to_player = "", gain = 1.0 })
- toggle_r_eyes(player:get_player_name(), 1)
- local new_stack = ItemStack("cannabis:joint_erba_rossa_acceso_m") -- sostituisce un item con un altro item
- return new_stack
- end
- end
- })
- --_______________________________________________________________________E.ROSSA ACCESA CONSUMATA_______________________
-
- minetest.register_craftitem("cannabis:joint_erba_rossa_acceso_m", {
- description = S("Half Joint of red weed lit"),
- inventory_image = "joint_joint_cacr_m.png",
- stack_max = 1,
- on_use = function(itemstack,player,pointed_thing)
- if itemstack:take_item() ~= nil then
- local p = player:get_pos()
- minetest.add_particlespawner({
- amount = 500,
- time = 3,
- minpos = {x=p.x-2,y=p.y+1,z=p.z-1},
- maxpos = {x=p.x+2,y=p.y+15,z=p.z+2},
- minvel = {x=0.2, y=0.2, z=0.2},
- maxvel = {x=0.4, y=0.8, z=0.4},
- minacc = {x=-0.2,y=0,z=-0.2},
- maxacc = {x=0.2,y=0.1,z=0.2},
- minexptime = 6,
- maxexptime = 8,
- minsize = 10,
- maxsize = 12,
- collisiondetection = false,
- vertical = false,
- texture = "j_smoke_r.png"
- })
- minetest.sound_play("canapa_joint_r", { to_player = "", gain = 1.0 })
- toggle_r_eyes(player:get_player_name(), 1)
- return itemstack
- end
- end
- })
- --_______________________________________________________________________E. ICE____________________________________________
- minetest.register_craftitem("cannabis:joint_erba_ice_acceso", {
- description = S("Joint of ice_weed lit"),
- inventory_image = "joint_joint_caci.png",
- stack_max = 1 ,
- -- post_effect_color = smokeCOLOR,
- on_use =function(itemstack,player,pointed_thing)
- if itemstack:take_item() ~= nil then
- local p = player:get_pos()
- minetest.add_particlespawner({
- amount = 600,
- time = 3,
- minpos = {x=p.x-2,y=p.y+1,z=p.z-1},
- maxpos = {x=p.x+2,y=p.y+15,z=p.z+2},
- minvel = {x=0.2, y=0.2, z=0.2},
- maxvel = {x=0.4, y=0.8, z=0.4},
- minacc = {x=-0.2,y=0,z=-0.2},
- maxacc = {x=0.2,y=0.1,z=0.2},
- minexptime = 6,
- maxexptime = 8,
- minsize = 10,
- maxsize = 12,
- collisiondetection = false,
- vertical = false,
- texture = "j_smoke_i.png",
- })
- minetest.sound_play("canapa_joint_i", { to_player = "", gain = 1.0 })
- toggle_i_eyes(player:get_player_name(), 1)
- local new_stack = ItemStack("cannabis:joint_erba_ice_acceso_m") -- sostituisce un item con un altro item
- return new_stack
- end
- end
- })
- --_______________________________________________________________________E. ICE ACCESA CONSUMATA_______________________________
-
- minetest.register_craftitem("cannabis:joint_erba_ice_acceso_m", {
- description = S("Half Joint of ice_weed lit"),
- inventory_image = "joint_joint_caci_m.png",
- stack_max = 1,
- on_use = function(itemstack,player,pointed_thing)
- if itemstack:take_item() ~= nil then
- local p = player:get_pos()
- minetest.add_particlespawner({
- amount = 500,
- time = 3,
- minpos = {x=p.x-2,y=p.y+1,z=p.z-1},
- maxpos = {x=p.x+2,y=p.y+15,z=p.z+2},
- minvel = {x=0.2, y=0.2, z=0.2},
- maxvel = {x=0.4, y=0.8, z=0.4},
- minacc = {x=-0.2,y=0,z=-0.2},
- maxacc = {x=0.2,y=0.1,z=0.2},
- minexptime = 6,
- maxexptime = 8,
- minsize = 10,
- maxsize = 12,
- collisiondetection = false,
- vertical = false,
- texture = "j_smoke_i.png"
- })
- minetest.sound_play("canapa_joint_i", { to_player = "", gain = 1.0 })
- toggle_i_eyes(player:get_player_name(), 1)
- return itemstack
- end
- end
- })
- --______________________________________________________________________________________________________________________________________________
- --| |
- --| CRAFTITEM STAFF |
- --|_____________________________________________________________________________________________________________________________________________|
- --_______________________________________________________________________INFIORESCENZA VERDE TRITURATA____________________________________________
- minetest.register_craftitem("cannabis:joint_cima", {
- description = S("Flowering chopped"),
- inventory_image = "joint_cima_s.png",
-
- })
- --_______________________________________________________________________INFIORESCENZA ROSSA TRITURATA____________________________________________
- minetest.register_craftitem("cannabis:joint_cimar", {
- description = S("Red flowering chopped"),
- inventory_image = "joint_cima_sr.png",
-
- })
- --_______________________________________________________________________INFIORESCENZA ICE TRITURATA____________________________________________
- minetest.register_craftitem("cannabis:joint_cimai", {
- description = S("Ice flowering chopped"),
- inventory_image = "joint_cima_si.png",
-
- })
- --_______________________________________________________________________FUMO SQUAGLIATO______________________________________________________
- minetest.register_craftitem("cannabis:joint_fumo", {
- description = S("Hash melted"),
- inventory_image = "joint_fumo_s.png",
-
- })
- --_______________________________________________________________________CARTINE______________________________________________________________
- minetest.register_craftitem("cannabis:joint_cartina", {
- description = S("Rolling paper"),
- inventory_image = "joint_cartina.png",
-
- })
- --_______________________________________________________________________CARTINA DA ARROTOLARE CON CIMA VERDE E FOGLIE__________________________
- minetest.register_craftitem("cannabis:joint_cartina_cima", {
- description = S("Rolling paper with hemp leaves and flowering chopped "),
- inventory_image = "joint_cartina_cima.png",
- })
- --_______________________________________________________________________CARTINA DA ARROTOLARE CON CIMA ROSSA E FOGLIE__________________________
- minetest.register_craftitem("cannabis:joint_cartina_cimar", {
- description = S("Rolling paper with hemp leaves and red flowering chopped "),
- inventory_image = "joint_cartina_cimar.png",
- })
- --_______________________________________________________________________CARTINA DA ARROTOLARE CON CIMA ICE E FOGLIE__________________________
- minetest.register_craftitem("cannabis:joint_cartina_cimai", {
- description = S("Rolling paper with hemp leaves and ice flowering chopped "),
- inventory_image = "joint_cartina_cimai.png",
- })
- --_______________________________________________________________________CARTINA DA ARROTOLARE CON FUMO E FOGLIE_________________________________
- minetest.register_craftitem("cannabis:joint_cartina_fumo", {
- description = S("Rolling paper with hemp leaves and melted hash"),
- inventory_image = "joint_cartina_fumo.png",
-
- })
- --_______________________________________________________________________SCATOLA DI FILTRI________________________________________________________
- minetest.register_craftitem("cannabis:joint_filter_box", {
- description = S("Filters pack"),
- inventory_image = "joint_filter_p.png",
-
- })
- --_______________________________________________________________________FILTRI ARROTOLATI________________________________________________________
- minetest.register_craftitem("cannabis:joint_filter", {
- description = S("Filter"),
- inventory_image = "joint_filter.png",
-
- })
- --_______________________________________________________________________ACCENDINO_________________________________________________________________
- minetest.register_craftitem("cannabis:joint_lighter", {
- description = S("Lighter"),
- inventory_image = "joint_accendino.png",
-
- })
- --______________________________________________________________________________________________________________________________________________
- --| |
- --| CRAFT JOINT |
- --|_____________________________________________________________________________________________________________________________________________|
- --_______________________________________________________________________FUMO SPENTO_________________
- minetest.register_craft({
- output = "cannabis:joint_fumo_spento ",
- recipe = {
- {"","",""},
- {"","",""},
- {"cannabis:joint_filter","cannabis:joint_cartina_fumo",""},
- }
- })
- --_______________________________________________________________________FUMO ACCESO_________________
- minetest.register_craft({
- output = "cannabis:joint_fumo_acceso ",
-
- recipe = {
- --{"","",""},
- {"cannabis:joint_fumo_spento"},
-
- {"cannabis:joint_lighter"},
- }
- })
- --_______________________________________________________________________ERBA VERDE SPENTO___________
- minetest.register_craft({
- output = "cannabis:joint_erba_spento ",
- recipe = {
- {"","",""},
- {"","",""},
- {"cannabis:joint_filter","cannabis:joint_cartina_cima",""},
- }
- })
- --_______________________________________________________________________ERBA VERDE ACCESO___________
- minetest.register_craft({
- output = "cannabis:joint_erba_acceso ",
- recipe = {
- --{"","",""},
- {"cannabis:joint_erba_spento"},
- {"cannabis:joint_lighter"},
- }
- })
- --_______________________________________________________________________ERBA ROSSA SPENTO___________
- minetest.register_craft({
- output = "cannabis:joint_erba_rossa_spento ",
- recipe = {
- {"","",""},
- {"","",""},
- {"cannabis:joint_filter","cannabis:joint_cartina_cimar",""},
- }
- })
- --_______________________________________________________________________ERBA ROSSA ACCESO___________
- minetest.register_craft({
- output = "cannabis:joint_erba_rossa_acceso ",
- recipe = {
- --{"","",""},
- {"cannabis:joint_erba_rossa_spento"},
- {"cannabis:joint_lighter"},
- }
- })
- --_______________________________________________________________________ERBA ICE SPENTO___________
- minetest.register_craft({
- output = "cannabis:joint_erba_ice_spento ",
- recipe = {
- {"","",""},
- {"","",""},
- {"cannabis:joint_filter","cannabis:joint_cartina_cimai",""},
- }
- })
- --_______________________________________________________________________ERBA ICE ACCESO___________
- minetest.register_craft({
- output = "cannabis:joint_erba_ice_acceso ",
- recipe = {
- --{"","",""},
- {"cannabis:joint_erba_ice_spento"},
- {"cannabis:joint_lighter"},
- }
- })
- --______________________________________________________________________________________________________________________________________________
- --| |
- --| CRAFT JOINT STAFF |
- --|_____________________________________________________________________________________________________________________________________________|
- --_________________________________________________________________________________________
- --_______________________________________________________________________SQUAGLIARE FUMO______
- minetest.register_craft({
- output = "cannabis:joint_fumo 3 ",
- recipe = {
- {"","",""},
- {"","cannabis:canapa_raisin",""},
- {"","cannabis:joint_lighter",""},
- }
- })
- --_______________________________________________________________________MESCOLA CIMA_______________________
-
- local Color_list = {
- { "canapa_red_flower", "canapa_red_leaves"},
- { "canapa_flower", "canapa_leaves"},
- { "canapa_ice_flower", "canapa_ice_leaves"},
-
- }
- for i in ipairs(Color_list) do
- local flowers = Color_list[i][1]
- local leaves = Color_list[i][2]
-
-
- --_______________________________________________________________________MESCOLA CIMA VERDE CON FOGLIE_______________________
-
-
- minetest.register_craft({
- output = "cannabis:joint_cima 3 ",
- recipe = {
- {"","cannabis:"..leaves.."",""},
- {"","cannabis:canapa_flower",""},
- {"","cannabis:"..leaves.."",""},
- }
- })
- --_______________________________________________________________________MESCOLA CIMA ROSSA CON FOGLIE_______________________
- minetest.register_craft({
- output = "cannabis:joint_cimar 3 ",
- recipe = {
- {"","cannabis:"..leaves.."",""},
- {"","cannabis:canapa_red_flower",""},
- {"","cannabis:"..leaves.."",""},
- }
- })
- --_______________________________________________________________________MESCOLA CIMA ICE CON FOGLIE_______________________
- minetest.register_craft({
- output = "cannabis:joint_cimai 3 ",
- recipe = {
- {"","cannabis:"..leaves.."",""},
- {"","cannabis:canapa_ice_flower",""},
- {"","cannabis:"..leaves.."",""},
- }
- })
- --____________________________________________________________________________________________________
-
-
- --______________________________________________________________________________
- --craft
- --____________________________________________________________________accendino__________
- minetest.register_craft({
- output = "cannabis:joint_lighter 5 ",
- recipe = {
- {"default:steel_ingot","fire:flint_and_steel","cannabis:canapa_plastic"},
- {"cannabis:canapa_plastic","cannabis:canapa_fuel","cannabis:canapa_plastic"},
- {"cannabis:canapa_plastic","cannabis:canapa_plastic","cannabis:canapa_plastic"},
- }
- })
- --_______________________________________________________________________cartina__________________
- minetest.register_craft({
- output = "cannabis:joint_cartina 10 ",
- recipe = {
- {"","",""},
- {"","",""},
- {"cannabis:canapa_paper","cannabis:canapa_paper","cannabis:canapa_paper"},
- }
- })
- --_______________________________________________________________________mettere la mescola d erba verde nella cartina___________________________________
- minetest.register_craft({
- output = "cannabis:joint_cartina_cima ",
- recipe = {
- {"","",""},
- {"","cannabis:joint_cima","cannabis:"..leaves..""},
- {"","cannabis:joint_cartina",""},
- }
- })
- --_______________________________________________________________________mettere la mescola d erba rossa nella cartina___________________________________
- minetest.register_craft({
- output = "cannabis:joint_cartina_cimar ",
- recipe = {
- {"","",""},
- {"","cannabis:joint_cimar","cannabis:"..leaves..""},
- {"","cannabis:joint_cartina",""},
- }
- })
- --_______________________________________________________________________mettere la mescola d erba ice nella cartina___________________________________
- minetest.register_craft({
- output = "cannabis:joint_cartina_cimai ",
- recipe = {
- {"","",""},
- {"","cannabis:joint_cimai","cannabis:"..leaves..""},
- {"","cannabis:joint_cartina",""},
- }
- })
- --________________________________________________________________________mettere la mescola fumo foglie nella cartina fare table per usare tutte le foglie
- minetest.register_craft({
- output = "cannabis:joint_cartina_fumo ",
- recipe = {
- {"","",""},
- {"","cannabis:joint_fumo","cannabis:"..leaves..""},
- {"","cannabis:joint_cartina",""},
- }
- })
- --________________________________________________________________________box filtri___________________________________________________________________________
- minetest.register_craft({
- output = "cannabis:joint_filter_box ",
- recipe = {
- {"","",""},
- {"cannabis:canapa_paper","cannabis:canapa_paper",""},
- {"cannabis:canapa_paper","cannabis:canapa_paper",""},
- }
- })
- --__________________________________________________________________________arrotolare filtri__________________________________________________________________
- minetest.register_craft({
- type = "shapeless",
- output = "cannabis:joint_filter 10 ",
- recipe = {"cannabis:joint_filter_box"}
- })
- --_______________________________________________________________________accendino con torch________________________________________________________________
-
- minetest.register_craft({
- output = "cannabis:joint_lighter 3 ",
- recipe = {
- {"default:steel_ingot","default:torch","cannabis:canapa_plastic"},
- {"cannabis:canapa_plastic","cannabis:canapa_fuel","cannabis:canapa_plastic"},
- {"cannabis:canapa_plastic","cannabis:canapa_plastic","cannabis:canapa_plastic"},
- }
- })
- -----------------------------------------
- --local smokeCOLOR = {
- -- green = { a=64, r=1, g=255, b=1 } ,
- -- blue = { a=64, r=1, g=1, b=25 },
- --}
- -- Iterate through waters.
- -- Color wll be the key (green or blue)
- -- underwatercolor will be the value (one of the tables above)
- --for color, smokecolor in pairs(smokeCOLOR) do
- -- water
- --end
- --________________________________________________________________________accendino con acciarino vedere flint e still acciarino per dare stesse funzioni ad accendino
- if minetest.get_modpath("fire") then
- minetest.register_craft({
- output = "cannabis:joint_lighter 10 ",
- recipe = {
- {"default:steel_ingot","fire:flint_and_steel","cannabis:canapa_plastic"},
- {"cannabis:canapa_plastic","cannabis:canapa_fuel","cannabis:canapa_plastic"},
- {"cannabis:canapa_plastic","cannabis:canapa_plastic","cannabis:canapa_plastic"},
- }
- })
- end
- end
|