Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #==========================================
- # Loop blocks
- #==========================================
- command /blocksInfos:
- trigger:
- loop blocks in radius 5 around the player:
- message "<yellow>%type of loop-block%"
- command /setBlocks:
- trigger:
- loop blocks in radius 2 around the player:
- set loop-block to stone
- #==========================================
- # Loop entities
- #==========================================
- command /entitiesInfos:
- trigger:
- loop entities in radius 5 around the player:
- message "<yellow>%type of loop-entity%"
- command /killEntities:
- trigger:
- loop entities in radius 5 around the player:
- kill loop-entity
- #==========================================
- # Loop players
- #==========================================
- command /playersInfos:
- trigger:
- loop players:
- message "<yellow>%name of loop-player%"
- command /giveItemToPlayer:
- trigger:
- loop players:
- give a diamond to loop-player
- #==========================================
- # Loop list
- #==========================================
- command /addValueToTheList <number>:
- trigger:
- add number-argument to {list::*}
- message "&eLe nombre &f%number-argument% &ea bien été ajoutée !"
- command /readValuesFromTheList:
- trigger:
- loop {list::*}:
- message "&eIndex : &f%loop-index% - &eValue : &f%loop-value%"
- command /readValueByIndex <int>:
- trigger:
- if {list::%int-argument%} exists:
- message "&eValeur de l'index %int-argument% : &f%{list::%int-argument%}%"
- else:
- message "&eL'index &f%int-argument% &en'existe pas dans la liste"
- command /clearList:
- trigger:
- clear {list::*}
- message "<yellow>La liste à bien été vidée"
- #==========================================
- # While
- #==========================================
- command /repeat <int>:
- trigger:
- set {_i} to 0
- while {_i} is smaller than int-argument:
- message "<yellow>Je ne dois pas faire de bêtise :D"
- set {_i} to {_i}+1
Advertisement
Add Comment
Please, Sign In to add comment