Posted April 25, 20178 yr I'm trying to create a potion effect with the resistance knockback attribute but not find the UUID anywhere. Minecraft Attributes page is missing. http://minecraft.gamepedia.com/Attribute Can someone tell me what I can do? public static final CustomPotion KnockbackPotion = (CustomPotion) new CustomPotion(new ResourceLocation(EnergyTools.MODID + ":Knockback"), false, 8171462).setPotionName(EnergyTools.MODID + "potion.KnockbackPotion").registerPotionAttributeModifier(SharedMonsterAttributes.KNOCKBACK_RESISTANCE, "UUID?", 5D, 2);
April 26, 20178 yr There is no existing UUID for a Knockback Resistance potion's AttributeModifier because there is no existing Knockback Resistance potion. Just generate a new UUID once and use that. Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.
April 26, 20178 yr Author 8 hours ago, Choonster said: There is no existing UUID for a Knockback Resistance potion's AttributeModifier because there is no existing Knockback Resistance potion. Just generate a new UUID once and use that. How can I generate a new UUID?
April 26, 20178 yr 3 minutes ago, MorelPlay said: How can I generate a new UUID? UUID.randomUUID Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.
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.