Creating shops

By combining some icon attributes and actions you can create simple shops that sell and buy items from players.
A valid economy setup is required.

Sell items

To sell items to players, combine the PRICE attribute with the give: action.

Example (sells 1 diamond for 100 money):

example:
    PRICE: 100
    ACTIONS:
      - 'give: diamond, 1'

    NAME: 'Buy a diamond'
    MATERIAL: diamond
    POSITION-X: 1
    POSITION-Y: 1

Buy items

To buy items from players, combine the REQUIRED-ITEMS attribute with the give-money: action.

Example (buys 64 dirt for 10 money):

example:
    REQUIRED-ITEMS:
      - 'dirt, 64'
    ACTIONS:
      - 'give-money: 10'

    NAME: 'Sell dirt'
    MATERIAL: dirt
    POSITION-X: 1
    POSITION-Y: 1