forked from VoxeLibre/VoxeLibre
Update 'mods/ITEMS/mcl_sweet_berry/init.lua'
This commit is contained in:
parent
cea1078a16
commit
5d98662a60
|
@ -3,32 +3,46 @@ minetest.register_craftitem("mc_sweet_berry:sweet_berry", {
|
||||||
inventory_image = "sweet_berry.png",
|
inventory_image = "sweet_berry.png",
|
||||||
on_use = minetest.item_eat(2)
|
on_use = minetest.item_eat(2)
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("mc_sweet_berry:sweet_berry_bush_0", {
|
minetest.register_node("mc_sweet_berry:sweet_berry_bush_0", {
|
||||||
drawtype = "plantlike",
|
drawtype = "plantlike",
|
||||||
tiles = {"sweet_berry_bush_0.png"},
|
tiles = {"sweet_berry_bush_0.png"},
|
||||||
damage_per_second = 1,
|
damage_per_second = 1,
|
||||||
|
selection_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {-6 / 16, -0.5, -6 / 16, 6 / 16, 0.5, 6 / 16},
|
||||||
|
},
|
||||||
drop = ""
|
drop = ""
|
||||||
})
|
})
|
||||||
minetest.register_node("mc_sweet_berry:sweet_berry_bush_1", {
|
minetest.register_node("mc_sweet_berry:sweet_berry_bush_1", {
|
||||||
drawtype = "plantlike",
|
drawtype = "plantlike",
|
||||||
tiles = {"sweet_berry_bush_1.png"},
|
tiles = {"sweet_berry_bush_1.png"},
|
||||||
damage_per_second = 1,
|
damage_per_second = 1,
|
||||||
|
selection_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {-6 / 16, -0.5, -6 / 16, 6 / 16, 0.5, 6 / 16},
|
||||||
|
},
|
||||||
drop = ""
|
drop = ""
|
||||||
})
|
})
|
||||||
minetest.register_node("mc_sweet_berry:sweet_berry_bush_2", {
|
minetest.register_node("mc_sweet_berry:sweet_berry_bush_2", {
|
||||||
drawtype = "plantlike",
|
drawtype = "plantlike",
|
||||||
tiles = {"sweet_berry_bush_2.png"},
|
tiles = {"sweet_berry_bush_2.png"},
|
||||||
damage_per_second = 2,
|
damage_per_second = 2,
|
||||||
|
selection_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {-6 / 16, -0.5, -6 / 16, 6 / 16, 0.5, 6 / 16},
|
||||||
|
},
|
||||||
drop = "mc:sweet_berry 2"
|
drop = "mc:sweet_berry 2"
|
||||||
})
|
})
|
||||||
minetest.register_node("mc_sweet_berry:sweet_berry_bush_3", {
|
minetest.register_node("mc_sweet_berry:sweet_berry_bush_3", {
|
||||||
drawtype = "plantlike",
|
drawtype = "plantlike",
|
||||||
tiles = {"sweet_berry_bush_3.png"},
|
tiles = {"sweet_berry_bush_3.png"},
|
||||||
damage_per_second = 2,
|
damage_per_second = 2,
|
||||||
|
selection_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {-6 / 16, -0.5, -6 / 16, 6 / 16, 0.5, 6 / 16},
|
||||||
|
},
|
||||||
drop = "mc:sweet_berry 3"
|
drop = "mc:sweet_berry 3"
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_decoration({
|
minetest.register_decoration({
|
||||||
deco_type = "simple",
|
deco_type = "simple",
|
||||||
place_on = {"mcl_core:dirt_with_grass"},
|
place_on = {"mcl_core:dirt_with_grass"},
|
||||||
|
|
Loading…
Reference in New Issue