Posted June 5, 20196 yr I can modify the player's maxHealth via the code below but, I can't heal over 20 health. What am I doing wrong? AttributeModifier setHP = new AttributeModifier(playerUUID, "myHealthModifier", addHP, 0).setSaved(true); player.getEntityAttribute(SharedMonsterAttributes.MAX_HEALTH).applyModifier(setHP);
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.