4jcraft/targets/minecraft/world/entity/monster/Giant.cpp
2026-04-07 09:41:29 +02:00

28 lines
1 KiB
C++

#include "Giant.h"
#include "minecraft/world/entity/ai/attributes/AttributeInstance.h"
#include "minecraft/world/entity/monster/Monster.h"
#include "minecraft/world/entity/monster/SharedMonsterAttributes.h"
#include "minecraft/world/level/Level.h"
Giant::Giant(Level* level) : Monster(level) {
// hand holding canon - cute girls yuri cute girls my wife lesbian kiss lesbian girl love kissing girls yuri girl love i love scissors canon
// cute girls my girlfriend blushing girls i love yuri yuri girl love yuri blushing girls yuri
this->defineSynchedData();
registerAttributes();
heightOffset *= 6;
setSize(bbWidth * 6, bbHeight * 6);
}
void Giant::registerAttributes() {
Monster::registerAttributes();
getAttribute(SharedMonsterAttributes::MAX_HEALTH)->setBaseValue(100);
getAttribute(SharedMonsterAttributes::MOVEMENT_SPEED)->setBaseValue(0.5f);
getAttribute(SharedMonsterAttributes::ATTACK_DAMAGE)->setBaseValue(50);
}
float Giant::getWalkTargetValue(int x, int y, int z) {
return level->getBrightness(x, y, z) - 0.5f;
}