mirror of
https://github.com/minetest-mods/3d_armor.git
synced 2024-12-23 09:12:21 +01:00
Prevent admin armor from being dropped
This commit is contained in:
parent
64f6be4d61
commit
67867e78ec
@ -8,6 +8,9 @@ minetest.register_tool("3d_armor:helmet_admin", {
|
||||
inventory_image = "3d_armor_inv_helmet_admin.png",
|
||||
groups = {armor_head=1000, armor_heal=1000, armor_use=0, not_in_creative_inventory=1},
|
||||
wear = 0,
|
||||
on_drop = function(itemstack, dropper, pos)
|
||||
return
|
||||
end,
|
||||
})
|
||||
|
||||
minetest.register_tool("3d_armor:chestplate_admin", {
|
||||
@ -15,6 +18,9 @@ minetest.register_tool("3d_armor:chestplate_admin", {
|
||||
inventory_image = "3d_armor_inv_chestplate_admin.png",
|
||||
groups = {armor_torso=1000, armor_heal=1000, armor_use=0, not_in_creative_inventory=1},
|
||||
wear = 0,
|
||||
on_drop = function(itemstack, dropper, pos)
|
||||
return
|
||||
end,
|
||||
})
|
||||
|
||||
minetest.register_tool("3d_armor:leggings_admin", {
|
||||
@ -22,6 +28,9 @@ minetest.register_tool("3d_armor:leggings_admin", {
|
||||
inventory_image = "3d_armor_inv_leggings_admin.png",
|
||||
groups = {armor_legs=1000, armor_heal=1000, armor_use=0, not_in_creative_inventory=1},
|
||||
wear = 0,
|
||||
on_drop = function(itemstack, dropper, pos)
|
||||
return
|
||||
end,
|
||||
})
|
||||
|
||||
minetest.register_tool("3d_armor:boots_admin", {
|
||||
@ -29,5 +38,8 @@ minetest.register_tool("3d_armor:boots_admin", {
|
||||
inventory_image = "3d_armor_inv_boots_admin.png",
|
||||
groups = {armor_feet=1000, armor_heal=1000, armor_use=0, not_in_creative_inventory=1},
|
||||
wear = 0,
|
||||
on_drop = function(itemstack, dropper, pos)
|
||||
return
|
||||
end,
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user