Skip to content
This repository has been archived by the owner on Jun 8, 2022. It is now read-only.

Damage Entity

Michael Weatherby edited this page Aug 25, 2020 · 2 revisions

Damages an entity by a specific amount. Works on players!

# How much damage to add, to 1 decimal place (200 is 10 hearts).
scoreboard players set $entity.in_0 du_data <damage>

# Set to 1 to ignore armor.
scoreboard players set $entity.in_1 du_data <ignore armor>

function du:entity/damage_entity

Relevant Code Locations