mirror of
https://github.com/mt-mods/plantlife_modpack.git
synced 2024-11-14 14:20:40 +01:00
8287ae2476
* Add German translation Add German translation * Add German translation Add German translation * Add German translation Add German translation * Add German transaltion Add German translation * Add German translation Add German translation * Add German translation Add German translation * Add German translation Add German translation * Add German translation Add German translation * Add German translation Add German translation * Add German translation Add German translation * Add support for i18n Add support for i18n, make loading translateable * Add template for translation * Add German translation Add German translation
73 lines
2.2 KiB
Lua
73 lines
2.2 KiB
Lua
-- 3D Mushroom mod by VanessaE
|
|
|
|
mushroom = {}
|
|
|
|
-- support for i18n
|
|
local S = minetest.get_translator("3dmushrooms")
|
|
|
|
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",
|
|
wield_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",
|
|
wield_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",
|
|
wield_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",
|
|
wield_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")
|
|
|
|
minetest.log("info", S("[3D Mushrooms] loaded."))
|