Jump to content

Event for block placement and breaking by mods or non-players


Recommended Posts

Posted

For server-side mods that protect blocks or regions so a player can own or claim something that others can't build on, break, enter or steal from.

 

It is easy to protect from direct player interaction, by using @ForgeSubscribe with PlayerInteractEvent, but unfortunately this doesn't detect when a block is placed or broken by a quarry, mining laser or turtle.

 

I get a lot of request to add protection against machines to the Chunk Protection mod, but at this point that doesn't seem possible.

 

If there already is a way to do this, please let me know.

 

I've seen mods having 'fake players' before, but i guess that was added with Bukkit ports, because I can't find it anymore in the mods configuration files.

  • 2 weeks later...
Posted

I would love to see this as well. I made a suggestion to the maker of the modular forcefield mod, and he said that he'd need similar hooks to implement my suggestion of fields that protect blocks in much the same way that spawn zone protection exists.

Posted

Even if this is added, you'd need to have mod cooperation to do something like blockDestroyedByMod=true in the mods

"you seem to be THE best modder I've seen imo."

~spynathan

 

ლ(́◉◞౪◟◉‵ლ

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.