Merge branch 'master' of https://github.com/IIIullaIII/CANNABIS_MOD into IIIullaIII-master

master
A.C.M 2020-05-07 20:50:30 +02:00
commit 9e4636877d
15 changed files with 257 additions and 219 deletions

View File

@ -22,7 +22,7 @@ minetest.register_node("cannabis:canapa", {
items = { items = {
{items = {"cannabis:canapa"}, rarity = 1 }, {items = {"cannabis:canapa"}, rarity = 1 },
{items = {"cannabis:canapa_leaves"}, rarity = 1 }, {items = {"cannabis:canapa_leaves"}, rarity = 1 },
{items = {"cannabis:canapa_seed"}, rarity = 1 }, -- {items = {"cannabis:canapa_seed"}, rarity = 1 },
} }
}, },
after_dig_node = function(pos, node, metadata, digger) after_dig_node = function(pos, node, metadata, digger)
@ -34,10 +34,16 @@ minetest.register_node("cannabis:canapa", {
function minetest.grow_canapa(pos, node) function minetest.grow_canapa(pos, node)
pos.y = pos.y - 1 pos.y = pos.y - 1
local name = minetest.get_node(pos).name local name = minetest.get_node(pos).name
if name ~= "default:dirt_with_grass" and name ~= "default:dirt" then if name ~= "default:dirt_with_grass"
and name ~= "default:dirt"
and name ~= "default:dirt_with_rainforest_litter"
and name ~= "default:dry_dirt"
and name ~= "default:dirt_with_snow"
and name ~= "default:dirt_with_coniferous_litter"
then
return return
end end
if not minetest.find_node_near(pos, 1, {"group:water"}) then if not minetest.find_node_near(pos, 3, {"group:water"}) then
return return
end end
pos.y = pos.y + 1 pos.y = pos.y + 1
@ -47,19 +53,30 @@ function minetest.grow_canapa(pos, node)
pos.y = pos.y + 1 pos.y = pos.y + 1
node = minetest.get_node(pos) node = minetest.get_node(pos)
end end
if height==6 then
minetest.set_node(pos, {name = "cannabis:flowering"})
--minetest.swap_node(pos, {name = "grow:liva2" })
else
if height == 6 or node.name ~= "air" then if height == 6 or node.name ~= "air" then
return return
end end
minetest.set_node(pos, {name = "cannabis:canapa"}) minetest.set_node(pos, {name = "cannabis:canapa"})
return true return true
end end
end
--mapgen --mapgen
minetest.register_abm({ minetest.register_abm({
label = "Grow canapa", label = "Grow canapa",
nodenames = {"cannabis:canapa"}, nodenames = {"cannabis:canapa"},
neighbors ={"default:dirt_with_grass"}, neighbors ={"default:dirt_with_grass",
interval = 14, "default:dirt",
chance = 71, "default:dirt_with_rainforest_litter",
"default:dry_dirt",
"default:dirt_with_snow",
"default:dirt_with_coniferous_litter"
},
interval = 2,
chance = 10,
action = function(...) action = function(...)
minetest.grow_canapa(...) minetest.grow_canapa(...)
end end
@ -88,7 +105,8 @@ minetest.register_biome({
minetest.register_decoration({ minetest.register_decoration({
deco_type = "simple", deco_type = "simple",
place_on = {"default:dirt_with_grass"}, place_on = {"default:dirt_with_grass",
"default_dirt"},
sidelen = 16, sidelen = 16,
noise_params = { noise_params = {
offset = -0.3, offset = -0.3,
@ -98,12 +116,16 @@ minetest.register_biome({
octaves = 3, octaves = 3,
persist = 1.5 persist = 1.5
}, },
biomes = {"canapa_swamp"}, fill_ratio = 0.03,
biomes = {"canapa_swamp",
"tundra_beach",
"savanna_shore",
"delicious_forest_shore"},
y_min = 1, y_min = 1,
y_max = 5, y_max = 5,
decoration = "cannabis:canapa", decoration = "cannabis:canapa",
height = 5, height = 5,
height_max = 5, height_max = 0,
spawn_by = "default:water_source", spawn_by = "default:water_source",
num_spawn_by = 1, num_spawn_by = 1,
}) })
@ -159,7 +181,27 @@ minetest.register_node('cannabis:sproutling', {
sounds = "cannabis_canapa_s3", sounds = "cannabis_canapa_s3",
buildable_to = true, buildable_to = true,
}) })
minetest.register_node('cannabis:flowering', {
description = S("Hemp (flowering)"),
drawtype = 'plantlike',
waving = 1,
tiles = { 'cannabis_canapa_flower.png' },
inventory_image = 'cannabis_canapa_flower.png',
wield_image = 'cannabis_canapa_flower.png',
sunlight_propagates = true,
paramtype = 'light',
walkable = false,
groups = { snappy = 3, poisonivy=1, flora_block=1 },
sounds = "cannabis_canapa_s3",
buildable_to = true,
drop = {
max_items = 3,
items = {
{items = {"cannabis:canapa_flower"}, rarity = 1 },
-- {items = {"cannabis:canapa_leaves"}, rarity = 1 },
{items = {"cannabis:canapa_seed"}, rarity = 1 },
}}
})
minetest.register_node('cannabis:climbing', { minetest.register_node('cannabis:climbing', {
description = S("Hemp (climbing plant)"), description = S("Hemp (climbing plant)"),
drawtype = 'signlike', drawtype = 'signlike',

View File

@ -22,19 +22,25 @@ minetest.register_node("cannabis:canapa_red", {
items = { items = {
{items = {"cannabis:canapa_red"}, rarity = 1 }, {items = {"cannabis:canapa_red"}, rarity = 1 },
{items = {"cannabis:canapa_red_leaves"}, rarity = 1 }, {items = {"cannabis:canapa_red_leaves"}, rarity = 1 },
{items = {"cannabis:canapa_red_seed"}, rarity = 1 }, --{items = {"cannabis:canapa_red_seed"}, rarity = 1 },
} }
}, },
after_dig_node = function(pos, node, metadata, digger) after_dig_node = function(pos, node, metadata, digger)
default.dig_up(pos, node, digger) default.dig_up(pos, node, digger)
end, end,
}) })
--____________________________________
--___________________________________
--function --function
function minetest.grow_canapa_red(pos, node) function minetest.grow_canapa_red(pos, node)
pos.y = pos.y - 1 pos.y = pos.y - 1
local name = minetest.get_node(pos).name local name = minetest.get_node(pos).name
if name ~= "default:desert_sand" and name ~= "default:sand" then if name ~= "default:sand" and name ~= "default:desert_sand"
and name ~= "default:silver_sand"
and name ~= "default:dry_dirt_with_dry_grass" then
return return
end end
if not minetest.find_node_near(pos, 5, {"group:water"}) then if not minetest.find_node_near(pos, 5, {"group:water"}) then
@ -47,19 +53,26 @@ function minetest.grow_canapa_red(pos, node)
pos.y = pos.y + 1 pos.y = pos.y + 1
node = minetest.get_node(pos) node = minetest.get_node(pos)
end end
if height == 5 or node.name ~= "air" then if height==6 then
minetest.set_node(pos, {name = "cannabis:flowering_red"})
else
if height == 6 or node.name ~= "air" then
return return
end end
minetest.set_node(pos, {name = "cannabis:canapa_red"}) minetest.set_node(pos, {name = "cannabis:canapa_red"})
return true return true
end end
end
--mapgen --mapgen
minetest.register_abm({ minetest.register_abm({
label = "Grow canapa red", label = "Grow canapa red",
nodenames = {"cannabis:canapa_red"}, nodenames = {"cannabis:canapa_red"},
neighbors ={"default:desert_sand","default:sand"}, neighbors ={"default:sand",
interval = 5, "default:desert_sand",
chance = 40, "default:silver_sand",
"default:dry_dirt_with_dry_grass"},
interval = 2,
chance = 10,
action = function(...) action = function(...)
minetest.grow_canapa_red(...) minetest.grow_canapa_red(...)
end end
@ -176,3 +189,23 @@ minetest.register_node('cannabis:climbing_r', {
}, },
buildable_to = true, buildable_to = true,
}) })
minetest.register_node('cannabis:flowering_red', {
description = S("Hemp (Red flowering)"),
drawtype = 'plantlike',
waving = 1,
tiles = { 'cannabis_canapa_red_flower.png' },
inventory_image = 'cannabis_canapa_red_flower.png',
wield_image = 'cannabis_canapa_red_flower.png',
sunlight_propagates = true,
paramtype = 'light',
walkable = false,
groups = { snappy = 3, poisonivy=1, flora_block=1 },
sounds = "cannabis_canapa_s3",
buildable_to = true,
drop = {
max_items = 3,
items = {
{items = {"cannabis:canapa_flower"}, rarity = 1 },
{items = {"cannabis:canapa_red_seed"}, rarity = 1 },
}}
})

30
cannabis/init.lua Normal file
View File

@ -0,0 +1,30 @@
--aliases
--minetest.get_modpath("cannabis")
minetest.register_alias("canapa","cannabis:canapa")
--tools
cannabis = {} -- A global Object for the mod
cannabis.path = minetest.get_modpath("cannabis") -- The path of the mod
local path = cannabis.path
-- Get Boilerplate to translate
local S
if(minetest.get_translator) then
S = minetest.get_translator(minetest.get_current_modname())
else
S = function ( s ) return s end
end
cannabis.S = S -- Stores the boilerplate for global access
dofile(path.."/tools.lua")
dofile(path.."/canapa.lua")
dofile(path.."/node_ingot.lua")
dofile(path.."/craftitem.lua")
dofile(path.."/armor.lua")
dofile(path.."/joint.lua")
dofile(path.."/canapa_rossa.lua")
dofile(path.."/craftred.lua")
dofile(path.."/rope.lua")

3
cannabis/mod.conf Normal file
View File

@ -0,0 +1,3 @@
name = cannabis
depends = default, fire
optional_default = 3d_armor, maptools

View File

@ -1,14 +1,14 @@
-- get Boilerplate for Translations -- get Boilerplate for Translations
local S = cannabis.S local S = cannabis.S
--craft item :fiber, fuel, plastic, paper,flower,oil,flour,bred,raisin,seed,leaves --craft item :fiber, fuel, plastic, paper,flower,oil,flour,bred,resin,seed,leaves
minetest.register_craftitem("cannabis:canapa_fiber", { minetest.register_craftitem("cannabis:canapa_fiber", {
description = S("Fiber"), description = S("Fiber"),
inventory_image = "cannabis_canapa_fiber.png", inventory_image = "cannabis_canapa_fiber.png",
}) })
minetest.register_craftitem("cannabis:canapa_fuel", { minetest.register_craftitem("cannabis:canapa_fuel", {
description = S("Fuel"), description = S("BioFuel"),
inventory_image = "cannabis_fuel.png", inventory_image = "cannabis_fuel.png",
}) })
@ -51,7 +51,7 @@ minetest.register_craftitem("cannabis:canapa_flower", {
}) })
minetest.register_craftitem("cannabis:canapa_raisin", { minetest.register_craftitem("cannabis:canapa_raisin", {
description = S("Hemp Raisin"), description = S("Hemp Resin"),
inventory_image = "cannabis_canapa_raisin.png", inventory_image = "cannabis_canapa_raisin.png",
on_use = minetest.item_eat(5), on_use = minetest.item_eat(5),
}) })
@ -133,14 +133,7 @@ minetest.register_craft({
}) })
minetest.register_craft({
output = "cannabis:canapa_flower 5 ",
recipe = {
{"","",""},
{"","",""},
{"cannabis:canapa_leaves","cannabis:canapa_leaves",""},
}
})
minetest.register_craft({ minetest.register_craft({

View File

@ -83,15 +83,6 @@ minetest.register_craft({
} }
}) })
minetest.register_craft({
output = "cannabis:canapa_red_flower 5 ",
recipe = {
{"","",""},
{"","",""},
{"cannabis:canapa_red_leaves","cannabis:canapa_red_leaves",""},
}
})
minetest.register_craft({ minetest.register_craft({
output = "cannabis:canapa_red_seed 10 ", output = "cannabis:canapa_red_seed 10 ",

View File

@ -2,7 +2,7 @@
local S = cannabis.S local S = cannabis.S
minetest.register_craftitem("cannabis:joint_fumo_acceso", { minetest.register_craftitem("cannabis:joint_fumo_acceso", {
description = S("Joint fumo acceso"), description = S("Joint of hash lit"),
inventory_image = "joint_joint_fac.png", inventory_image = "joint_joint_fac.png",
stack_max = 1 , stack_max = 1 ,
on_use = function(itemstack, user, pointed_thing) on_use = function(itemstack, user, pointed_thing)
@ -11,53 +11,66 @@ local S = cannabis.S
end end
}) })
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, user, pointed_thing)
itemstack:add_wear(1000)
return itemstack
end
})
minetest.register_craftitem("cannabis:joint_erba_spento", { minetest.register_craftitem("cannabis:joint_erba_spento", {
description = S("Joint erba spento"), description = S("Joint of weed unlit"),
inventory_image = "joint_joint_csp.png", inventory_image = "joint_joint_csp.png",
}) })
minetest.register_craftitem("cannabis:joint_fumo_spento", { minetest.register_craftitem("cannabis:joint_fumo_spento", {
description = S("Joint fumo spento"), description = S("Joint of hash unlit"),
inventory_image = "joint_joint_fsp.png", inventory_image = "joint_joint_fsp.png",
}) })
minetest.register_craftitem("cannabis:joint_cima", { minetest.register_craftitem("cannabis:joint_cima", {
description = S("Joint cima triturata"), description = S("Flowering chopped"),
inventory_image = "joint_cima_s.png", inventory_image = "joint_cima_s.png",
}) })
minetest.register_craftitem("cannabis:joint_fumo", { minetest.register_craftitem("cannabis:joint_fumo", {
description = S("Joint fumo triturato"), description = S("Hash melted"),
inventory_image = "joint_fumo_s.png", inventory_image = "joint_fumo_s.png",
}) })
minetest.register_craftitem("cannabis:joint_cartina", { minetest.register_craftitem("cannabis:joint_cartina", {
description = S("Joint cartina"), description = S("Rolling paper"),
inventory_image = "joint_cartina.png", inventory_image = "joint_cartina.png",
}) })
minetest.register_craftitem("cannabis:joint_cartina_cima", { minetest.register_craftitem("cannabis:joint_cartina_cima", {
description = S("Joint cartina con erba"), description = S("Rolling paper with hemp leaves and flowering chopped "),
inventory_image = "joint_cartina_cima.png", inventory_image = "joint_cartina_cima.png",
}) })
minetest.register_craftitem("cannabis:joint_cartina_fumo", { minetest.register_craftitem("cannabis:joint_cartina_fumo", {
description = S("Joint cartina con fumo"), description = S("Rolling paper with hemp leaves melted hash"),
inventory_image = "joint_cartina_fumo.png", inventory_image = "joint_cartina_fumo.png",
}) })
minetest.register_craftitem("cannabis:joint_filter_box", { minetest.register_craftitem("cannabis:joint_filter_box", {
description = S("Joint filter confezione"), description = S("Filters pack"),
inventory_image = "joint_filter_p.png", inventory_image = "joint_filter_p.png",
}) })
minetest.register_craftitem("cannabis:joint_filter", { minetest.register_craftitem("cannabis:joint_filter", {
description = S("Joint filto"), description = S("Filter"),
inventory_image = "joint_filter.png", inventory_image = "joint_filter.png",
}) })
minetest.register_craftitem("cannabis:joint_accendino", { minetest.register_craftitem("cannabis:joint_accendino", {
description = S("Joint accendino"), description = S("Lighter"),
inventory_image = "joint_accendino.png", inventory_image = "joint_accendino.png",
}) })
@ -168,18 +181,4 @@ minetest.register_craft({
-- underwatercolor will be the value (one of the tables above) -- underwatercolor will be the value (one of the tables above)
--for color, smokecolor in pairs(smokeCOLOR) do --for color, smokecolor in pairs(smokeCOLOR) do
-- water -- water
minetest.register_craftitem("cannabis:joint_erba_acceso", {
description = S("Joint erba acceso"),
inventory_image = "joint_joint_cac.png",
stack_max = 1 ,
-- post_effect_color = smokeCOLOR,
on_use = function(itemstack, user, pointed_thing)
itemstack:add_wear(1000)
return itemstack
end
})
--end --end

View File

@ -13,11 +13,13 @@
Hemp=Hanf Hemp=Hanf
Hemp (climbing plant)=Hanf (kletternde Pflanze) Hemp (climbing plant)=Hanf (kletternde Pflanze)
Hemp (flowering)=Hanf (blühend)
Hemp (seedling)=Hanf (Sämling) Hemp (seedling)=Hanf (Sämling)
Hemp (sproutling)=Hanf (Sprießend) Hemp (sproutling)=Hanf (sprießend)
### canapa_rossa.lua ### ### canapa_rossa.lua ###
Hemp (Red flowering)=Hanf (Rot blühend)
Hemp red=Roter Hanf Hemp red=Roter Hanf
Hemp red (climbing plant)=Roter Hanf (kletternde Pflanze) Hemp red (climbing plant)=Roter Hanf (kletternde Pflanze)
Hemp red (sproutling)=Roter Hanf (Sämling) Hemp red (sproutling)=Roter Hanf (Sämling)
@ -25,14 +27,14 @@ Hemp red(seedling)=Roter Hanf (Sprießend)
### craftitem.lua ### ### craftitem.lua ###
BioFuel=BioKraftstoff
Bread=Brot Bread=Brot
Fiber=Faser Fiber=Faser
Flour=Mehl Flour=Mehl
Fuel=Kraftstoff
Hemp Flower=Hanfblume Hemp Flower=Hanfblume
Hemp Glue=Hanfkleber Hemp Glue=Hanfkleber
Hemp Oil=Hanföl Hemp Oil=Hanföl
Hemp Raisin=Hanfrosine Hemp Resin=Hanfharz
Paper=Papier Paper=Papier
Plastic=Plastik Plastic=Plastik
@ -48,18 +50,18 @@ Hemp red Flower=Roter Hanf Blüte
### joint.lua ### ### joint.lua ###
Joint accendino= Filter=Filter
Joint cartina= Filters pack=Filterpaket
Joint cartina con erba= Flowering chopped=blühend gehäckselt
Joint cartina con fumo= Hash melted=Haschisch geschmolzen
Joint cima triturata= Joint of hash lit=Haschisch Joint angezündet
Joint erba acceso= Joint of hash unlit=Haschisch Joint nicht angezündet
Joint erba spento= Joint of weed lit=Joint aus Gras angezündet
Joint filter confezione= Joint of weed unlit=Joint aus Gras nicht angezündet
Joint filto= Lighter=Feuerzeug
Joint fumo acceso= Rolling paper=Zigarettenpapier
Joint fumo spento= Rolling paper with hemp leaves and flowering chopped =Zigarettenpapier mit Hanfblättern und gehäckselten Blüten
Joint fumo triturato= Rolling paper with hemp leaves melted hash=Zigarettenpapier mit Hanfblättern und geschmolzenem Haschisch
### node_ingot.lua ### ### node_ingot.lua ###

View File

@ -3,101 +3,103 @@
### armor.lua ### ### armor.lua ###
Boots= Boots=Stivali
Chestplate= Chestplate=Corazza
Helmet= Helmet=Elmo
Hemp Shield= Hemp Shield= Scudo di canapa
Leggings= Leggings=Gambali
### canapa.lua ### ### canapa.lua ###
Hemp=Canapa Hemp=Canapa
Hemp (climbing plant)= Hemp (climbing plant)=Canapa (rampicante)
Hemp (seedling)= Hemp (flowering)=Canapa (infiorescena)
Hemp (sproutling)= Hemp (seedling)=Canapa (piantina)
Hemp (sproutling)=Canapa (germoglio)
### canapa_rossa.lua ### ### canapa_rossa.lua ###
Hemp red=Canapa rosso Hemp (Red flowering)=Canapa rossa (infiorescena)
Hemp red (climbing plant)= Hemp red=Canapa rossa
Hemp red (sproutling)= Hemp red (climbing plant)=Canapa rossa (rampicante)
Hemp red(seedling)= Hemp red (sproutling)=Canapa rossa (piantina)
Hemp red(seedling)=Canapa rossa (germoglio)
### craftitem.lua ### ### craftitem.lua ###
BioFuel=BioCarburante
Bread=Pane Bread=Pane
Fiber= Fiber=Fibra
Flour= Flour=Farina
Fuel= Hemp Flower=Fiore di Canapa
Hemp Flower= Hemp Glue=Colla di Canapa
Hemp Glue= Hemp Oil=Olio di Canapa
Hemp Oil= Hemp Resin=Resina di Canapa
Hemp Raisin= Paper=Carta
Paper= Plastic=Plastica
Plastic=
### craftitem.lua ### ### craftitem.lua ###
### craftred.lua ### ### craftred.lua ###
Hemp Leaves= Hemp Leaves= Foglie di canapa
Hemp Seed= Hemp Seed= Semi di canapa
### craftred.lua ### ### craftred.lua ###
Hemp red Flower= Hemp red Flower=Fiore di canapa rossa
### joint.lua ### ### joint.lua ###
Joint accendino=Joint accendino Filter=Filtro
Joint cartina=Joint cartina Filters pack=Pacchetto di filtri
Joint cartina con erba=Joint cartina con erba Flowering chopped=Infiorescenza triturata
Joint cartina con fumo=Joint cartina con fumo Hash melted=Fumo sciolto
Joint cima triturata=Joint cima triturata Joint of hash lit=Sigaretta con fumo accesa
Joint erba acceso=Joint erba acceso Joint of hash unlit=Sigaretta con fumo spenta
Joint erba spento=Joint erba spento Joint of weed lit=Sigaretta di erba acceso
Joint filter confezione=Joint filter confezione Joint of weed unlit=Sigaretta di erba spenta
Joint filto=Joint filto Lighter=Accendino
Joint fumo acceso=Joint fumo acceso Rolling paper=Cartine
Joint fumo spento=Joint fumo spento Rolling paper with hemp leaves and flowering chopped =Cartina con foglie e cime di canapa
Joint fumo triturato=Joint fumo triturato Rolling paper with hemp leaves melted hash=Cartina con foglie e resina sciolta di canapa
### node_ingot.lua ### ### node_ingot.lua ###
Adminh Block= Adminh Block=Blocco Adminh (indistruttibile)
Adminh Ingot= Adminh Ingot=Lingotto Adminh
Fabric Block= Fabric Block=Blocco di Tessuto
Fabric Ingot= Fabric Ingot=Lingotto tessuto
Fiber Block= Fiber Block=Blocco di fibra
Fiber Ingot= Fiber Ingot=Lingotto di fibra
High Performance Block= High Performance Block=Blocco ad alte prestazioni
High Performance Block Hemp= High Performance Block Hemp=Blocco alla fibra di canapa ad alte prestazioni
High Performance Ingot= High Performance Ingot=Lingotto alte prestazioni
Leaves Block= Leaves Block=Blocco di foglie
Leaves Ingot= Leaves Ingot=Lingotto di foglie
Mixed HR Ingot= Mixed HR Ingot=Lingotto mescola HR
Red Leaves Block= Red Leaves Block=Blocco di foglie rosse
### tools.lua ### ### tools.lua ###
Hemp Admin High Performance Sword= Hemp Admin High Performance Sword=
Hemp Adminh Pickaxe= Hemp Adminh Pickaxe=Piccone Adminh di canapa
Hemp Bronze Axe= Hemp Bronze Axe=Ascia di canapa e bronzo
Hemp Bronze Pickaxe= Hemp Bronze Pickaxe=Piccone di canapa e bronzo
Hemp Bronze Shovel= Hemp Bronze Shovel=Pala di canapa e bronzo
Hemp Bronze Sword= Hemp Bronze Sword=Spada di canapa e bronzo
Hemp Diamond Axe= Hemp Diamond Axe=Ascia di canapa e diamante
Hemp Diamond Pickaxe= Hemp Diamond Pickaxe=Picconedi canapa e diamante
Hemp Diamond Shovel= Hemp Diamond Shovel=Pala di canapa e diamante
Hemp Diamond Sword= Hemp Diamond Sword=Spada di canapa e diamante
Hemp High Performance Axe= Hemp High Performance Axe=Ascia di canapa ad alte prestazioni
Hemp High Performance Sword= Hemp High Performance Sword=Spada di canapa ad alte prestazioni
Hemp High Pickaxe= Hemp High Pickaxe=Piccone di canapa ad alte prestazioni
Hemp High Shovel= Hemp High Shovel=Pala di canapa ad alte prestazioni
Hemp Mese Axe= Hemp Mese Axe=Ascia di canapa e mese
Hemp Mese Pickaxe= Hemp Mese Pickaxe=Piccone di canapa e mese
Hemp Mese Shovel= Hemp Mese Shovel=Pala di canapa e mese
Hemp Mese Sword= Hemp Mese Sword=Spada di canapa e mese
Hemp Steel Axe= Hemp Steel Axe=Ascia di canapa ed acciaio
Hemp Steel Pickaxe= Hemp Steel Pickaxe=Piccone di canapa ed acciaio
Hemp Steel Shovel= Hemp Steel Shovel=Pala di canapa ed acciaio
Hemp Steel Sword= Hemp Steel Sword=Spada di canapa ed acciaio

View File

@ -13,11 +13,13 @@
Hemp= Hemp=
Hemp (climbing plant)= Hemp (climbing plant)=
Hemp (flowering)=
Hemp (seedling)= Hemp (seedling)=
Hemp (sproutling)= Hemp (sproutling)=
### canapa_rossa.lua ### ### canapa_rossa.lua ###
Hemp (Red flowering)=
Hemp red= Hemp red=
Hemp red (climbing plant)= Hemp red (climbing plant)=
Hemp red (sproutling)= Hemp red (sproutling)=
@ -25,14 +27,14 @@ Hemp red(seedling)=
### craftitem.lua ### ### craftitem.lua ###
BioFuel=
Bread= Bread=
Fiber= Fiber=
Flour= Flour=
Fuel=
Hemp Flower= Hemp Flower=
Hemp Glue= Hemp Glue=
Hemp Oil= Hemp Oil=
Hemp Raisin= Hemp Resin=
Paper= Paper=
Plastic= Plastic=
@ -48,18 +50,18 @@ Hemp red Flower=
### joint.lua ### ### joint.lua ###
Joint accendino= Filter=
Joint cartina= Filters pack=
Joint cartina con erba= Flowering chopped=
Joint cartina con fumo= Hash melted=
Joint cima triturata= Joint of hash lit=
Joint erba acceso= Joint of hash unlit=
Joint erba spento= Joint of weed lit=
Joint filter confezione= Joint of weed unlit=
Joint filto= Lighter=
Joint fumo acceso= Rolling paper=
Joint fumo spento= Rolling paper with hemp leaves and flowering chopped =
Joint fumo triturato= Rolling paper with hemp leaves melted hash=
### node_ingot.lua ### ### node_ingot.lua ###

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.1 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

After

Width:  |  Height:  |  Size: 11 KiB

View File

@ -167,23 +167,7 @@ minetest.register_tool("cannabis:shovel_hemp_diamond", {
}, },
}) })
--[[minetest.register_item(":", {
type = "none",
wield_image = "wieldhand.png",
wield_scale = {x=1,y=1,z=2.5},
tool_capabilities = {
full_punch_interval = 0.9,
max_drop_level = 0,
groupcaps = {
crumbly = {times={[2]=3.00, [3]=0.70}, uses=0, maxlevel=1},
snappy = {times={[3]=0.40}, uses=0, maxlevel=1},
oddly_breakable_by_hand = {times={[1]=3.50,[2]=2.00,[3]=0.70}, uses=0}
},
damage_groups = {fleshy=1},
}
})
]]--
-- Axes____________________________________________________________________________________________________ -- Axes____________________________________________________________________________________________________
-- --
minetest.register_tool("cannabis:axe_hemp_steel", { minetest.register_tool("cannabis:axe_hemp_steel", {
@ -311,49 +295,6 @@ minetest.register_tool("cannabis:sword_hemp_high", {
}) })
---
--minetest.register_tool("cannabis:sword_hemp_adminh", {
--description = "Hemp_adminh Sword",
--inventory_image = "cannabis_tool_adminhsword.png",
--tool_capabilities = {
--full_punch_interval = 0.5,
--max_drop_level=1,
--groupcaps={
--unbreakable = {times={[1] = 0.1, [2] = 0.1, [3] = 0.1}, uses = 0, maxlevel = 30},
--snappy={times={[1]=0.1, [2]=0.1, [3]=0.1}, uses=99, maxlevel=30},
--},
--damage_groups = {fleshy=100000},
--}
--})
--CRAFT RECIPE
minetest.register_tool("cannabis:pick_hemp_adminh", {
description = S("Hemp Admin High Performance Sword"),
inventory_image = "cannabis_tool_adminhsword.png",
tool_capabilities = {
full_punch_interval = 0.35,
max_drop_level=3,
groupcaps= {
unbreakable = {times={[1] = 0, [2] = 0, [3] = 0}, uses = 0, maxlevel = 3},
fleshy = {times={[1] = 0, [2] = 0, [3] = 0}, uses = 0, maxlevel = 3},
choppy = {times={[1] = 0, [2] = 0, [3] = 0}, uses = 0, maxlevel = 3},
--bendy = {times={[1] = 0, [2] = 0, [3] = 0}, uses = 0, maxlevel = 3},
--cracky = {times={[1] = 0, [2] = 0, [3] = 0}, uses = 0, maxlevel = 3},
--crumbly = {times={[1] = 0, [2] = 0, [3] = 0}, uses = 0, maxlevel = 3},
snappy = {times={[1] = 0, [2] = 0, [3] = 0}, uses = 0, maxlevel = 3},
},
damage_groups = {fleshy=10000},
},
})
minetest.register_on_punchnode(function(pos, node, puncher)
if puncher:get_wielded_item():get_name() == "cannabis:sword_hemp_adminh"
and minetest.get_node(pos).name ~= "air" then
minetest.log("action", puncher:get_player_name() .. " digs " .. minetest.get_node(pos).name .. " at " .. minetest.pos_to_string(pos) .. " using an Admin Pickaxe.")
minetest.remove_node(pos) -- The node is removed directly, which means it even works on non-empty containers and group-less nodes.
minetest.check_for_falling(pos) -- Run node update actions like falling nodes.
end
end)
--pick:___________________________________________________________________ --pick:___________________________________________________________________
minetest.register_craft({ minetest.register_craft({