Consumed Item (Expression) — Skript

Addon: Skript · Category: Expression · Since: 2.11

Syntax

[the] consumed item

Description

Represents the item consumed within an entity shoot bow and item consume event.

Examples

on player or skeleton shoot projectile:
	if the consumed item is an arrow:
		cancel event
		send "You're now allowed to shoot your arrows." to shooter
on player consume:
	if the consumed item is cooked porkchop:
		send "Well aren't you just a little piggy wiggly!" to player
	if player has scoreboard tag "vegetarian":
		set the consumed item to a carrot

View source