added cannabis leaf usage, changed cannabis leaf textures

master
aegroto 2018-08-28 12:42:27 +02:00
parent 586267489a
commit a8ffac5995
3 changed files with 15 additions and 23 deletions

View File

@ -132,6 +132,16 @@ minetest.register_craftitem("drug_wars:hashish", {
end
})
-- craft usages
minetest.register_craft({
output = "farming:cotton",
recipe = {
{"drug_wars:cannabis_leaf", "drug_wars:cannabis_leaf"},
{"drug_wars:cannabis_leaf", "drug_wars:cannabis_leaf"}
}
})
minetest.register_craft({
output = "drug_wars:weed",
recipe = {{"drug_wars:cannabis_inflorescence", "drug_wars:cannabis_inflorescence"}}
@ -142,7 +152,7 @@ minetest.register_craft({
recipe = {{"drug_wars:cannabis_resin", "drug_wars:cannabis_resin", "drug_wars:cannabis_resin"}}
})
--plant nodes definition
-- plant nodes definition
local crop_def = {
drawtype = "plantlike",
@ -161,29 +171,11 @@ local crop_def = {
-- plant stages
crop_def.tiles = {"drugwars_cannabis_1.png"}
minetest.register_node("drug_wars:cannabis_1", table.copy(crop_def))
for i = 1,7 do
crop_def.tiles = {"drugwars_cannabis_"..i..".png"}
minetest.register_node("drug_wars:cannabis_"..i, table.copy(crop_def))
crop_def.tiles = {"drugwars_cannabis_2.png"}
crop_def.visual_scale = 1.2
minetest.register_node("drug_wars:cannabis_2", table.copy(crop_def))
crop_def.tiles = {"drugwars_cannabis_3.png"}
minetest.register_node("drug_wars:cannabis_3", table.copy(crop_def))
crop_def.tiles = {"drugwars_cannabis_4.png"}
crop_def.visual_scale = 1.5
minetest.register_node("drug_wars:cannabis_4", table.copy(crop_def))
crop_def.tiles = {"drugwars_cannabis_5.png"}
minetest.register_node("drug_wars:cannabis_5", table.copy(crop_def))
crop_def.tiles = {"drugwars_cannabis_6.png"}
crop_def.visual_scale = 1.8
minetest.register_node("drug_wars:cannabis_6", table.copy(crop_def))
crop_def.tiles = {"drugwars_cannabis_7.png"}
minetest.register_node("drug_wars:cannabis_7", table.copy(crop_def))
end
crop_def.tiles = {"drugwars_cannabis_8.png"}
crop_def.visual_scale = 2.0

Binary file not shown.

Before

Width:  |  Height:  |  Size: 367 B

After

Width:  |  Height:  |  Size: 416 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB