Fishing in lava (New)

Started by Semoha on

Topic category: Help with modding (Java Edition)

Last seen on 15:07, 19. Apr 2024
Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Fishing in lava (New)

Hello everyone, I'm new to MCreator. Now I'm creating my own mod, which is related to fishing in lava. Having looked through the forum, I did not find this information that would be relevant for new versions of the program. Who knows how to implement this function now? And also, is it possible that the fish in hell and on the surface were completely different? Thank you for your reply!

Last seen on 02:56, 28. Apr 2024
Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Custom fishing rods can be…
Wed, 04/17/2024 - 13:00

Custom fishing rods can be sort of tricky, but absolutely doable if you approach tasks in the right order. I would recommend the following:

  • Create a small bobber entity in your model creator (if you're brand new and don't know where to start, I'd recommend looking into Blockbench, it's free and there are many resources available to learn it). It doesn't require any sophisticated animations, so making it as a basic modded entity should suffice.
  • This entity should have an AI but no movement/combat/navigation tasks, just a behavior to float in liquids and be immune to fire and lava.
  • Create a loot table for everything that can be fished out of the lava.
  • Create a procedure for your bobbing entity that, on every tick while it is exerting the floating behavior, it has a chance to poll the above loot table.
  • Create a tool object representing your new fishing rod, I don't know without trying to make it whether this tool should be off the fishing rod or multi-tool type, try both and see what works better.
  • Create a condition such that, when the player right clicks with the fishing rod, it spawns the bobbing entity with some amount of tangential velocity + gravity to resemble throwing the line out. I have no idea how to attach a fishing line from the end of the rod to the entity, that's an exercise for the reader I suppose.
  • Using another procedure for player tick updates and possibly another helper function tied to a right-click key bind, have it so that loot from the bobbing procedure are stored locally as item stacks. When the player right clicks again, the bobbing entity is despawned and the stored item stacks are added to player inventory.

This is a very off-the-top-of-my-head response so it might not all be accurate, but I hope it gives you a good place to start!

Last seen on 15:07, 19. Apr 2024
Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thank you very much. I hope…
Wed, 04/17/2024 - 15:30

Thank you very much. I hope this information will help not only me!