Created
January 29, 2018 00:39
-
-
Save jwulf/a548b403a068dcb63c27e99358766c43 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const magik = magikcraft.io; | |
| function zombie(target: string){ | |
| const EntityType = magik.type("entity.EntityType"); | |
| const aZombie = EntityType['ZOMBIE']; | |
| const where = magik.aspecto(); | |
| const world = where.getWorld(); | |
| const zombie = world.spawnEntity(where, aZombie); | |
| if (target) { | |
| zombie.setTarget(magik.getPlugin().getServer().getPlayer(target)); | |
| } | |
| magik.dixit("Behold!"); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment