Sueta

Fredashay's Painting Protect

2023-11-11

This plugin protects paintings.

·Plugin
  1. 2023-11-11latestUpdated for 1.20Nov 11, 2023
    Updated for Minecraft 1.20.
    1 download
  2. 3.2Allow ExplosionsJan 19, 2021
    I think I might have found the problem. Because Armor Stands and Item Frames are entities (kind'a like peaceful mobs that don't move) with Entity-IDs rather than blocks with X/Y/Z coordinates, the plugin has to scan the surrounding area whenever someone breaks or blows up a block looking for armor stands and item frames and then looking up the database to see if someone owns them. That whole process is a bit of a kluge/bodge and sometimes got confused and prevented explosions when there is an armor stand or item frame in the vicinity but not in the range of the explosion. This is one reason I originally protected the armor stand itself, but not the block it's standing on. Explosions are no longer prevented in the vicinity of these entities. The plugin will try to prevent the entity from being destroyed, but that's not guaranteed.
    89 downloads
  3. 3.1Enhancements requested by userJan 12, 2021
    When I first wrote this plugin back for an ancient version of Minecraft, paintings, item frames, and armor stands did not spawn naturally. They had to be placed by a player in order to exist in the world. My code assumed that these items belonged to some player, and if you weren't the owner, you were not allowed to interact with them. Yes, I know what happens when you ass-u-me things, lol. This new version still protects items placed in the world by players, but allows any player to interact with a naturally-occurring container entity, such as an item frame in an end city containing an elytra, or a painting in a mansion. I was also asked to protect the block that the item was mounted to or standing on. I originally did not do this because the intent for this plugin was to prevent theft from these container-type items, not their movement or destruction -- IMO, that's the job of a grief protection or a plot claim plugin to protect the entity, itself, from griefing. But now this plugin will attempt to prevent a griefer from destroying the block that an armor stand, item frame, or painting is standing on or mounted to. This was especially tricky to do because these things are entities, not blocks. To the Minecraft game code internals, these things are peaceful mobs that don't move, rather than blocks that have an X-Y-Z position in the world.
    29 downloads
  4. 3.0Recompiled for 1.16Dec 19, 2020
    Recompiled for 1.16
    30 downloads
  5. 2018-03-17Mar 17, 2018
    114 downloads

Similar projects

Plugin →