How do i increase the players effective range?

Started by BaguetteDoesnt… on

Topic category: Help with Minecraft modding (Java Edition)

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do i increase the players effective range?
Tue, 10/19/2021 - 00:34 (edited)

ive been doing my first mod for a while now, and i wanted to make a wand that casts a lightning bolt in the block youre looking at, it works but the range is too short, it ends hurting you too and thats a very bad problem. how do i make it so the effective range of the wand goes further on? do i have to use a raycast of some kind?

Edited by BaguetteDoesntKnowCoding on Tue, 10/19/2021 - 00:34
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
with the procedure blocks…
Tue, 10/19/2021 - 00:48

with the procedure blocks called Is Event/Target entity looking at a block with raytrace distance 5 fluid mode NONE block mode OUTLINE

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
thanks, ill try to see if i…
Tue, 10/19/2021 - 00:50

thanks, ill try to see if i can pull it out with that

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i tried using the raytrace…
Tue, 10/19/2021 - 01:07

i tried using the raytrace but all it did is tell if there was a block there, the lightining will only spawn if theres a block within 64 blocks (custom distance) of the player, but i cant get the lightning to spawn at where the raytrace pointed at

sorry for my total inavility to do this, if you havent noticed yet i have "doesnt know coding" in the name