Change: Set/Add/Remove/Remove All/Delete/Reset (Effect) — Skript

Addon: Skript · Category: Effect · Since: 1.0 (set, add, remove, delete), 2.0 (remove all)

Syntax

(add|give) %objects% to %~objects%

Description

A general effect that can be used for changing many <a href='./expressions'>expressions</a>. Some expressions can only be set and/or deleted, while others can also have things added to or removed from them.

Examples

set the player's display name to "<red>%name of player%"
set the block above the victim to lava
add 2 to the player's health # preferably use '<a href='#EffHealth'>heal</a>' for this
add argument to {blacklist::*}
give a diamond pickaxe of efficiency 5 to the player
increase the data value of the clicked block by 1
remove 2 pickaxes from the victim
subtract 2.5 from {points::%uuid of player%}
remove every iron tool from the player
remove all minecarts from {entitylist::*}
delete the block below the player
clear drops
delete {variable}
reset walk speed of player
reset chunk at the targeted block

View source