- 2,227 views, 1 today
302
Hello! Today I've made something a little bit advanced, but will improve the way you code commands forever!
Click here for the command!
Tutorial:
There are many different event sequences that you can use to customise your items! But first lets learn
how to create an event sequence!
Main Structure:
/give @p itemname 1 0 {triggerName:{event:eventName}}
This structure is given to all items and event sequences.
For example, we can create rocket boots by simply typing the following:
/give @p iron_boots 1 0 {playerEquipped{event:AllowFlight},Particle:flame}
The particle string is added at the end to make the item give off flame particles when worn.
Trigger Names:
onRightClick - will trigger an event when the player right clicks the item.
playerEquipped - will trigger an event when the player is wearing the item.
playerHolding - will trigger an event when the player is holding the item.
String Names:
Particle - will run particles when the player is holding or wearing the item.
Event Names:
AllowFlight - will allow flight.
killAll - will kill all entities apart from players.
killNearest - will kill the nearest entity.
listPlayers - will list all players currently online.
findEntityData - will send you a list of all entities currently in your world.
JumpHeight - will give the player jump boost.
Speed - will give the player speed.
Resistance - will give the player resistance.
onRightClick:
Usage: {onRightClick:{event:eventName}}
List of all possible events:
AllowFlight
killAll
killNearest
listPlayers
findEntityData
playerEquipped:
Usage: {playerEquipped:{event:eventName}}
List of all possible events:
AllowFlight
JumpHeight
Speed
Resistance
playerHolding:
Usage: {playerHolding:{event:eventName}}
List of all possible events:
AllowFlight
JumpHeight
Speed
Resistance
Particle:
Usage: {Particle:particleName}
List of all possible particle effects:
flame
happyVillager
angryVillager
drip
magic
Examples:
Rocket Boots - /give @p iron_boots 1 0 {display:{Name:"Rocket Boots"},playerEquipped:{event:AllowFlight},Particle:flame}
Jetpack - /give @p iron_chestplate 1 0 {display:{Name:"Jetpack"},playerEquipped:{event:AllowFlight},Particle:flame}
Wand of Death - /give @p blaze_rod 1 0 {display:{Name:"Wand of Death"},onRightClick:{event:killNearest}}
List Players - /give @p compass 1 0 {display:{Name:"List Players"},onRightClick:{event:listPlayers}}
Find Entity Data - /give @p book 1 0 {display:{Name:"Find Entity Data"},onRightClick:{event:findEntityDatat}}
Clear Lag - /give @p barrier 1 0 {display:{Name:"Clear Lag"},onRightClick:{event:killAll}}
Gun - /give @p iron_horse_armor 1 0 {display:{Name:"Gun"},onRightClick:{event:killNearest}}
Credits:
By Code202
Notes:
For 1.11.2
Click here for the command!
Tutorial:
There are many different event sequences that you can use to customise your items! But first lets learn
how to create an event sequence!
Main Structure:
/give @p itemname 1 0 {triggerName:{event:eventName}}
This structure is given to all items and event sequences.
For example, we can create rocket boots by simply typing the following:
/give @p iron_boots 1 0 {playerEquipped{event:AllowFlight},Particle:flame}
The particle string is added at the end to make the item give off flame particles when worn.
Trigger Names:
onRightClick - will trigger an event when the player right clicks the item.
playerEquipped - will trigger an event when the player is wearing the item.
playerHolding - will trigger an event when the player is holding the item.
String Names:
Particle - will run particles when the player is holding or wearing the item.
Event Names:
AllowFlight - will allow flight.
killAll - will kill all entities apart from players.
killNearest - will kill the nearest entity.
listPlayers - will list all players currently online.
findEntityData - will send you a list of all entities currently in your world.
JumpHeight - will give the player jump boost.
Speed - will give the player speed.
Resistance - will give the player resistance.
onRightClick:
Usage: {onRightClick:{event:eventName}}
List of all possible events:
AllowFlight
killAll
killNearest
listPlayers
findEntityData
playerEquipped:
Usage: {playerEquipped:{event:eventName}}
List of all possible events:
AllowFlight
JumpHeight
Speed
Resistance
playerHolding:
Usage: {playerHolding:{event:eventName}}
List of all possible events:
AllowFlight
JumpHeight
Speed
Resistance
Particle:
Usage: {Particle:particleName}
List of all possible particle effects:
flame
happyVillager
angryVillager
drip
magic
Examples:
Rocket Boots - /give @p iron_boots 1 0 {display:{Name:"Rocket Boots"},playerEquipped:{event:AllowFlight},Particle:flame}
Jetpack - /give @p iron_chestplate 1 0 {display:{Name:"Jetpack"},playerEquipped:{event:AllowFlight},Particle:flame}
Wand of Death - /give @p blaze_rod 1 0 {display:{Name:"Wand of Death"},onRightClick:{event:killNearest}}
List Players - /give @p compass 1 0 {display:{Name:"List Players"},onRightClick:{event:listPlayers}}
Find Entity Data - /give @p book 1 0 {display:{Name:"Find Entity Data"},onRightClick:{event:findEntityDatat}}
Clear Lag - /give @p barrier 1 0 {display:{Name:"Clear Lag"},onRightClick:{event:killAll}}
Gun - /give @p iron_horse_armor 1 0 {display:{Name:"Gun"},onRightClick:{event:killNearest}}
Credits:
By Code202
Notes:
For 1.11.2
Progress | 100% complete |
Tags |
1 Update Logs
Used the Wrong Link : by Code202 06/05/2017 8:31:13 amJun 5th, 2017
Used the wrong link, so sorry!
3940371
2
Create an account or sign in to comment.
this is what i get:
gyazo.com/8c5bf4ac992e9d895c11619d6192b77f