feat: tu43 entity sounds, spawner fixes, and a 16x16 region toolset

This commit is contained in:
Fireblade
2026-07-23 19:47:55 -04:00
parent 1488469cb2
commit a045d994fb
135 changed files with 416 additions and 20 deletions
+5 -3
View File
@@ -12,6 +12,7 @@
#include "net.minecraft.world.level.h"
#include "net.minecraft.world.phys.h"
#include "Witch.h"
#include "SoundTypes.h"
AttributeModifier *Witch::SPEED_MODIFIER_DRINKING = (new AttributeModifier(eModifierId_MOB_WITCH_DRINKSPEED, -0.25f, AttributeModifier::OPERATION_ADDITION))->setSerialize(false);
@@ -48,17 +49,17 @@ void Witch::defineSynchedData()
int Witch::getAmbientSound()
{
return eSoundType_MOB_WITCH_IDLE; //"mob.witch.idle";
return eSoundType_ENTITY_WITCH_AMBIENT;
}
int Witch::getHurtSound()
{
return eSoundType_MOB_WITCH_HURT; //"mob.witch.hurt";
return eSoundType_ENTITY_WITCH_HURT;
}
int Witch::getDeathSound()
{
return eSoundType_MOB_WITCH_DEATH; //"mob.witch.death";
return eSoundType_ENTITY_WITCH_DEATH;
}
void Witch::setUsingItem(bool isUsing)
@@ -211,6 +212,7 @@ void Witch::performRangedAttack(shared_ptr<LivingEntity> target, float power)
}
potion->shoot(xd, yd + dist * 0.2f, zd, 0.75f, 8);
playSound(eSoundType_ENTITY_WITCH_THROW, 1.0f, 1.0f);
level->addEntity(potion);
}