The code above shows a title screen to the player.
Give the player an item (can be applied to mobs).
This function requires 3 arguements
Mob target - Who does this code affect
Item - Name of the item
Amount - How many of this item does the player recieve
Apply an effect to the player (can be applied to mobs as well)
This fuction takes 4 arguments
Effect name - Name of the effect to apply
Mob target - Who does this code affect
Duration - How long does the effect last
Level - The level of the effect
The code below clears the effect
Enchant an item - this will only work if the player has a compatiable item in their hand. The example show has you can click with a sword to add an enchanment to it.
This function has 3 arguments
Mob target - Who does this code affect
Effect name - Name of the enchanment (written in speach marks)
Level - The level of the enchanment
The values in the brackets are X,Y and Z.
The values are provided are the change in the players direction (this example move the player up by 10 blocks).
The values in the brackets are the X,Y and Z coordinate of the location in the world to teleport the player to.
Only change the final value if you want move towards or away from the location of the mouse cursor.
value1 - left/right
value2 - up/down
value3 - forward/backwards