Solved I need help with last spawned zombie health

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Mich7272

Member
Apr 12, 2019
49
0
0
Sorry If I dont follow the correct help format but I dint find the format.

skript version: skript 2.4 alpha release
spigot version: 1.14.1
Mc version: 1.14.1
console error: None
Code:
command /testspawn:
    trigger:
        spawn a zombie
        equip the last spawned zombie with diamond helmet
        apply swiftness 2 to the last spawned zombie for 9 days
        set the last spawned entity's max health to 250
the Expression I use is this one: http://en.njol.ch/projects/skript/doc/expressions#ExprMaxHealth
 
what exactly is not working?

after you set their max health, you also have to set their health
 
code_language.skript:
set last spawned zombie's max health to 250
set last spawned zombie's health to 250
 
Status
Not open for further replies.