config

Default

The default configuration file is this:

items:
  test:
    r1: "   "
    r2: " 1 "
    r3: "   "
    defaults:
    - 1
    onrightclick:
    - 'cmd /say The item has been right clicked!!!!'
    - 'cmd /tell <player> Hello....'
    onleftclick:
    - 'cmd /say The item has been left clicked!!!!'
    - 'cmd /tell <player> Hello....'
    - 'setblock <x> <y> <z> 57'

Items

To make a new item, simply add a category to items, like this. It should be named for your item's name:

items:
  itemname:
    onrightclick:
    - 'Line of script code here'
    - 'This will execute when the item is right clicked'
    onleftclick:
    - 'Line of script code here'
    - 'This will execute when the item is left clicked'

Than execute the makeitem command. Find more information on the commands page.

More to come! Later I will explain about the r1, r2, r3, and defaults segments. Right now, they do nothing.

Blocks

To make a new block, simply add a category to blocks like this:

blocks:
  blocknamehere:
    onplace:
    - 'Here goes the script that will execute when the block is placed'
    onbreak:
    - 'Here goes the script that will execute when the block is broken'

Than execute the makeblock command. Find more information on the commands page.

Newest Release

In the newest Pre Release, you should be able to use a new feature in blocks, like this:

blocks:
  blocknamehere:
    onplayertouch:
    - 'say <player>! What are you doing, touching this block!'

It may or may not work, but it works in theory.


Comments

Posts Quoted:
Reply
Clear All Quotes