hades_revisited/mods/hades_bushes/init.lua

243 lines
6.2 KiB
Lua
Raw Normal View History

local S = minetest.get_translator("hades_bushes")
2020-10-20 05:13:42 -07:00
2015-11-09 08:06:37 -08:00
-- See README.txt for licensing and other information.
minetest.register_node("hades_bushes:branch_bush", {
description = S("Branch Bush"),
drawtype = "plantlike",
visual_scale = 1.0,
tiles = {"hades_bushes_branch.png"},
inventory_image = "hades_bushes_branch_inv.png",
wield_image = "hades_bushes_branch.png",
paramtype = "light",
paramtype2 = "meshoptions",
place_param2 = 4,
waving = 1,
walkable = false,
is_ground_content = true,
buildable_to = true,
floodable = true,
groups = {snappy=3,flammable=3,attached_node=1},
sounds = hades_sounds.node_sound_bush_defaults(),
selection_box = {
type = "fixed",
fixed = {-6/16, -0.5, -6/16, 6/16, 4/16, 6/16},
},
})
minetest.register_craft({
output = 'hades_bushes:branch_bush',
recipe = {
{'hades_core:stick'},
{'hades_core:stick'},
{'hades_core:volcanic_sand'},
},
})
-- Old oringal Minetest Hades bushes
minetest.register_node("hades_bushes:green", {
2020-10-20 05:13:42 -07:00
description = S("Green Bush"),
2015-11-09 08:06:37 -08:00
drawtype = "plantlike",
visual_scale = 1.6,
_hades_itemshow_scale = 1.2,
tiles = { "hades_bushes_green.png" },
inventory_image = "hades_bushes_green.png",
wield_image = "hades_bushes_green.png",
2015-11-09 08:06:37 -08:00
sunlight_propagates = true,
paramtype = "light",
walkable = false,
2020-11-12 14:10:15 -08:00
floodable = true,
2021-07-12 12:48:36 -07:00
groups = {snappy=3,choppy=3,flammable=2,simple_bush=1,attached_node=1,color_green=1},
sounds = hades_sounds.node_sound_bush_defaults(),
2015-11-09 08:06:37 -08:00
selection_box = {
type = "fixed",
2017-12-18 10:15:37 -08:00
fixed = {-0.325, -0.5, -0.325, 0.325, 0.5, 0.325},
2015-11-09 08:06:37 -08:00
},
})
minetest.register_craft({
output = 'hades_bushes:green',
2015-11-09 08:06:37 -08:00
recipe = {
{'group:leaves', '', ''},
{'group:stick', '', ''},
{'hades_core:dirt', '', ''},
2015-11-09 08:06:37 -08:00
}
})
minetest.register_node("hades_bushes:white", {
2020-10-20 05:13:42 -07:00
description = S("White Bush"),
2015-11-09 08:06:37 -08:00
drawtype = "plantlike",
visual_scale = 1.6,
_hades_itemshow_scale = 1.2,
tiles = { "hades_bushes_white.png" },
inventory_image = "hades_bushes_white.png",
wield_image = "hades_bushes_white.png",
2015-11-09 08:06:37 -08:00
sunlight_propagates = true,
paramtype = "light",
walkable = false,
2020-11-12 14:10:15 -08:00
floodable = true,
2021-07-12 12:48:36 -07:00
groups = {snappy=3,choppy=3,flammable=2,simple_bush=1,attached_node=1,color_white=1},
sounds = hades_sounds.node_sound_bush_defaults(),
2015-11-09 08:06:37 -08:00
selection_box = {
type = "fixed",
2017-12-18 10:15:37 -08:00
fixed = {-0.325, -0.5, -0.325, 0.325, 0.5, 0.325},
2015-11-09 08:06:37 -08:00
},
})
minetest.register_craft({
output = 'hades_bushes:white',
2015-11-09 08:06:37 -08:00
recipe = {
2020-11-14 13:12:20 -08:00
{'hades_flowers:white', '', ''},
{'hades_bushes:green', '', ''},
{'hades_core:dirt', '', ''},
2015-11-09 08:06:37 -08:00
}
})
minetest.register_node("hades_bushes:yellow", {
2020-10-20 05:13:42 -07:00
description = S("Yellow Bush"),
2015-11-09 08:06:37 -08:00
drawtype = "plantlike",
visual_scale = 1.6,
_hades_itemshow_scale = 1.2,
tiles = { "hades_bushes_yellow.png" },
inventory_image = "hades_bushes_yellow.png",
wield_image = "hades_bushes_yellow.png",
2015-11-09 08:06:37 -08:00
sunlight_propagates = true,
paramtype = "light",
walkable = false,
2020-11-12 14:10:15 -08:00
floodable = true,
2021-07-12 12:48:36 -07:00
groups = {snappy=3,choppy=3,flammable=2,simple_bush=1,attached_node=1,color_yellow=1},
sounds = hades_sounds.node_sound_bush_defaults(),
2015-11-09 08:06:37 -08:00
selection_box = {
type = "fixed",
2017-12-18 10:15:37 -08:00
fixed = {-0.325, -0.5, -0.325, 0.325, 0.5, 0.325},
2015-11-09 08:06:37 -08:00
},
})
minetest.register_craft({
output = 'hades_bushes:yellow',
2015-11-09 08:06:37 -08:00
recipe = {
2020-11-14 13:12:20 -08:00
{'hades_flowers:yellow', '', ''},
{'hades_bushes:green', '', ''},
{'hades_core:dirt', '', ''},
2015-11-09 08:06:37 -08:00
}
})
minetest.register_node("hades_bushes:blue", {
2020-10-20 05:13:42 -07:00
description = S("Blue Bush"),
2015-11-09 08:06:37 -08:00
drawtype = "plantlike",
visual_scale = 1.6,
_hades_itemshow_scale = 1.2,
tiles = { "hades_bushes_blue.png" },
inventory_image = "hades_bushes_blue.png",
wield_image = "hades_bushes_blue.png",
2015-11-09 08:06:37 -08:00
sunlight_propagates = true,
paramtype = "light",
walkable = false,
2020-11-12 14:10:15 -08:00
floodable = true,
2021-07-12 12:48:36 -07:00
groups = {snappy=3,choppy=3,flammable=2,simple_bush=1,attached_node=1,color_blue=1},
sounds = hades_sounds.node_sound_bush_defaults(),
2015-11-09 08:06:37 -08:00
selection_box = {
type = "fixed",
2017-12-18 10:15:37 -08:00
fixed = {-0.325, -0.5, -0.325, 0.325, 0.5, 0.325},
2015-11-09 08:06:37 -08:00
},
})
minetest.register_craft({
output = 'hades_bushes:blue',
2015-11-09 08:06:37 -08:00
recipe = {
2020-11-14 13:12:20 -08:00
{'hades_flowers:blue', '', ''},
{'hades_bushes:green', '', ''},
{'hades_core:dirt', '', ''},
2015-11-09 08:06:37 -08:00
}
})
minetest.register_node("hades_bushes:red", {
2020-10-20 05:13:42 -07:00
description = S("Red Bush"),
2015-11-09 08:06:37 -08:00
drawtype = "plantlike",
visual_scale = 1.6,
_hades_itemshow_scale = 1.2,
tiles = { "hades_bushes_red.png" },
inventory_image = "hades_bushes_red.png",
wield_image = "hades_bushes_red.png",
2015-11-09 08:06:37 -08:00
sunlight_propagates = true,
paramtype = "light",
walkable = false,
2020-11-12 14:10:15 -08:00
floodable = true,
2021-07-12 12:48:36 -07:00
groups = {snappy=3,choppy=3,flammable=2,simple_bush=1,attached_node=1,color_red=1},
sounds = hades_sounds.node_sound_bush_defaults(),
2015-11-09 08:06:37 -08:00
selection_box = {
type = "fixed",
2017-12-18 10:15:37 -08:00
fixed = {-0.325, -0.5, -0.325, 0.325, 0.5, 0.325},
2015-11-09 08:06:37 -08:00
},
})
minetest.register_craft({
output = 'hades_bushes:red',
2015-11-09 08:06:37 -08:00
recipe = {
2020-11-14 13:12:20 -08:00
{'hades_flowers:red', '', ''},
{'hades_bushes:green', '', ''},
{'hades_core:dirt', '', ''},
2015-11-09 08:06:37 -08:00
}
})
minetest.register_node("hades_bushes:orange", {
2020-10-20 05:13:42 -07:00
description = S("Orange Bush"),
2015-11-09 08:06:37 -08:00
drawtype = "plantlike",
visual_scale = 1.6,
_hades_itemshow_scale = 1.2,
tiles = { "hades_bushes_orange.png" },
inventory_image = "hades_bushes_orange.png",
wield_image = "hades_bushes_orange.png",
2015-11-09 08:06:37 -08:00
sunlight_propagates = true,
paramtype = "light",
walkable = false,
2020-11-12 14:10:15 -08:00
floodable = true,
2021-07-12 12:48:36 -07:00
groups = {snappy=3,choppy=3,flammable=2,simple_bush=1,attached_node=1,color_orange=1},
sounds = hades_sounds.node_sound_bush_defaults(),
2015-11-09 08:06:37 -08:00
selection_box = {
type = "fixed",
2017-12-18 10:15:37 -08:00
fixed = {-0.325, -0.5, -0.325, 0.325, 0.5, 0.325},
2015-11-09 08:06:37 -08:00
},
})
minetest.register_craft({
output = 'hades_bushes:orange',
2015-11-09 08:06:37 -08:00
recipe = {
2020-11-14 13:12:20 -08:00
{'hades_flowers:orange', '', ''},
{'hades_bushes:green', '', ''},
{'hades_core:dirt', '', ''},
2015-11-09 08:06:37 -08:00
}
})
minetest.register_node("hades_bushes:violet", {
2020-10-20 05:13:42 -07:00
description = S("Violet Bush"),
2015-11-09 08:06:37 -08:00
drawtype = "plantlike",
visual_scale = 1.6,
_hades_itemshow_scale = 1.2,
tiles = { "hades_bushes_violet.png" },
inventory_image = "hades_bushes_violet.png",
wield_image = "hades_bushes_violet.png",
2015-11-09 08:06:37 -08:00
sunlight_propagates = true,
paramtype = "light",
walkable = false,
2020-11-12 14:10:15 -08:00
floodable = true,
2021-07-12 12:48:36 -07:00
groups = {snappy=3,choppy=3,flammable=2,simple_bush=1,attached_node=1,color_violet=1},
sounds = hades_sounds.node_sound_bush_defaults(),
2015-11-09 08:06:37 -08:00
selection_box = {
type = "fixed",
2017-12-18 10:15:37 -08:00
fixed = {-0.325, -0.5, -0.325, 0.325, 0.5, 0.325},
2015-11-09 08:06:37 -08:00
},
})
minetest.register_craft({
output = 'hades_bushes:violet',
2015-11-09 08:06:37 -08:00
recipe = {
2020-11-14 13:12:20 -08:00
{'hades_flowers:violet', '', ''},
{'hades_bushes:green', '', ''},
{'hades_core:dirt', '', ''},
2015-11-09 08:06:37 -08:00
}
})