Page 1 of 1

What are the set_node and TNT callbacks?

PostPosted: Sat Dec 31, 2016 18:22
by Swablu
I am not sure what callbacks are called using set_node

As i understand it now:
set_node(non-air) on a non-air node triggers the "on_construct", "on_destruct" and "after_destruct" callbacks
set_node(non-air) on a air node triggers the "on_construct" callback
set_node(air) on a non-air node triggers the "on_destruct" and "after_destruct" callbacks

TNT triggers "on_blast", "on_destruct" and "after_destruct" callbacks

Please correct me if i am wrong

Re: What are the set_node and TNT callbacks?

PostPosted: Sat Dec 31, 2016 19:13
by red-001
I'm pretty sure that TNT only triggers "on_blast".

Re: What are the set_node and TNT callbacks?

PostPosted: Mon Jan 02, 2017 08:35
by Swablu
Thank you red-001
I already thought I had something wrong..