Controlling the use of TNT on a multiplayer server

Post Reply
Sporax
Member
Posts: 149
Joined: Mon Jul 11, 2016 16:33
GitHub: Sporax
IRC: Sporax
In-game: Sporax
Location: France

Controlling the use of TNT on a multiplayer server

by Sporax » Post

Hi again guys !

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,
EDIT: i can also test if there is a tnt around this one before placing (around 10 nodes...)

Thanks for reading !

Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests