dealdamage (task type)

Since v2.2

Deal a certain amount of damage.

Options

Key Description Type Required Default Notes
amount The amount of damage needed. Integer Yes - Damage is measured in HP, 1 heart = 2 HP. A player has 20 HP by default, with no status effects applied.
allow-only-creatures Whether the entity must be a creature. Boolean No True -
worlds Worlds which should count towards the progress. List of world names No - -

Examples

Deal 100 HP of damage:

dealdamage:
  type: "dealdamage"
  amount: 100                           # amount of damage inflicted (HP)
  worlds:                               # (OPTIONAL) restrict to certain worlds
   - "world"

Back to top

This wiki serves as a manual for Quests however there is no guarantee that the information is up-to-date or complete. As per the license, this software provides absolutely no warranty, nor are the maintainers liable for any damages. Please see the license text for more information.