🐟 Splish - Allows manipulation of the fishing loot table

Splish

Splish is a plugin that admins can use to modify the fishing loot table.

Configuration

The default generated config contains Minecraft’s default fishing table. Have a look at it to better understand the system.
The entries[] tag is a list of all entry tags.
Each entry tag has three components:

  1. The item{} tag. This is a standard item tag formatted how Mojang does it. See here for details. The id, Count, and Damage tags are required. Also, unlike in /give, everything else must be wrapped in tag{}.
  2. The chance{} tag. This is a compound containing four tags: unenchanted, lots1, lots2, and lots3. lots stands for Luck of the Sea, and each tag represents the number of levels of Luck of the Sea that the fishing rod is enchanted with. While the chances have been written so that they all add up to 1, this is not actually necessary. So if I had 3 elements, with chances 1, 1, and 3, the first two would have a 1/5 chance and the third would have a 3/5 chance.
  3. The extra{} tag. This tag is optional, and may contain one of a few extra modifiers.
  4. rand-enchant{} is a modifier that randomly enchants the item. If extended is true, it can apply enchantments that the item does not accept normally from an enchanting table. Unfortunately this cannot entirely mimic vanilla functionality; this is an API limitation, as the only random enchantment generator in Sponge does not accept an experience level argument.
  5. rand-damage{} is a modifier that randomly damages the item, from min to max. Note that this cannot do variances, such as wool colors; it is only applicable to tool durability. The number specified is how much damage is taken off the tool, not how much health it has left.

Commands

This plugin has no direct commands, but it supports /sponge plugins reload. When run, it will reload the configuration.

Source

Link

Downloads

1.0.0

Changelog

1.0.0: I’d tell you, but the computer that used to hold this information was recently fished out of the ocean.

3 Likes

Rip lmao… Waiting to see this plugin now.

Edit: Now that you have finished editing I will have to test this out later. :stuck_out_tongue: It seems like it would add a reason to fish in pixelmon: Fish for pokeballs!

[19:00:10] [Server thread/ERROR] [Sponge]: Could not pass FishingEvent$Stop$Impl to Plugin{id=splish, name=Splish, version=1.0.0, description=Allows manipulation of the fishing loot table., authors=[pie_flavor], source=/var/games/minecraft/servers/TDF_REBOOT/mods/Splish-1.0.0.jar}

Plugin is causing server to crash, and subequently causing clients to crash until we cleared the player NBT data.

Splish is designed for API 4.1, make sure you’re using an API 4 release. Meanwhile, it contains no custom DataManipulators, so I don’t see why clearing NBT data would affect it.

Ah, that’s probably the issue then, I’m using API5. Might be worth your time to add ‘API 4.1’ to the title…

As for the NBT, it might have just got corrupted by the crash to be honest…