9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2025-12-31 04:46:37 +00:00

feat(entity): 初步实现快乐恶魂碰撞箱

This commit is contained in:
jhqwqmc
2025-06-17 01:18:18 +08:00
parent 829c4b24dd
commit c19696a8e1

View File

@@ -115,7 +115,7 @@ public class HappyGhastHitBox extends AbstractHitBox {
throw new UnsupportedOperationException("HappyGhastHitBox is only supported on 1.21.6+");
}
double scale = ResourceConfigUtils.getAsDouble(arguments.getOrDefault("scale", 1), "scale");
boolean hardCollision = (boolean) arguments.getOrDefault("hard-collision", false);
boolean hardCollision = (boolean) arguments.getOrDefault("hard-collision", true);
boolean canUseOn = (boolean) arguments.getOrDefault("can-use-item-on", false);
boolean canBeHitByProjectile = (boolean) arguments.getOrDefault("can-be-hit-by-projectile", false);
boolean blocksBuilding = (boolean) arguments.getOrDefault("blocks-building", false);