However, the current implementaion is broken.
If you hold the jump key pressed when you drop on such a bouncy node, you accellerate with a crazily high speed upwards. This speed is in no relation to the drop speed. You just have to drop from a height of 1 or two nodes and you jump about 100 nodes high. It does not seem to matter much how high the bouncyness is.
Here is a minimalist test code for a test mod which registers 10 bouncy nodes, ranging from 10 to 100 % bouncyness:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
for i=10,100,10 do
minetest.register_node("bouncytest:bouncy_"..i, {
description = "bouncy test node ("..i.."%)",
groups = { bouncy = i },
})
end
Seen in Minetest 0.4.10 on a GNU/Linux computer. But I also have seen it on 0.4.9.