Tool/Weapon reach distance

Started by AlexTheDolphin0 on

Topic category: Advanced modding

Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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.

Joined Jul 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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

Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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.

Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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.

Joined Aug 2020
Points:

User statistics:

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

Did you get it to work without errors?

Joined Jun 2020
Points:

User statistics:

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

Nope, but still thanks.

Joined Jun 2020
Points:

User statistics:

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

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

Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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. 

Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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

Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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?

Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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

Joined Sep 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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