[antum_overrides] Use new method 'minetest.unregister_item()' to
unregister 'animalmaterials:feather'.
This commit is contained in:
parent
b13d9ee8c8
commit
cf66d0c2c1
@ -24,6 +24,10 @@
|
||||
|
||||
--]]
|
||||
|
||||
|
||||
-- NOTE: This mod depends on the method 'minetest.unregister_item()' by paly2.
|
||||
-- As of writing, the Mineteset main branch does not include it.
|
||||
|
||||
antum.overrides = {}
|
||||
antum.overrides.modname = minetest.get_current_modname()
|
||||
antum.overrides.modpath = minetest.get_modpath(antum.overrides.modname)
|
||||
|
@ -25,6 +25,19 @@
|
||||
--]]
|
||||
|
||||
|
||||
-- ITEMS THAT SHOULD NOT BE AVAILABLE IN ANTUM GAME
|
||||
|
||||
local delete_items = {
|
||||
'feather',
|
||||
}
|
||||
|
||||
for I in pairs(delete_items) do
|
||||
minetest.unregister_item('animalmaterials:' .. delete_items[I])
|
||||
end
|
||||
|
||||
|
||||
-- OVERRIDING CRAFT ITEMS
|
||||
|
||||
minetest.register_craftitem(':animalmaterials:fish_bluewhite', {
|
||||
description = 'Raw Bluewhite Fish',
|
||||
image = 'fish_raw.png',
|
||||
@ -32,7 +45,6 @@ minetest.register_craftitem(':animalmaterials:fish_bluewhite', {
|
||||
groups = { meat=1, eatable=1 },
|
||||
stack_max = 25
|
||||
})
|
||||
|
||||
minetest.register_alias('fish_bluewhite_raw', 'animalmaterials:fish_bluewhite')
|
||||
|
||||
minetest.register_craftitem(':animalmaterials:fish_clownfish', {
|
||||
@ -42,5 +54,4 @@ minetest.register_craftitem(':animalmaterials:fish_clownfish', {
|
||||
groups = { meat=1, eatable=1 },
|
||||
stack_max = 25
|
||||
})
|
||||
|
||||
minetest.register_alias('clownfish_raw', 'animalmaterials:fish_clownfish')
|
||||
|
Loading…
x
Reference in New Issue
Block a user