Tool/Weapon reach distance

Started by AlexTheDolphin0 on

Topic category: Advanced modding

Active 3 years ago
Joined Jun 2020
Points:
736

User statistics:

  • Modifications: 0
  • Forum topics: 12
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 110
Tool/Weapon reach distance
Tue, 10/20/2020 - 18:59 (edited)

So, I noticed that all other topics about this don't get a legitimate response. Ima just put this out there

I want a legitimate response

So, there has to be a way to edit the reach distance w/ a weapon. I saw that it will be added in the combat update. THAT ALREADY CAME OUT! And I also noticed that forge has a "reach_distance" attribute.

Hoping that MCreator will add this in 2020.4?

Plz give me a response

Edited by AlexTheDolphin0 on Tue, 10/20/2020 - 18:59
Active 4 years ago
Joined May 2020
Points:
793

User statistics:

  • Modifications: 0
  • Forum topics: 19
  • Wiki pages: 1
  • MCreator plugins: 0
  • Comments: 107
Combat update never happened…
Tue, 08/04/2020 - 11:45

Combat update never happened, they just released snapshots. So there is no such a thing in Minecraft right now. And if it becomes a thing MCreator Devs probably adds it.

Active 2 years ago
Joined Jul 2017
Points:
818

User statistics:

  • Modifications: 2
  • Forum topics: 10
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 105
Sadly the reach in the…
Thu, 08/27/2020 - 02:59

Sadly the reach in the Combat Snapshots is not a modular system, it's hard codes by the developers much like rabbit spawn conditions and the new block hotboxes.

Also, Java functions present in 1.16 and the combat updates aren't accessible in MCreator due to it being based on 1.15.2 and forge functions

Active 3 years ago
Joined Aug 2020
Points:
713

User statistics:

  • Modifications: 1
  • Forum topics: 7
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 112
You might be able to use the…
Thu, 10/22/2020 - 10:41

You might be able to use the Look x/y/z position of (Event/target entity) with raytrace distance (100) block to make this happen. I used this block once to make a tool that increases your block-placing distance. I will try to adapt that code to work as a weapon and get back here.

Active 3 years ago
Joined Aug 2020
Points:
713

User statistics:

  • Modifications: 1
  • Forum topics: 7
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 112
I made a procedure that…
Thu, 10/22/2020 - 21:50

I made a procedure that should work in theory, but it creates a compiling error:

https://drive.google.com/file/d/1wItwU3p64H97zkTpzYTA0PX9nl829Vk6/view?usp=sharing

I can't quite pinpoint the exact problem, but I think it has something to do with putting the raytrace blocks in the blocks that find entities. This is the only way that I can think of doing this, so someone will have to fix the compiling error for it to work.

Active 3 years ago
Joined Jun 2020
Points:
736

User statistics:

  • Modifications: 0
  • Forum topics: 12
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 110
oh. okay
Fri, 10/30/2020 - 17:26

oh. okay

Active 3 years ago
Joined Jun 2020
Points:
736

User statistics:

  • Modifications: 0
  • Forum topics: 12
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 110
thanks!
Fri, 10/30/2020 - 17:26

thanks!

Active 3 years ago
Joined Aug 2020
Points:
713

User statistics:

  • Modifications: 1
  • Forum topics: 7
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 112
Did you get it to work…
Fri, 10/30/2020 - 21:36

Did you get it to work without errors?

Active 3 years ago
Joined Jun 2020
Points:
736

User statistics:

  • Modifications: 0
  • Forum topics: 12
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 110
Nope, but still thanks.
Sun, 11/01/2020 - 16:11

Nope, but still thanks.

Active 3 years ago
Joined Jun 2020
Points:
736

User statistics:

  • Modifications: 0
  • Forum topics: 12
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 110
Is there any way to change…
Sun, 11/01/2020 - 16:11

Is there any way to change an entity's attributes?

Active 3 years ago
Joined Aug 2020
Points:
713

User statistics:

  • Modifications: 1
  • Forum topics: 7
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 112
You can probably change…
Mon, 11/02/2020 - 12:10

You can probably change whatever attribute you want to change from the entity's mod element menu. 

Active 3 years ago
Joined Jun 2020
Points:
736

User statistics:

  • Modifications: 0
  • Forum topics: 12
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 110
but i want to make it so…
Tue, 11/03/2020 - 16:54

but i want to make it so that if you hold the item, it changes it and attributes aren't a thing in the coding blocks

Active 3 years ago
Joined Aug 2020
Points:
713

User statistics:

  • Modifications: 1
  • Forum topics: 7
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 112
Which attribute do you want…
Tue, 11/03/2020 - 19:42

Which attribute do you want to change specifically? And do you want to change something about the item or an entity?

Active 3 years ago
Joined Jun 2020
Points:
736

User statistics:

  • Modifications: 0
  • Forum topics: 12
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 110
I'm trying to make it so…
Tue, 11/03/2020 - 23:12

I'm trying to make it so that if an entity is holding my item, then it sets forge:reach_distance bonus of the entity to 5

Active 3 years ago
Joined Sep 2021
Points:
522

User statistics:

  • Modifications: 0
  • Forum topics: 0
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 4
idk if you are still needing…
Wed, 09/22/2021 - 05:11

idk if you are still needing this but I figured it out with just procedures, but they are pretty complicated procedures

This one needs to be on left click (the damage-1 at the bottom is optional, I just added that to make it do less damage the further it reaches):

https://imgur.com/a/gaIcasd

This one needs to be on its own and just on player tick update:

https://imgur.com/j2r9PzN