How do I make a block unplaceable, and not conflict with my other code? My current code looks like this:
on right click with beacon:
if name of tool of player is "&b&lRevive Beacon":
send "&aRight Click Works!"
subtract 1 of beacon named "&b&lRevive Beacon" from player's inventory
on place of beacon:
if name of tool of player is "&b&lRevive Beacon":
send "&4You can't place that block!"
cancel event
It works if you have over 3 revive beacons, but if you only have either one or two, the beacon will still place.
on right click with beacon:
if name of tool of player is "&b&lRevive Beacon":
send "&aRight Click Works!"
subtract 1 of beacon named "&b&lRevive Beacon" from player's inventory
on place of beacon:
if name of tool of player is "&b&lRevive Beacon":
send "&4You can't place that block!"
cancel event
It works if you have over 3 revive beacons, but if you only have either one or two, the beacon will still place.