How do I increase the range on a tool?

Started by Dochan on

Topic category: Help with MCreator software

Joined Nov 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I increase the range on a tool?

So after recently having to start over my mod I came up with the idea of a spear. I want the spear to have a 7-8 block reach compared to the sword's 5-6 block reach. Im not entirely sure how to do this. I looked at the code as well and couldn't find anything that said "range of tool" or anything like that. Please help

Joined Nov 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
So that's pretty easy…
Wed, 11/27/2024 - 16:36

So that's pretty easy. Download this plugin: https://mcreator.net/plugin/106411/pehkui and activate it in the workspace setting. After that you make a procedure and set the trigger to "On Player Tick Update". Next you check if the player is holding the item, take the pehkui plugin and use "Set .... of event/target entity" to 1". For every extra block add 0.18 to the 1. You need a elso too, to reset the reach. In the else block set it to 1 again.