mirror of
https://gitlab.com/lunovox/components.git
synced 2025-03-14 23:51:21 +00:00
[bugfix] Codigo não testado!
This commit is contained in:
parent
de244c1aeb
commit
03e6e26978
1 changed files with 3 additions and 6 deletions
|
@ -33,14 +33,11 @@ end
|
|||
-- Dig 'components:bioresin' in 'default:jungletree'
|
||||
modComponents.addDrops("default:jungletree", 1, 'default:jungletree') -- rarity:1 = 1/1 = 100%
|
||||
modComponents.addDrops("components:bioresin", 5, 'default:jungletree') -- rarity:5 = 1/5 = 20%
|
||||
if type(unified_inventory)=="table" and type(unified_inventory.add_category_items)=="function" then
|
||||
unified_inventory.add_category_items('plants', {"components:bioresin"})
|
||||
end
|
||||
--########################################################################################################################
|
||||
-- Dig 'components:quartzo_crystal_pink' in 'default:gravel'
|
||||
modComponents.addDrops("components:quartzo_crystal_pink", 20, 'default:gravel') -- rarity:20 = 1/20 = 05%
|
||||
if type(unified_inventory)=="table" and type(unified_inventory.add_category_items)=="function" then
|
||||
|
||||
if minetest.global_exists(unified_inventory.add_category_items) then
|
||||
unified_inventory.add_category_items('plants', {"components:bioresin"})
|
||||
unified_inventory.add_category_items('minerals', {"components:quartzo_crystal_pink"})
|
||||
end
|
||||
--########################################################################################################################
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue