Filled AntiVillagerExp

Discussion in 'Plugin Requests' started by AkiraTsubasa, Nov 29, 2020.

  1. Offline

    AkiraTsubasa

    FILLED! [redflower] Thanks a lot to @Mathias Eklund for helping me on this plugin request, the plugin and all its features asked in this thread has been made by him, and the final result has been fully tested and everything works fine[redflower]
    PLUGIN DOWNLOAD: here!
    (AntiVillagerExp)

    Plugin category: Mechanics

    Minecraft version: 1.8.8

    Suggested name: AntiVillagerExp

    What I want: I'd like a plugin that prevents villagers from droping exp when they finish a trade with a player.

    Unfortunately there isn't a specific event for when the villager drops the exp after a trade, but there are certain properties that makes this a possible thing to do.
    There is an attribute for InventoryType which can describe the inventory as being of type "MERCHANT", and there is an NBT tag for villagers called "rewardExp" that determines whether they will drop exp or not after a trade.
    So knowing that, maybe the best way to make this would be by changing the villagers's NBT tag that are near the player when the player triggers an InventoryOpenEvent as for when its "MERCHANT" type.
     
    Last edited: Dec 3, 2020
  2. Offline

    Mathias Eklund

    No problems :)
    Made the plugin for you: <Edit by Moderator: Redacted mediafire url>

    Just put it in your server and it should block it automatically.
     
    Last edited by a moderator: Nov 29, 2020
  3. Offline

    AkiraTsubasa

    Amazing dude! It has been tested and it works perfectly good
    Thank you a lot! You saved me a lot of time <3
    @Mathias Eklund
     
  4. Online

    timtower Administrator Administrator Moderator

    @Mathias Eklund Please use dropbox, spigot, google drive or dev.bukkit.
    Bot doesn't really like mediafire.
     
    AkiraTsubasa likes this.
  5. Offline

    Mathias Eklund

    AkiraTsubasa and timtower like this.
  6. Online

    timtower Administrator Administrator Moderator

    It is, as long as it is not a paid plugin (those get redacted as well)
     
    AkiraTsubasa likes this.
  7. Offline

    AkiraTsubasa

    I updated the main post with the new link.
     
    timtower likes this.

Share This Page