Hi, my username is azekill_DIABLO and i'm an exelent bug-maker(yeah...i know...i have a bad reputation)pithy wrote:falling_kill_node "Will kill players if it lands on their heads."
local objs = minetest.get_objects_inside_radius(pos, 1)
taikedz wrote:https://github.com/pithydon/falling_nodes/blob/master/init.lua#L89Your 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
local objs = minetest.get_objects_inside_radius(pos, 1)
Won't this also kill any players it falls /past/ ? :-P
Azazel wrote:How could you use this? I mean. How could apply this to a node, is I'm not a programmer but I like to get their hands on some mod that I use when I play.
Wuzzy wrote:You should also define the required group ratings in the readme file, this is very important when defining any new groups.
Wuzzy wrote:Also, do any of your groups interact with the default falling_node group? Or are they independent? Please write this relation down, too. Please. :-)
Wuzzy wrote:I would maybe add a variant of falling_kill_node which only damages the player on impact instead of killing directly. E.g. falling_damage_node=<damage>
Wuzzy wrote:Finally, I think a group for a node which falls when a player (Or even a mob??? But I think this is too complex) steps on it would be awesome. Especially for jump'n'runs. :-) Maybe with the group rating setting the delay in tenths of seconds, and the special value -1 for instant falling. Example: fall_on_step=30 means the node will fall 3 seconds after the player stepped on it.
Wuzzy wrote:- destroy_after_fall=1: Does not trigger falling itself, but when it hits the ground after falling, it will be destroyed (it disappears). Node must of course have any of the groups which can call trigger, otherwise this group will not do anything
- drop_after_fall=1: Similar to the above, but node will instead drop as an item on impact (like attached_node).
Wuzzy wrote:I found a bug (I guess …)!
If you place two falling_hanging_nodes below each other, the first one hanging from a normal node, and the second one hanging from the first falling_hanging_node, the nodes won't fall if you dig the normal node. I would expect both nodes to fall since the nodes collectively don't have anything to hang from.
Users browsing this forum: Google [Bot] and 36 guests