No Fall damage on EntropyBlock

This commit is contained in:
Vos
2025-11-16 20:44:11 -06:00
parent fd5cb85e47
commit e6861f9ba6
2 changed files with 11 additions and 0 deletions
@@ -59,6 +59,7 @@ Weapons
- Thot Begon - Thot Begon
- Ahab's Harpoon - Ahab's Harpoon
- Soul Crusher (Removes Eternal Armor) - Soul Crusher (Removes Eternal Armor)
- Combustable Lemon
Blocks Blocks
X Deep Slate Entropy Ore X Deep Slate Entropy Ore
@@ -74,6 +74,16 @@ public class EntropyBlock extends Block {
return stack.isIn(ModTags.Items.ENTROPY_CONVERTABLE); return stack.isIn(ModTags.Items.ENTROPY_CONVERTABLE);
} }
@Override
public void onLandedUpon(World world, BlockState state, BlockPos pos, Entity entity, float fallDistance) {
// Never take fall damage
if (entity.bypassesLandingEffects()) {
super.onLandedUpon(world, state, pos, entity, 0);
} else {
entity.handleFallDamage(fallDistance, 0.0F, world.getDamageSources().fall());
}
}
@Override @Override
public void appendTooltip(ItemStack stack, Item.TooltipContext context, List<Text> tooltip, TooltipType options) { public void appendTooltip(ItemStack stack, Item.TooltipContext context, List<Text> tooltip, TooltipType options) {
tooltip.add(Text.translatable("tooltip.acesbs.entropy_block.tooltip")); tooltip.add(Text.translatable("tooltip.acesbs.entropy_block.tooltip"));