Fishing Rod Enchantments

Started by Cold Ham Coollum on Wed, 12/02/2020 - 04:33

Topic category: Help with modding (Java Edition)

Last seen on 17:20, 6. Dec 2020
Joined Dec 2020

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Fishing Rod Enchantments
Wed, 12/02/2020 - 04:33

I want to create an enchantment for the fishing rod that focuses on the possible PVP aspects. Essentially, the enchantment is called Hook Thief, and will have two levels. When a player is hit with the fishing rod bobber, upon reeling in, I want there to be a 5%/10% for that player to have the item forcefully dropped onto the ground, and an additional 1%/2% for the item to be removed from their inventory and placed in the user's inventory. I have the general skeleton down, however there doesn't appear to be many options for the fishing rod except for the event of when you fish something. Any ideas or pushes in the right direction? Here is what I've got thus far:

My Code
Empty spaces are for the player hooked