forked from mtcontrib/plantlife_modpack
f11fa6e6fe
so simplify and revise it to act as a "3d-ify" mod for them. Unidenfied spores aliased to the regular default equivalents poison and essence aliased back to their originating mushrooms identifier aliased to mese crystal (most expensive component of it) everything else aliased to their default counterparts spores are not dropped from digging dirt with grass anymore
69 lines
2.0 KiB
Lua
69 lines
2.0 KiB
Lua
|
|
-- 3D Mushroom mod by VanessaE
|
|
--
|
|
-- License: WTFPL for everything.
|
|
|
|
mushroom = {}
|
|
|
|
minetest.override_item("flowers:mushroom_fertile_brown", {
|
|
drawtype = "mesh",
|
|
mesh = "3dmushrooms.obj",
|
|
tiles = {"3dmushrooms_brown.png"},
|
|
selection_box = {
|
|
type = "fixed",
|
|
fixed = {-0.3, -0.5, -0.3, 0.3, 0, 0.3}
|
|
},
|
|
inventory_image = "3dmushrooms_brown_inv.png"
|
|
})
|
|
|
|
minetest.override_item("flowers:mushroom_brown", {
|
|
drawtype = "mesh",
|
|
mesh = "3dmushrooms.obj",
|
|
tiles = {"3dmushrooms_brown.png"},
|
|
selection_box = {
|
|
type = "fixed",
|
|
fixed = {-0.3, -0.5, -0.3, 0.3, 0, 0.3}
|
|
},
|
|
inventory_image = "3dmushrooms_brown_inv.png"
|
|
})
|
|
|
|
minetest.override_item("flowers:mushroom_fertile_red", {
|
|
drawtype = "mesh",
|
|
mesh = "3dmushrooms.obj",
|
|
tiles = {"3dmushrooms_red.png"},
|
|
selection_box = {
|
|
type = "fixed",
|
|
fixed = {-0.3, -0.5, -0.3, 0.3, 0, 0.3}
|
|
},
|
|
inventory_image = "3dmushrooms_red_inv.png"
|
|
})
|
|
|
|
minetest.override_item("flowers:mushroom_red", {
|
|
drawtype = "mesh",
|
|
mesh = "3dmushrooms.obj",
|
|
tiles = {"3dmushrooms_red.png"},
|
|
selection_box = {
|
|
type = "fixed",
|
|
fixed = {-0.3, -0.5, -0.3, 0.3, 0, 0.3}
|
|
},
|
|
inventory_image = "3dmushrooms_red_inv.png"
|
|
})
|
|
|
|
-- aliases to the default mushrooms
|
|
|
|
minetest.register_alias("mushroom:brown", "flowers:mushroom_brown")
|
|
minetest.register_alias("mushroom:brown_natural", "flowers:mushroom_fertile_brown")
|
|
minetest.register_alias("mushroom:spore_brown", "flowers:mushroom_spores_brown")
|
|
minetest.register_alias("mushroom:spore2", "flowers:mushroom_spores_brown")
|
|
minetest.register_alias("mushroom:brown_essence", "flowers:mushroom_brown")
|
|
|
|
minetest.register_alias("mushroom:red", "flowers:mushroom_red")
|
|
minetest.register_alias("mushroom:red_natural", "flowers:mushroom_fertile_red")
|
|
minetest.register_alias("mushroom:spore_red", "flowers:mushroom_spores_red")
|
|
minetest.register_alias("mushroom:spore1", "flowers:mushroom_spores_red")
|
|
minetest.register_alias("mushroom:poison", "flowers:mushroom_red")
|
|
|
|
minetest.register_alias("mushroom:identifier", "default:mese_crystal_fragment")
|
|
|
|
print("[3D Mushrooms] loaded.")
|