jamesc554544 Posted March 12, 2015 Posted March 12, 2015 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); } } } Quote
whitephoenix Posted March 14, 2015 Posted March 14, 2015 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. Quote
Elix_x Posted March 14, 2015 Posted March 14, 2015 Movement speed is stored in PlayerCapabilites, get it with player.capabilities and modify what you need inside... Quote Check out my mods: BTAM Armor sets Avoid Exploding Creepers Tools compressor Anti Id Conflict Key bindings overhaul Colourfull blocks Invisi Zones
Recommended Posts
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.