#(yukiyahana) Is it possible to modify the damage effect without altering the damage cause?

11 messages · Page 1 of 1 (latest)

hybrid lantern
#

I know the hurt command can cause damage, but it doesn't seem to be able to modify the characteristics of the damage.
For example, I want 10 points of damage with the cause as ENTITY_ATTACK, ignoring enchantments, armor, and effects, and without causing knockback. Is this possible?

thick salmonBOT
#

(yukiyahana) Is it possible to modify the damage effect without altering the damage cause?

thick salmonBOT
#

Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.

young jetty
#

!c health

limber tangleBOT
# young jetty !c health
Group

entity

Syntax

health ({npc}/<entity>|...) [<#>] (state:{true}/false/toggle) (heal)

Short Description

Changes the target's maximum health.

Description

Use this command to modify an entity's maximum health.

If the target is an NPC, you can use the 'state' argument to enable, disable, or toggle the Health trait
(which is used to track the NPC's health, and handle actions such as 'on death').
The Health trait will be enabled by default.

By default, this command will target the linked NPC but can be set to target any other living entity, such as a player or mob.

Optionally specify the 'heal' argument to automatically heal the entity to the new ...

young jetty
#

Might this help? It just sets the health if you link a player to it

hybrid lantern
young jetty
#

Like hurting the player with the hurt animation but getting all the damage through? Guess you can just levae out the cause

hybrid lantern
#

anyway, thank you for your help!