readme updated :)
This commit is contained in:
parent
71108c9b34
commit
eb21fe0a34
17
README.md
17
README.md
@ -5,22 +5,9 @@ edited by TenPlus1
|
|||||||
Features:
|
Features:
|
||||||
- Items are destroyed by lava
|
- Items are destroyed by lava
|
||||||
- Items are moved along by flowing water (new routine)
|
- 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)
|
remove_items in minetest.conf (-1 disables it)
|
||||||
- Particle effects added
|
- Particle effects added
|
||||||
- Dropped items keep moving when on ice
|
- Dropped items keep moving when on ice
|
||||||
|
|
||||||
|
License: MIT
|
||||||
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.
|
|
||||||
|
9
init.lua
9
init.lua
@ -335,6 +335,13 @@ core.register_entity(":__builtin:item", {
|
|||||||
|
|
||||||
on_step = function(self, dtime)
|
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
|
self.age = self.age + dtime
|
||||||
if (time_to_live > 0 and self.age > time_to_live)
|
if (time_to_live > 0 and self.age > time_to_live)
|
||||||
or self.itemstring == "" then
|
or self.itemstring == "" then
|
||||||
@ -351,7 +358,7 @@ core.register_entity(":__builtin:item", {
|
|||||||
})
|
})
|
||||||
local def = core.registered_nodes[node.name]
|
local def = core.registered_nodes[node.name]
|
||||||
|
|
||||||
-- item inside block, move upwards
|
-- item inside block, move to vacant space
|
||||||
if def.liquidtype ~= "source"
|
if def.liquidtype ~= "source"
|
||||||
and def.liquidtype ~= "flowing"
|
and def.liquidtype ~= "flowing"
|
||||||
and node.name ~= "air"
|
and node.name ~= "air"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user