Spawn xombie

  • 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 comminuty!

    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.

taurus

Member
Jun 14, 2019
2
0
0
46
I need a skeleton to appear, when a zombie appears. But only in a world called "zombie" and only when the player is in it.
Problems:
1-does not recognize the condition: player is in "zombie"
2-Skeletons appear in all worlds.


Code:
on spawn of an zombie:
    player is in "zombie"
    spawn 1 skeleton
    make the last spawned skeleton wear all diamond armour
    set the name of the spawned skeleton to "Huesitos"



thanks

plugins:
essentialsx, authme, plotsquared,luckperms, multiverse core

Multiverse core

zombie:
==: MVWorld
hidden: 'false'
alias: lobby
color: WHITE
style: NORMAL
pvp: 'true'
scale: '1.0'
respawnWorld: ''
allowWeather: 'true'
difficulty: EASY
 
Last edited:
Is "zombie" the world name? If so, try
Code:
player is in world "zombie"

try this, reload the script without errors.
But when I'm in that world, it does not perform skeleton spawn, it ignores the script.

It is a world created with multiverse core
[doublepost=1561041851,1561041802][/doublepost]
Ask yourself this question, which player are you referring to?

There's no player in an entity spawn event.

the intention is that any player that is in that world, enable the script.
If there is a player in that world: when a zombie is spawn, also spawn a skeleton

Should I modify something?
thanks
 
Status
Not open for further replies.