diff --git a/mods/3d_armor_classes/leather_armor_hunter/init.lua b/mods/3d_armor_classes/leather_armor_hunter/init.lua index 6c00c633..aadb223e 100644 --- a/mods/3d_armor_classes/leather_armor_hunter/init.lua +++ b/mods/3d_armor_classes/leather_armor_hunter/init.lua @@ -1,35 +1,35 @@ -- Register helmets: -minetest.register_tool("3d_armor:helmet_leather_hunter", { +minetest.register_tool(":3d_armor:helmet_leather_hunter", { description = "Hunter's Leather Helmet", - inventory_image = "3d_armor_inv_helmet_leather_hunter.png", + inventory_image = ":3d_armor_inv_helmet_leather_hunter.png", groups = {armor_head = 10, armor_heal = 0, armor_use = 500}, --Valeurs non décidés wear = 0, }) -- Register chestplates: -minetest.register_tool("3d_armor:chestplate_leather_hunter", { +minetest.register_tool(":3d_armor:chestplate_leather_hunter", { description = "Hunter's Leather Chestplate", - inventory_image = "3d_armor_inv_chestplate_leather_hunter.png", + inventory_image = ":3d_armor_inv_chestplate_leather_hunter.png", groups = {armor_torso = 15, armor_heal = 0, armor_use = 500}, --Valeurs non décidés wear = 0, }) -- Register leggings: -minetest.register_tool("3d_armor:leggings_leather_hunter", { +minetest.register_tool(":3d_armor:leggings_leather_hunter", { description = "Hunter's Leather Leggings", - inventory_image = "3d_armor_inv_leggings_leather_hunter.png", + inventory_image = ":3d_armor_inv_leggings_leather_hunter.png", groups = {armor_legs = 15, armor_heal = 0, armor_use = 500}, --Valeurs non décidés wear = 0, }) -- Register boots: - minetest.register_tool("3d_armor:boots_leather_hunter", { + minetest.register_tool(":3d_armor:boots_leather_hunter", { description = "Hunter's Leather Boots", - inventory_image = "3d_armor_inv_boots_leather_hunter.png", + inventory_image = ":3d_armor_inv_boots_leather_hunter.png", groups = {armor_feet = 10, armor_heal = 0, armor_use = 500}, --Valeurs non décidés wear = 0, }) diff --git a/mods/3d_armor_classes/magic_mithril_armor_wizard/init.lua b/mods/3d_armor_classes/magic_mithril_armor_wizard/init.lua new file mode 100644 index 00000000..8845a9d0 --- /dev/null +++ b/mods/3d_armor_classes/magic_mithril_armor_wizard/init.lua @@ -0,0 +1 @@ +-- We need an init.lua, even an empty one diff --git a/mods/3d_armor_classes/obsidian_armor_wizard/init.lua b/mods/3d_armor_classes/obsidian_armor_wizard/init.lua new file mode 100644 index 00000000..8845a9d0 --- /dev/null +++ b/mods/3d_armor_classes/obsidian_armor_wizard/init.lua @@ -0,0 +1 @@ +-- We need an init.lua, even an empty one diff --git a/mods/3d_armor_classes/reinforced_leather_armor_hunter/init.lua b/mods/3d_armor_classes/reinforced_leather_armor_hunter/init.lua index e3e7d232..0ca5889e 100644 --- a/mods/3d_armor_classes/reinforced_leather_armor_hunter/init.lua +++ b/mods/3d_armor_classes/reinforced_leather_armor_hunter/init.lua @@ -1,35 +1,35 @@ -- Register helmets: -minetest.register_tool("3d_armor:helmet_reinforced_leather_hunter", { +minetest.register_tool(":3d_armor:helmet_reinforced_leather_hunter", { description = "Hunter's Reinforced Leather Helmet", - inventory_image = "3d_armor_inv_helmet_reinforced_leather_hunter.png", + inventory_image = ":3d_armor_inv_helmet_reinforced_leather_hunter.png", groups = {armor_head = 10, armor_heal = 0, armor_use = 500}, --Valeurs non décidés wear = 0, }) -- Register chestplates: -minetest.register_tool("3d_armor:chestplate_reinforced_leather_hunter", { +minetest.register_tool(":3d_armor:chestplate_reinforced_leather_hunter", { description = "Hunter's Reinforced Leather Chestplate", - inventory_image = "3d_armor_inv_chestplate_reinforced_leather_hunter.png", + inventory_image = ":3d_armor_inv_chestplate_reinforced_leather_hunter.png", groups = {armor_torso = 15, armor_heal = 0, armor_use = 500}, --Valeurs non décidés wear = 0, }) -- Register leggings: -minetest.register_tool("3d_armor:leggings_reinforced_leather_hunter", { +minetest.register_tool(":3d_armor:leggings_reinforced_leather_hunter", { description = "Hunter's Reinforced Leather Leggings", - inventory_image = "3d_armor_inv_leggings_reinforced_leather_hunter.png", + inventory_image = ":3d_armor_inv_leggings_reinforced_leather_hunter.png", groups = {armor_legs = 15, armor_heal = 0, armor_use = 500}, --Valeurs non décidés wear = 0, }) -- Register boots: - minetest.register_tool("3d_armor:boots_reinforced_leather_hunter", { + minetest.register_tool(":3d_armor:boots_reinforced_leather_hunter", { description = "Hunter's Reinforced Leather Boots", - inventory_image = "3d_armor_inv_boots_reinforced_leather_hunter.png", + inventory_image = ":3d_armor_inv_boots_reinforced_leather_hunter.png", groups = {armor_feet = 10, armor_heal = 0, armor_use = 500}, --Valeurs non décidés wear = 0, }) diff --git a/mods/mobs/api.lua b/mods/mobs/api.lua index 395cc6c7..4350a86a 100644 --- a/mods/mobs/api.lua +++ b/mods/mobs/api.lua @@ -1293,8 +1293,9 @@ function mobs:register_egg(mob, desc, background, addegg) local mob = minetest.add_entity(pos, mob) local ent = mob:get_luaentity() if ent.type ~= "monster" then - ent.owner = placer:get_player_name() + -- set owner - ent.tamed = true + ent.owner = placer:get_player_name() + ent.owner = placer:get_player_name() + ent.tamed = true + ent.owner = placer:get_player_name() ent.tamed = true end itemstack:take_item()