Posted January 5, 20214 yr How can I lower or increase the reach distance attribute with specific items?
January 5, 20214 yr Author Just now, diesieben07 said: Add an attribute modifier for ForgeMod.REACH_DISTANCE. Could you give an example?
January 5, 20214 yr Author builder.put(Attributes.ATTACK_DAMAGE, new AttributeModifier(ATTACK_DAMAGE_MODIFIER, "Weapon modifier", (double)this.attackDamage, AttributeModifier.Operation.ADDITION)); So what do I change?
January 6, 20214 yr Author 1 hour ago, diesieben07 said: You can look at SwordItem to see how to make an item have an attribute modifier. I don't really know what to change.
January 6, 20214 yr Author builder.put(ForgeMod.REACH_DISTANCE.get(), new AttributeModifier(ATTACK_REACH_MODIFIER,"Weapon modifier", attackReachIn, AttributeModifier.Operation.ADDITION)); protected static final UUID ATTACK_REACH_MODIFIER = UUID.fromString("FA233E1C-4180-4865-B01B-BCCE9785ACA3"); So this
January 6, 20214 yr Author Just now, diesieben07 said: Except you need to actually make your own UUID. How do that?
January 6, 20214 yr Author It shows failed to load_registries event phase. Edited January 6, 20214 yr by MrBelieve
January 6, 20214 yr Author 5 minutes ago, diesieben07 said: store its RegistyObject and call get as needed How?
January 7, 20214 yr Author Just now, diesieben07 said: I don't know how I can make that more clear. Do not call get in your item constructor. Oh ok. Sorry I'm not good at this.
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.