Skip to content
This repository has been archived by the owner on Sep 23, 2019. It is now read-only.
Florian Metz edited this page Aug 7, 2018 · 1 revision

Item Class

Used to create items for code blocks.

Syntax

plot.Item(blockname);

Sample Code

player.giveItem(plot.Item("wool").setDamage(14).setAmount(32).setTag({ display: { Name: "&cRed Wool" } }));

Methods

.setAmount(Number amount)

Sets the item's count.

.setTag(Object tag)

Sets the item's tag.

.setDamage(Number damage)

Sets the item's damage.

Clone this wiki locally