Zombify Villager (Effect) — Skript

Addon: Skript · Category: Effect · Since: 2.11

Syntax

zombify %livingentities%

Description

Turn a villager into a zombie villager. Cure a zombie villager immediately or after specified amount of time. This effect removes the old entity and creates a new entity. Zombifying a villager stored in a variable will update the variable to the new zombie villager. Curing a zombie villager does not update the variable.

Examples

zombify last spawned villager
set {_villager} to last spawned villager
zombify {_villager}
if {_villager} is a zombie villager:
	# This will pass because '{_villager}' gets changed to the new zombie villager
set {_villager} to last spawned villager
zombify last spawned villager
if {_villager} is a zombie villager:
	# This will fail because the variable was not provided when zombifying
unzombify {_zombieVillager}
unzombify {_zombieVillager} after 2 seconds

View source