Posted May 31, 201510 yr I am changing the movement speed of my player and apparently doing player.getEntityAttribute(SharedMonsterAttributes.movementSpeed).setBaseValue(20); <- doesnt change anything the default value is 0.10000000149011612 as determined by player.getEntityAttribute(SharedMonsterAttributes.movementSpeed).getBaseValue(); when I outprint after I change the attribute to my value I get 20 but the player still moves at the same spd
May 31, 201510 yr Author also setting the attackDamage attribute seems to work also when you set it on the server. Why wouldnt the movement speed work?
May 31, 201510 yr Are you sure you are also setting it for client? HP and damage is hadled by server (in most cases), speed on the other hand is needed on client because it's client that makes moves. 1.7.10 is no longer supported by forge, you are on your own.
May 31, 201510 yr Author Ill send packets just to be sure, I am currently only setting it server side
May 31, 201510 yr Last time I played with step height, I remember being surprised that the value on the server was always zero - it is one of those few entity variables only ever used on the client, as Ernio suggested. http://i.imgur.com/NdrFdld.png[/img]
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.