I need help making a custom mob for my server, but it wont spawn when I try and set the time. Can anybody help?
At 3am:
send "&4&lThe blood moon has risen." to all players
play sound "entity.wolf.howl" to all players
loop all players:
chance of 90%:
Set {_N} to random number between 3 and 6
Loop {_N} Times:
Summon stray at loop-player's location
Set {_S} to last spawned entity
Make {_S} invulnerable
Set name of {_S} to "&7Shrieker"
Set tool of {_S} to Netherite Sword or Netherite Axe or Diamond Sword or Diamond Axe or Air
At 6am:
Loop all entities:
loop-entity is Stray
name of loop-entity is "&7Shrieker"
Play 30 cloud at loop-entity
Kill Loop-Entity
At 3am:
send "&4&lThe blood moon has risen." to all players
play sound "entity.wolf.howl" to all players
loop all players:
chance of 90%:
Set {_N} to random number between 3 and 6
Loop {_N} Times:
Summon stray at loop-player's location
Set {_S} to last spawned entity
Make {_S} invulnerable
Set name of {_S} to "&7Shrieker"
Set tool of {_S} to Netherite Sword or Netherite Axe or Diamond Sword or Diamond Axe or Air
At 6am:
Loop all entities:
loop-entity is Stray
name of loop-entity is "&7Shrieker"
Play 30 cloud at loop-entity
Kill Loop-Entity