Started by
AlexTheDolphin0
on
Topic category: Advanced modding
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
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.
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
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.
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.
oh. okay
thanks!
Did you get it to work without errors?
Nope, but still thanks.
Is there any way to change an entity's attributes?
You can probably change whatever attribute you want to change from the entity's mod element menu.
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
Which attribute do you want to change specifically? And do you want to change something about the item or an entity?
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
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