Posted March 12, 201510 yr I want to be able to make the player move faster depending on if they are wearing the boots from my armor set with the correct NBTTags here is my code so far This is in onArmorTick if (itemStack.getItem() == MagicasItems.ironInfusedLeggings) { if (itemStack.stackTagCompound != null) { NBTTagCompound nbtTag = itemStack.stackTagCompound; if (nbtTag.hasKey("AirInfused") && nbtTag.getBoolean("AirInfused")) { player.setAIMoveSpeed(1F); } } }
March 14, 201510 yr Don't know if this will help, but this website allows command blocks to give items more movement speed when held. http://ezekielelin.com/give/ at the attribute section you select movement speed. Perhaps you could have a look under the hood in minecraft.
March 14, 201510 yr Movement speed is stored in PlayerCapabilites, get it with player.capabilities and modify what you need inside... Check out my mods: BTAM Armor sets Avoid Exploding Creepers Tools compressor Anti Id Conflict Key bindings overhaul Colourfull blocks Invisi Zones
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.