the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at main 16 lines 530 B view raw
1#include "stdafx.h" 2#include "net.minecraft.world.entity.h" 3#include "HealthBoostMobEffect.h" 4 5HealthBoostMobEffect::HealthBoostMobEffect(int id, bool isHarmful, eMinecraftColour color) : MobEffect(id, isHarmful, color) 6{ 7} 8 9void HealthBoostMobEffect::removeAttributeModifiers(shared_ptr<LivingEntity> entity, BaseAttributeMap *attributes, int amplifier) 10{ 11 MobEffect::removeAttributeModifiers(entity, attributes, amplifier); 12 if (entity->getHealth() > entity->getMaxHealth()) 13 { 14 entity->setHealth(entity->getMaxHealth()); 15 } 16}