Stopping a sign from breaking

Discuss any issues with Denizen-Bukkit scripts or functionality you may have while using it.
Post Reply
KoBro12
New
New
Posts: 1
Joined: September 25th, 2019, 5:21 pm

Stopping a sign from breaking

Post by KoBro12 » September 27th, 2019, 5:40 pm

Hello, I'm trying to make a "gravestone" system (Kinda like the old Runescape gravestones, where you can re-claim your items if you manage to return to the location in time), but I'm having some problems with keeping the "gravestones" from breaking.

The issue I'm having is that if a creeper blows up, the gravestone will get blown up (Probably the same goes for TNT and other explosions, or the block burning), so I was wondering if there is a way to check if the sign is being block-updated with an event, or if someone has an idea for how to prevent it from breaking (preferably I don't want it to randomly float, and also prefer there not to be obsidian involved)

Thanks!
- KoBro

User avatar
mcmonkey
Site Admin
Site Admin
Posts: 217
Joined: August 5th, 2016, 7:27 pm
Location: Los Angeles, California, USA
Contact:

Re: Stopping a sign from breaking

Post by mcmonkey » September 27th, 2019, 5:43 pm

(Moved to issues section)

You basically have to listen to *every* applicably event (player breaks block, entity explodes, ...) and for that matter listens to the block *below* the sign breaking as well.
Denizen lead developer.
http://mcmonkey.org

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest