Home Getting Started With Scripts Using this wiki Commands CTGUI Global functions Bracket Handlers

Class

script.zs
import mods.roots.Pacifist;

Methods

script.zs
void addEntity(
IEntityDefinition entity // the entity to add to the pacifist list
);

Allows the addition of new entities to the list of ‘Pacifist’ creatures, i.e., those that, when killed, will grant the Untrue Pacifist advancement.


script.zs
void removeEntity(
IEntityDefinition entity // the entity to remove from the pacifist list
);

Removes an entity from the list of ‘Pacifist Creatures’, i.e., those that, when killed, will grant the Untrue Pacfist advancement.


Examples

script.zs
import mods.roots.Pacifist;
// Adds an enderman as a pacifist creature
Pacifist.addEntity(<entity:minecraft:enderman>);
// Prevents cows from triggering the pacifism effect
Pacifist.removeEntity(<entity:minecraft:cow>);