Remove heads and pumpkin from combat creative tab
This commit is contained in:
parent
b04abdaf99
commit
62f755f52a
4 changed files with 7 additions and 6 deletions
|
@ -22,8 +22,8 @@ do
|
|||
local is_tool = function(def)
|
||||
return def.groups.tool or (def.tool_capabilities ~= nil and def.tool_capabilities.damage_groups == nil)
|
||||
end
|
||||
local is_weapon = function(def)
|
||||
return def.groups.weapon or def.groups.weapon_ranged or def.groups.ammo or def.groups.armor_head or def.groups.armor_torso or def.groups.armor_legs or def.groups.armor_feet
|
||||
local is_weapon_or_armor = function(def)
|
||||
return def.groups.weapon or def.groups.weapon_ranged or def.groups.ammo or ((def.groups.armor_head or def.groups.armor_torso or def.groups.armor_legs or def.groups.armor_feet) and def.groups.non_combat_armor ~= 1)
|
||||
end
|
||||
if def.groups.building_block then
|
||||
table.insert(inventory_lists["blocks"], name)
|
||||
|
@ -43,7 +43,7 @@ do
|
|||
if is_tool(def) then
|
||||
table.insert(inventory_lists["tools"], name)
|
||||
end
|
||||
if is_weapon(def) then
|
||||
if is_weapon_or_armor(def) then
|
||||
table.insert(inventory_lists["combat"], name)
|
||||
end
|
||||
if def.groups.brewitem then
|
||||
|
@ -52,7 +52,7 @@ do
|
|||
if def.groups.craftitem then
|
||||
table.insert(inventory_lists["matr"], name)
|
||||
end
|
||||
if not def.groups.building_block and not def.groups.deco_block and not is_redstone(def) and not def.groups.transport and not def.groups.food and not def.groups.eatable and not is_tool(def) and not is_weapon(def) and not def.groups.craftitem and not def.groups.brewitem then
|
||||
if not def.groups.building_block and not def.groups.deco_block and not is_redstone(def) and not def.groups.transport and not def.groups.food and not def.groups.eatable and not is_tool(def) and not is_weapon_or_armor(def) and not def.groups.craftitem and not def.groups.brewitem then
|
||||
table.insert(inventory_lists["misc"], name)
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue