I have a working script to add a "block owner" to the jungle wood blocks placed by a player.
I would like to add, that when player 1 places jungle wood in a radius of 2 blocks around another block of jungle wood of player 2, the "block owner" of player 1 is not saved.
sorry for my bad English
I would like to add, that when player 1 places jungle wood in a radius of 2 blocks around another block of jungle wood of player 2, the "block owner" of player 1 is not saved.
sorry for my bad English
Code:
on place jungle planks:
set {owner::%event-block%} to player
on break jungle planks:
if {owner::%event-block%} != "%player%":
if gamemode of player is creative:
delete {owner::%event-block%}
else:
cancel event
send "&cYou cannot break someone else's structures."
else:
delete {owner::%event-block%}