readme updated :)

This commit is contained in:
TenPlus1 2017-01-06 19:46:27 +00:00
parent 71108c9b34
commit eb21fe0a34
2 changed files with 10 additions and 16 deletions

View File

@ -5,22 +5,9 @@ edited by TenPlus1
Features:
- Items are destroyed by lava
- Items are moved along by flowing water (new routine)
- Items are removed after 120 seconds or the time that is specified by
- Items are removed after 900 seconds or the time that is specified by
remove_items in minetest.conf (-1 disables it)
- Particle effects added
- Dropped items keep moving when on ice
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. You just DO WHAT THE FUCK YOU WANT TO.
License: MIT

View File

@ -335,6 +335,13 @@ core.register_entity(":__builtin:item", {
on_step = function(self, dtime)
self.timer = (self.timer or 0) + dtime
if self.timer < 0.5 then
return
end
self.timer = 0
self.age = self.age + dtime
if (time_to_live > 0 and self.age > time_to_live)
or self.itemstring == "" then
@ -351,7 +358,7 @@ core.register_entity(":__builtin:item", {
})
local def = core.registered_nodes[node.name]
-- item inside block, move upwards
-- item inside block, move to vacant space
if def.liquidtype ~= "source"
and def.liquidtype ~= "flowing"
and node.name ~= "air"