I'm asking today for some help to modify TNT mod. I would like to use the TNT on my multiplayer server but i have to find a solution in order to restrict TNT abuse (i know in fact that people will create hunderds of tnt to burn them...) i would like to find a way to avoid this.
The idea is to limit the number of placed TNT per player. They could place 3 TNT at a time, and if they activate one, they could place another one...
Someone has an idea on how to release it or has already release that ?
To respsond to my problem i've already something to allow only TNT under y =-10
added to TNT register_node
Code: Select all
on_construct = function(pos)
if pos.y > -10 then
minetest.remove_node({x=pos.x, y=pos.y, z=pos.z})
end
end,
Thanks for reading !