Skip to content

Commit

Permalink
Added a more complex example slot
Browse files Browse the repository at this point in the history
  • Loading branch information
virustotalop committed Sep 7, 2018
1 parent 1e9061a commit bb3045c
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions docs/slot/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,23 @@ Slots
=====

Slots have a number of components that can be assigned to them.
Below is an example of a basic slot.
Below is an example of a basic slot.


.. code-block:: yaml
'0': #Index to be placed at, starting at 0
amount: 1 #Amount of item to place in the slot, if you just need one of the item this is optional
icon: "DIRT" #Icon for the slot
Test
More complex example of a slot.

.. code-block:: yaml
'0': #Index to be placed at, starting at 0
icon: "DIRT" #Icon for the slot
name: "&cDirt but red" #Name supports color codes
lore: #Lore for the item
- "&cThere is dirt in this slot"
functions: #Functions to run on click
- "broadcast: &fThis is a simple test"

0 comments on commit bb3045c

Please sign in to comment.