Hi there! I am trying to make a Skript for my mini game which allows players to place obsidian that will be removed after 40 seconds. However, I do not want players to be able to destroy the map by placing obsidian in water sources, grass, flowers, etc. I ONLY want the player to be able to place the obsidian if the block where it will be placed is an air block. This is what I have so far, but it doesn't work.
EDIT: To clarify the problem, the current issue is that I am not able to place obsidian anywhere on the map.
EDIT: To clarify the problem, the current issue is that I am not able to place obsidian anywhere on the map.
Code:
on place:
if player's tool is obsidian:
if block at event-location is air:
wait 40 seconds
set block at event-location to air
stop
else:
cancel event
else:
cancel event
Last edited: