How do i increase the players effective range?

Started by BaguetteDoesnt… on

Topic category: Help with modding (Java Edition)

Last seen on 00:23, 27. May 2022
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
Last seen on 04:28, 26. Jan 2024
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

Last seen on 00:23, 27. May 2022
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

Last seen on 00:23, 27. May 2022
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