Merge branch 'master' of https://github.com/IIIullaIII/CANNABIS_MOD into IIIullaIII-master
62
canapa.lua
@ -22,7 +22,7 @@ minetest.register_node("cannabis:canapa", {
|
||||
items = {
|
||||
{items = {"cannabis:canapa"}, 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)
|
||||
@ -34,10 +34,16 @@ minetest.register_node("cannabis:canapa", {
|
||||
function minetest.grow_canapa(pos, node)
|
||||
pos.y = pos.y - 1
|
||||
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
|
||||
end
|
||||
if not minetest.find_node_near(pos, 1, {"group:water"}) then
|
||||
if not minetest.find_node_near(pos, 3, {"group:water"}) then
|
||||
return
|
||||
end
|
||||
pos.y = pos.y + 1
|
||||
@ -47,19 +53,30 @@ function minetest.grow_canapa(pos, node)
|
||||
pos.y = pos.y + 1
|
||||
node = minetest.get_node(pos)
|
||||
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
|
||||
return
|
||||
end
|
||||
minetest.set_node(pos, {name = "cannabis:canapa"})
|
||||
return true
|
||||
end
|
||||
end
|
||||
--mapgen
|
||||
minetest.register_abm({
|
||||
label = "Grow canapa",
|
||||
nodenames = {"cannabis:canapa"},
|
||||
neighbors ={"default:dirt_with_grass"},
|
||||
interval = 14,
|
||||
chance = 71,
|
||||
neighbors ={"default:dirt_with_grass",
|
||||
"default:dirt",
|
||||
"default:dirt_with_rainforest_litter",
|
||||
"default:dry_dirt",
|
||||
"default:dirt_with_snow",
|
||||
"default:dirt_with_coniferous_litter"
|
||||
},
|
||||
interval = 2,
|
||||
chance = 10,
|
||||
action = function(...)
|
||||
minetest.grow_canapa(...)
|
||||
end
|
||||
@ -88,7 +105,8 @@ minetest.register_biome({
|
||||
|
||||
minetest.register_decoration({
|
||||
deco_type = "simple",
|
||||
place_on = {"default:dirt_with_grass"},
|
||||
place_on = {"default:dirt_with_grass",
|
||||
"default_dirt"},
|
||||
sidelen = 16,
|
||||
noise_params = {
|
||||
offset = -0.3,
|
||||
@ -98,12 +116,16 @@ minetest.register_biome({
|
||||
octaves = 3,
|
||||
persist = 1.5
|
||||
},
|
||||
biomes = {"canapa_swamp"},
|
||||
fill_ratio = 0.03,
|
||||
biomes = {"canapa_swamp",
|
||||
"tundra_beach",
|
||||
"savanna_shore",
|
||||
"delicious_forest_shore"},
|
||||
y_min = 1,
|
||||
y_max = 5,
|
||||
decoration = "cannabis:canapa",
|
||||
height = 5,
|
||||
height_max = 5,
|
||||
height_max = 0,
|
||||
spawn_by = "default:water_source",
|
||||
num_spawn_by = 1,
|
||||
})
|
||||
@ -159,7 +181,27 @@ minetest.register_node('cannabis:sproutling', {
|
||||
sounds = "cannabis_canapa_s3",
|
||||
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', {
|
||||
description = S("Hemp (climbing plant)"),
|
||||
drawtype = 'signlike',
|
||||
|
@ -22,19 +22,25 @@ minetest.register_node("cannabis:canapa_red", {
|
||||
items = {
|
||||
{items = {"cannabis:canapa_red"}, 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)
|
||||
default.dig_up(pos, node, digger)
|
||||
end,
|
||||
})
|
||||
--____________________________________
|
||||
|
||||
--___________________________________
|
||||
--function
|
||||
|
||||
|
||||
function minetest.grow_canapa_red(pos, node)
|
||||
pos.y = pos.y - 1
|
||||
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
|
||||
end
|
||||
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
|
||||
node = minetest.get_node(pos)
|
||||
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
|
||||
end
|
||||
minetest.set_node(pos, {name = "cannabis:canapa_red"})
|
||||
return true
|
||||
end
|
||||
end
|
||||
--mapgen
|
||||
minetest.register_abm({
|
||||
label = "Grow canapa red",
|
||||
nodenames = {"cannabis:canapa_red"},
|
||||
neighbors ={"default:desert_sand","default:sand"},
|
||||
interval = 5,
|
||||
chance = 40,
|
||||
neighbors ={"default:sand",
|
||||
"default:desert_sand",
|
||||
"default:silver_sand",
|
||||
"default:dry_dirt_with_dry_grass"},
|
||||
interval = 2,
|
||||
chance = 10,
|
||||
action = function(...)
|
||||
minetest.grow_canapa_red(...)
|
||||
end
|
||||
@ -176,3 +189,23 @@ minetest.register_node('cannabis:climbing_r', {
|
||||
},
|
||||
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
@ -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
@ -0,0 +1,3 @@
|
||||
name = cannabis
|
||||
depends = default, fire
|
||||
optional_default = 3d_armor, maptools
|
@ -1,14 +1,14 @@
|
||||
-- get Boilerplate for Translations
|
||||
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", {
|
||||
description = S("Fiber"),
|
||||
inventory_image = "cannabis_canapa_fiber.png",
|
||||
})
|
||||
minetest.register_craftitem("cannabis:canapa_fuel", {
|
||||
description = S("Fuel"),
|
||||
description = S("BioFuel"),
|
||||
inventory_image = "cannabis_fuel.png",
|
||||
})
|
||||
|
||||
@ -51,7 +51,7 @@ minetest.register_craftitem("cannabis:canapa_flower", {
|
||||
})
|
||||
|
||||
minetest.register_craftitem("cannabis:canapa_raisin", {
|
||||
description = S("Hemp Raisin"),
|
||||
description = S("Hemp Resin"),
|
||||
inventory_image = "cannabis_canapa_raisin.png",
|
||||
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({
|
||||
|
@ -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({
|
||||
output = "cannabis:canapa_red_seed 10 ",
|
||||
|
49
joint.lua
@ -2,7 +2,7 @@
|
||||
local S = cannabis.S
|
||||
|
||||
minetest.register_craftitem("cannabis:joint_fumo_acceso", {
|
||||
description = S("Joint fumo acceso"),
|
||||
description = S("Joint of hash lit"),
|
||||
inventory_image = "joint_joint_fac.png",
|
||||
stack_max = 1 ,
|
||||
on_use = function(itemstack, user, pointed_thing)
|
||||
@ -11,53 +11,66 @@ local S = cannabis.S
|
||||
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", {
|
||||
description = S("Joint erba spento"),
|
||||
description = S("Joint of weed unlit"),
|
||||
inventory_image = "joint_joint_csp.png",
|
||||
|
||||
})
|
||||
minetest.register_craftitem("cannabis:joint_fumo_spento", {
|
||||
description = S("Joint fumo spento"),
|
||||
description = S("Joint of hash unlit"),
|
||||
inventory_image = "joint_joint_fsp.png",
|
||||
|
||||
})
|
||||
minetest.register_craftitem("cannabis:joint_cima", {
|
||||
description = S("Joint cima triturata"),
|
||||
description = S("Flowering chopped"),
|
||||
inventory_image = "joint_cima_s.png",
|
||||
|
||||
})
|
||||
minetest.register_craftitem("cannabis:joint_fumo", {
|
||||
description = S("Joint fumo triturato"),
|
||||
description = S("Hash melted"),
|
||||
inventory_image = "joint_fumo_s.png",
|
||||
|
||||
})
|
||||
minetest.register_craftitem("cannabis:joint_cartina", {
|
||||
description = S("Joint cartina"),
|
||||
description = S("Rolling paper"),
|
||||
inventory_image = "joint_cartina.png",
|
||||
|
||||
})
|
||||
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",
|
||||
|
||||
})
|
||||
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",
|
||||
|
||||
})
|
||||
minetest.register_craftitem("cannabis:joint_filter_box", {
|
||||
description = S("Joint filter confezione"),
|
||||
description = S("Filters pack"),
|
||||
inventory_image = "joint_filter_p.png",
|
||||
|
||||
})
|
||||
minetest.register_craftitem("cannabis:joint_filter", {
|
||||
description = S("Joint filto"),
|
||||
description = S("Filter"),
|
||||
inventory_image = "joint_filter.png",
|
||||
|
||||
})
|
||||
minetest.register_craftitem("cannabis:joint_accendino", {
|
||||
description = S("Joint accendino"),
|
||||
description = S("Lighter"),
|
||||
inventory_image = "joint_accendino.png",
|
||||
|
||||
})
|
||||
@ -168,18 +181,4 @@ minetest.register_craft({
|
||||
-- underwatercolor will be the value (one of the tables above)
|
||||
--for color, smokecolor in pairs(smokeCOLOR) do
|
||||
-- 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
|
||||
|
@ -13,11 +13,13 @@
|
||||
|
||||
Hemp=Hanf
|
||||
Hemp (climbing plant)=Hanf (kletternde Pflanze)
|
||||
Hemp (flowering)=Hanf (blühend)
|
||||
Hemp (seedling)=Hanf (Sämling)
|
||||
Hemp (sproutling)=Hanf (Sprießend)
|
||||
Hemp (sproutling)=Hanf (sprießend)
|
||||
|
||||
### canapa_rossa.lua ###
|
||||
|
||||
Hemp (Red flowering)=Hanf (Rot blühend)
|
||||
Hemp red=Roter Hanf
|
||||
Hemp red (climbing plant)=Roter Hanf (kletternde Pflanze)
|
||||
Hemp red (sproutling)=Roter Hanf (Sämling)
|
||||
@ -25,14 +27,14 @@ Hemp red(seedling)=Roter Hanf (Sprießend)
|
||||
|
||||
### craftitem.lua ###
|
||||
|
||||
BioFuel=BioKraftstoff
|
||||
Bread=Brot
|
||||
Fiber=Faser
|
||||
Flour=Mehl
|
||||
Fuel=Kraftstoff
|
||||
Hemp Flower=Hanfblume
|
||||
Hemp Glue=Hanfkleber
|
||||
Hemp Oil=Hanföl
|
||||
Hemp Raisin=Hanfrosine
|
||||
Hemp Resin=Hanfharz
|
||||
Paper=Papier
|
||||
Plastic=Plastik
|
||||
|
||||
@ -48,18 +50,18 @@ Hemp red Flower=Roter Hanf Blüte
|
||||
|
||||
### joint.lua ###
|
||||
|
||||
Joint accendino=
|
||||
Joint cartina=
|
||||
Joint cartina con erba=
|
||||
Joint cartina con fumo=
|
||||
Joint cima triturata=
|
||||
Joint erba acceso=
|
||||
Joint erba spento=
|
||||
Joint filter confezione=
|
||||
Joint filto=
|
||||
Joint fumo acceso=
|
||||
Joint fumo spento=
|
||||
Joint fumo triturato=
|
||||
Filter=Filter
|
||||
Filters pack=Filterpaket
|
||||
Flowering chopped=blühend gehäckselt
|
||||
Hash melted=Haschisch geschmolzen
|
||||
Joint of hash lit=Haschisch Joint angezündet
|
||||
Joint of hash unlit=Haschisch Joint nicht angezündet
|
||||
Joint of weed lit=Joint aus Gras angezündet
|
||||
Joint of weed unlit=Joint aus Gras nicht angezündet
|
||||
Lighter=Feuerzeug
|
||||
Rolling paper=Zigarettenpapier
|
||||
Rolling paper with hemp leaves and flowering chopped =Zigarettenpapier mit Hanfblättern und gehäckselten Blüten
|
||||
Rolling paper with hemp leaves melted hash=Zigarettenpapier mit Hanfblättern und geschmolzenem Haschisch
|
||||
|
||||
### node_ingot.lua ###
|
||||
|
||||
|
@ -3,101 +3,103 @@
|
||||
|
||||
### armor.lua ###
|
||||
|
||||
Boots=
|
||||
Chestplate=
|
||||
Helmet=
|
||||
Hemp Shield=
|
||||
Leggings=
|
||||
Boots=Stivali
|
||||
Chestplate=Corazza
|
||||
Helmet=Elmo
|
||||
Hemp Shield= Scudo di canapa
|
||||
Leggings=Gambali
|
||||
|
||||
### canapa.lua ###
|
||||
|
||||
Hemp=Canapa
|
||||
Hemp (climbing plant)=
|
||||
Hemp (seedling)=
|
||||
Hemp (sproutling)=
|
||||
Hemp (climbing plant)=Canapa (rampicante)
|
||||
Hemp (flowering)=Canapa (infiorescena)
|
||||
Hemp (seedling)=Canapa (piantina)
|
||||
Hemp (sproutling)=Canapa (germoglio)
|
||||
|
||||
### canapa_rossa.lua ###
|
||||
|
||||
Hemp red=Canapa rosso
|
||||
Hemp red (climbing plant)=
|
||||
Hemp red (sproutling)=
|
||||
Hemp red(seedling)=
|
||||
Hemp (Red flowering)=Canapa rossa (infiorescena)
|
||||
Hemp red=Canapa rossa
|
||||
Hemp red (climbing plant)=Canapa rossa (rampicante)
|
||||
Hemp red (sproutling)=Canapa rossa (piantina)
|
||||
Hemp red(seedling)=Canapa rossa (germoglio)
|
||||
|
||||
### craftitem.lua ###
|
||||
|
||||
BioFuel=BioCarburante
|
||||
Bread=Pane
|
||||
Fiber=
|
||||
Flour=
|
||||
Fuel=
|
||||
Hemp Flower=
|
||||
Hemp Glue=
|
||||
Hemp Oil=
|
||||
Hemp Raisin=
|
||||
Paper=
|
||||
Plastic=
|
||||
Fiber=Fibra
|
||||
Flour=Farina
|
||||
Hemp Flower=Fiore di Canapa
|
||||
Hemp Glue=Colla di Canapa
|
||||
Hemp Oil=Olio di Canapa
|
||||
Hemp Resin=Resina di Canapa
|
||||
Paper=Carta
|
||||
Plastic=Plastica
|
||||
|
||||
### craftitem.lua ###
|
||||
### craftred.lua ###
|
||||
|
||||
Hemp Leaves=
|
||||
Hemp Seed=
|
||||
Hemp Leaves= Foglie di canapa
|
||||
Hemp Seed= Semi di canapa
|
||||
|
||||
### craftred.lua ###
|
||||
|
||||
Hemp red Flower=
|
||||
Hemp red Flower=Fiore di canapa rossa
|
||||
|
||||
### joint.lua ###
|
||||
|
||||
Joint accendino=Joint accendino
|
||||
Joint cartina=Joint cartina
|
||||
Joint cartina con erba=Joint cartina con erba
|
||||
Joint cartina con fumo=Joint cartina con fumo
|
||||
Joint cima triturata=Joint cima triturata
|
||||
Joint erba acceso=Joint erba acceso
|
||||
Joint erba spento=Joint erba spento
|
||||
Joint filter confezione=Joint filter confezione
|
||||
Joint filto=Joint filto
|
||||
Joint fumo acceso=Joint fumo acceso
|
||||
Joint fumo spento=Joint fumo spento
|
||||
Joint fumo triturato=Joint fumo triturato
|
||||
Filter=Filtro
|
||||
Filters pack=Pacchetto di filtri
|
||||
Flowering chopped=Infiorescenza triturata
|
||||
Hash melted=Fumo sciolto
|
||||
Joint of hash lit=Sigaretta con fumo accesa
|
||||
Joint of hash unlit=Sigaretta con fumo spenta
|
||||
Joint of weed lit=Sigaretta di erba acceso
|
||||
Joint of weed unlit=Sigaretta di erba spenta
|
||||
Lighter=Accendino
|
||||
Rolling paper=Cartine
|
||||
Rolling paper with hemp leaves and flowering chopped =Cartina con foglie e cime di canapa
|
||||
Rolling paper with hemp leaves melted hash=Cartina con foglie e resina sciolta di canapa
|
||||
|
||||
### node_ingot.lua ###
|
||||
|
||||
Adminh Block=
|
||||
Adminh Ingot=
|
||||
Fabric Block=
|
||||
Fabric Ingot=
|
||||
Fiber Block=
|
||||
Fiber Ingot=
|
||||
High Performance Block=
|
||||
High Performance Block Hemp=
|
||||
High Performance Ingot=
|
||||
Leaves Block=
|
||||
Leaves Ingot=
|
||||
Mixed HR Ingot=
|
||||
Red Leaves Block=
|
||||
Adminh Block=Blocco Adminh (indistruttibile)
|
||||
Adminh Ingot=Lingotto Adminh
|
||||
Fabric Block=Blocco di Tessuto
|
||||
Fabric Ingot=Lingotto tessuto
|
||||
Fiber Block=Blocco di fibra
|
||||
Fiber Ingot=Lingotto di fibra
|
||||
High Performance Block=Blocco ad alte prestazioni
|
||||
High Performance Block Hemp=Blocco alla fibra di canapa ad alte prestazioni
|
||||
High Performance Ingot=Lingotto alte prestazioni
|
||||
Leaves Block=Blocco di foglie
|
||||
Leaves Ingot=Lingotto di foglie
|
||||
Mixed HR Ingot=Lingotto mescola HR
|
||||
Red Leaves Block=Blocco di foglie rosse
|
||||
|
||||
### tools.lua ###
|
||||
|
||||
Hemp Admin High Performance Sword=
|
||||
Hemp Adminh Pickaxe=
|
||||
Hemp Bronze Axe=
|
||||
Hemp Bronze Pickaxe=
|
||||
Hemp Bronze Shovel=
|
||||
Hemp Bronze Sword=
|
||||
Hemp Diamond Axe=
|
||||
Hemp Diamond Pickaxe=
|
||||
Hemp Diamond Shovel=
|
||||
Hemp Diamond Sword=
|
||||
Hemp High Performance Axe=
|
||||
Hemp High Performance Sword=
|
||||
Hemp High Pickaxe=
|
||||
Hemp High Shovel=
|
||||
Hemp Mese Axe=
|
||||
Hemp Mese Pickaxe=
|
||||
Hemp Mese Shovel=
|
||||
Hemp Mese Sword=
|
||||
Hemp Steel Axe=
|
||||
Hemp Steel Pickaxe=
|
||||
Hemp Steel Shovel=
|
||||
Hemp Steel Sword=
|
||||
Hemp Adminh Pickaxe=Piccone Adminh di canapa
|
||||
Hemp Bronze Axe=Ascia di canapa e bronzo
|
||||
Hemp Bronze Pickaxe=Piccone di canapa e bronzo
|
||||
Hemp Bronze Shovel=Pala di canapa e bronzo
|
||||
Hemp Bronze Sword=Spada di canapa e bronzo
|
||||
Hemp Diamond Axe=Ascia di canapa e diamante
|
||||
Hemp Diamond Pickaxe=Picconedi canapa e diamante
|
||||
Hemp Diamond Shovel=Pala di canapa e diamante
|
||||
Hemp Diamond Sword=Spada di canapa e diamante
|
||||
Hemp High Performance Axe=Ascia di canapa ad alte prestazioni
|
||||
Hemp High Performance Sword=Spada di canapa ad alte prestazioni
|
||||
Hemp High Pickaxe=Piccone di canapa ad alte prestazioni
|
||||
Hemp High Shovel=Pala di canapa ad alte prestazioni
|
||||
Hemp Mese Axe=Ascia di canapa e mese
|
||||
Hemp Mese Pickaxe=Piccone di canapa e mese
|
||||
Hemp Mese Shovel=Pala di canapa e mese
|
||||
Hemp Mese Sword=Spada di canapa e mese
|
||||
Hemp Steel Axe=Ascia di canapa ed acciaio
|
||||
Hemp Steel Pickaxe=Piccone di canapa ed acciaio
|
||||
Hemp Steel Shovel=Pala di canapa ed acciaio
|
||||
Hemp Steel Sword=Spada di canapa ed acciaio
|
||||
|
@ -13,11 +13,13 @@
|
||||
|
||||
Hemp=
|
||||
Hemp (climbing plant)=
|
||||
Hemp (flowering)=
|
||||
Hemp (seedling)=
|
||||
Hemp (sproutling)=
|
||||
|
||||
### canapa_rossa.lua ###
|
||||
|
||||
Hemp (Red flowering)=
|
||||
Hemp red=
|
||||
Hemp red (climbing plant)=
|
||||
Hemp red (sproutling)=
|
||||
@ -25,14 +27,14 @@ Hemp red(seedling)=
|
||||
|
||||
### craftitem.lua ###
|
||||
|
||||
BioFuel=
|
||||
Bread=
|
||||
Fiber=
|
||||
Flour=
|
||||
Fuel=
|
||||
Hemp Flower=
|
||||
Hemp Glue=
|
||||
Hemp Oil=
|
||||
Hemp Raisin=
|
||||
Hemp Resin=
|
||||
Paper=
|
||||
Plastic=
|
||||
|
||||
@ -48,18 +50,18 @@ Hemp red Flower=
|
||||
|
||||
### joint.lua ###
|
||||
|
||||
Joint accendino=
|
||||
Joint cartina=
|
||||
Joint cartina con erba=
|
||||
Joint cartina con fumo=
|
||||
Joint cima triturata=
|
||||
Joint erba acceso=
|
||||
Joint erba spento=
|
||||
Joint filter confezione=
|
||||
Joint filto=
|
||||
Joint fumo acceso=
|
||||
Joint fumo spento=
|
||||
Joint fumo triturato=
|
||||
Filter=
|
||||
Filters pack=
|
||||
Flowering chopped=
|
||||
Hash melted=
|
||||
Joint of hash lit=
|
||||
Joint of hash unlit=
|
||||
Joint of weed lit=
|
||||
Joint of weed unlit=
|
||||
Lighter=
|
||||
Rolling paper=
|
||||
Rolling paper with hemp leaves and flowering chopped =
|
||||
Rolling paper with hemp leaves melted hash=
|
||||
|
||||
### node_ingot.lua ###
|
||||
|
||||
|
Before Width: | Height: | Size: 9.1 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 11 KiB |
59
tools.lua
@ -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____________________________________________________________________________________________________
|
||||
--
|
||||
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:___________________________________________________________________
|
||||
|
||||
minetest.register_craft({
|
||||
|