Jump to content

AnaRchX

Members
  • Posts

    1
  • Joined

  • Last visited

AnaRchX's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Hello, I am using forge version 36.1.0 for MC 1.16.5 and after experimenting a bit with the code below, it seems that when I change the base value of the Players attribute Movement_Speed directly in my eclipse environment the camera FOV does not change at all but after building the mod and testing it with the same forge version with no other mods installed the FOV is behaving like any moving impairing effect does. private void onEntityTick (TickEvent.PlayerTickEvent event) { PlayerEntity ent = (PlayerEntity) event.player; ModifiableAttributeInstance attribute = ent.getAttribute(Attributes.MOVEMENT_SPEED); attribute.setBaseValue(0.1D); } //This code is taken in part of a larger code block from my mod Could this be a problem with how my eclipse is set up? Should I use a different method of handling the players speed? Is there a way to disable the fov change when there is a change in movement speed? I looked into the net.minecraftforge.client.event.FOVUpdateEvent but it does not seem to be a cancelable event. Is overriding it an option I should consider? Many many thanks to the Forge team for their work over the years! Thank you for taking the time to read this.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.