Posted August 4, 201411 yr Hey guys, I was wondering how can I change the mob attribute, such as health or speed, after it has already been defined? I tried setBaseValue(), but it can only be call once, so i can't change any value by using this method. this.getEntityAttribute(SharedMonsterAttributes.maxHealth).setBaseValue(whatever); I tried setAttribute() as well, but it didn't work: "The method setAttribute(double) is undefined for the type IAttributeInstance". this.getEntityAttribute(SharedMonsterAttributes.maxHealth).setAttribute(whatever);
August 5, 201411 yr Hey guys, I was wondering how can I change the mob attribute, such as health or speed, after it has already been defined? I tried setBaseValue(), but it can only be call once, so i can't change any value by using this method. Why do you think it can only be called once? Check out my tutorials here: http://jabelarminecraft.blogspot.com/
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.