On Anvil Prepare (Event) — Skript
Addon: Skript · Category: Event · Since: 2.7
Syntax
[on] anvil prepar(e|ing)Description
Called when an item is put in a slot for repair by an anvil. Please note that this event is called multiple times in a single item slot move.
Event Values
- event-inventory
- event-itemstack
Examples
on anvil prepare:
event-item is set # result item
chance of 5%:
set repair cost to repair cost * 50%
send "You're LUCKY! You got 50% discount." to player