mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-11-15 23:10:31 +01:00
Fixed itemstrings' prefixes and wrongly applyed diff
This commit is contained in:
parent
796832736d
commit
3022c7b152
|
@ -1,35 +1,35 @@
|
||||||
-- Register helmets:
|
-- Register helmets:
|
||||||
|
|
||||||
minetest.register_tool("3d_armor:helmet_leather_hunter", {
|
minetest.register_tool(":3d_armor:helmet_leather_hunter", {
|
||||||
description = "Hunter's Leather Helmet",
|
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
|
groups = {armor_head = 10, armor_heal = 0, armor_use = 500}, --Valeurs non décidés
|
||||||
wear = 0,
|
wear = 0,
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Register chestplates:
|
-- Register chestplates:
|
||||||
|
|
||||||
minetest.register_tool("3d_armor:chestplate_leather_hunter", {
|
minetest.register_tool(":3d_armor:chestplate_leather_hunter", {
|
||||||
description = "Hunter's Leather Chestplate",
|
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
|
groups = {armor_torso = 15, armor_heal = 0, armor_use = 500}, --Valeurs non décidés
|
||||||
wear = 0,
|
wear = 0,
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Register leggings:
|
-- Register leggings:
|
||||||
|
|
||||||
minetest.register_tool("3d_armor:leggings_leather_hunter", {
|
minetest.register_tool(":3d_armor:leggings_leather_hunter", {
|
||||||
description = "Hunter's Leather Leggings",
|
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
|
groups = {armor_legs = 15, armor_heal = 0, armor_use = 500}, --Valeurs non décidés
|
||||||
wear = 0,
|
wear = 0,
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Register boots:
|
-- Register boots:
|
||||||
|
|
||||||
minetest.register_tool("3d_armor:boots_leather_hunter", {
|
minetest.register_tool(":3d_armor:boots_leather_hunter", {
|
||||||
description = "Hunter's Leather Boots",
|
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
|
groups = {armor_feet = 10, armor_heal = 0, armor_use = 500}, --Valeurs non décidés
|
||||||
wear = 0,
|
wear = 0,
|
||||||
})
|
})
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
-- We need an init.lua, even an empty one
|
1
mods/3d_armor_classes/obsidian_armor_wizard/init.lua
Normal file
1
mods/3d_armor_classes/obsidian_armor_wizard/init.lua
Normal file
|
@ -0,0 +1 @@
|
||||||
|
-- We need an init.lua, even an empty one
|
|
@ -1,35 +1,35 @@
|
||||||
-- Register helmets:
|
-- 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",
|
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
|
groups = {armor_head = 10, armor_heal = 0, armor_use = 500}, --Valeurs non décidés
|
||||||
wear = 0,
|
wear = 0,
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Register chestplates:
|
-- 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",
|
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
|
groups = {armor_torso = 15, armor_heal = 0, armor_use = 500}, --Valeurs non décidés
|
||||||
wear = 0,
|
wear = 0,
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Register leggings:
|
-- 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",
|
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
|
groups = {armor_legs = 15, armor_heal = 0, armor_use = 500}, --Valeurs non décidés
|
||||||
wear = 0,
|
wear = 0,
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Register boots:
|
-- 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",
|
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
|
groups = {armor_feet = 10, armor_heal = 0, armor_use = 500}, --Valeurs non décidés
|
||||||
wear = 0,
|
wear = 0,
|
||||||
})
|
})
|
||||||
|
|
|
@ -1293,8 +1293,9 @@ function mobs:register_egg(mob, desc, background, addegg)
|
||||||
local mob = minetest.add_entity(pos, mob)
|
local mob = minetest.add_entity(pos, mob)
|
||||||
local ent = mob:get_luaentity()
|
local ent = mob:get_luaentity()
|
||||||
if ent.type ~= "monster" then
|
if ent.type ~= "monster" then
|
||||||
ent.owner = placer:get_player_name() + -- set owner
|
ent.owner = placer:get_player_name()
|
||||||
ent.tamed = true + ent.owner = placer:get_player_name()
|
ent.tamed = true
|
||||||
|
ent.owner = placer:get_player_name()
|
||||||
ent.tamed = true
|
ent.tamed = true
|
||||||
end
|
end
|
||||||
itemstack:take_item()
|
itemstack:take_item()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user