I just feel a little but stupid right now
I want more or less a command to to be able to set the players health. If the given value exceeds the default 20 it shall expand the max health in order to be able to hold the hp…
log("Giving "+source+" "+amount+"hp"); Player p = (Player) source; p.offer(Keys.MAX_HEALTH, amount>20.0?amount:20.0); p.offer(Keys.HEALTH, amount);
but I still have 10 hearts (à 2 hp) with amount 40.0.
Is it not possible to exceed 20hp anymore? I thought it was (in bukkit at least)
I’m coding with
> sponge version [20:28:26 INFO]: SpongeVanilla Minecraft: 1.12 SpongeAPI: 7.0.0-SNAPSHOT-339a5c70 SpongeVanilla: 1.12-7.0.0-BETA-306