mirror of
https://github.com/minetest-mods/item_drop.git
synced 2024-12-22 22:02:26 +01:00
Update README to current changes
This commit is contained in:
parent
2b0847eae6
commit
155b646053
14
README.txt
14
README.txt
@ -16,6 +16,20 @@ http://wiki.minetest.com/wiki/Installing_Mods
|
|||||||
How to use the mod:
|
How to use the mod:
|
||||||
Just install it an everything works.
|
Just install it an everything works.
|
||||||
|
|
||||||
|
For developers:
|
||||||
|
This mod changes the minetest.get_node_drops() function to always
|
||||||
|
return {}. Use minetest.get_drops() to get the right drop.
|
||||||
|
Example:
|
||||||
|
Before:
|
||||||
|
local drop = minetest.get_node_drops("default:dirt", "default:pick_mese")
|
||||||
|
After:
|
||||||
|
local drop
|
||||||
|
if minetest.get_modpath("item_drop") == nil then
|
||||||
|
drop = minetest.get_node_drops("default:dirt", "default:pick_mese")
|
||||||
|
else
|
||||||
|
drop = minetest.get_drops("default:dirt", "default:pick_mese")
|
||||||
|
end
|
||||||
|
|
||||||
License:
|
License:
|
||||||
Sourcecode: WTFPL (see below)
|
Sourcecode: WTFPL (see below)
|
||||||
Sound: WTFPL (see below)
|
Sound: WTFPL (see below)
|
||||||
|
Loading…
Reference in New Issue
Block a user