ProfesseurCraft

Code d'exemple du plugin Skript (les effets)

Mar 12th, 2014
1,282
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1.  
  2. on break:
  3. if block is stone:
  4. cancel event
  5.  
  6. command /colour <colour>:
  7. trigger:
  8. player's helmet is leather armor:
  9. set {_colour} to colour argument
  10. dye the player's helmet {_colour}
  11.  
  12. on rightclick with water bucket:
  13. execute command "/toggledownfall"
  14.  
  15. on rightclick on sign:
  16. message "<red>Scan..."
  17. wait 20 ticks
  18. message "<yellow>Scan......"
  19. wait 20 ticks
  20. message "<green>Completed !"
  21. wait 20 ticks
  22. if line 1 contain "coucou":
  23. message "<cyan>La ligne 1 contient coucou"
  24. else:
  25. message "<red>La ligne 1 ne contient pas coucou"
  26.  
  27. on sneak toggle:
  28. #create a fake explosion
  29.  
  30. on leftclick with a golden axe:
  31. strike lightning at the targeted block
  32.  
  33. on place of TNT:
  34. log "%player% placed TNT in %world% at %location of block%" to "tnt/placement.log"
  35.  
  36. on rightclick with diamond boots:
  37. apply potion of speed of tier 30 to the player for 1 minute
  38.  
  39. on sign change:
  40. replace "&" with "§" in line 1
  41. replace "&" with "§" in line 2
  42. replace "&" with "§" in line 3
  43. replace "&" with "§" in line 4
  44.  
  45. on projectile hit:
  46. projectile is arrow:
  47. toggle the block at the arrow
Advertisement
Add Comment
Please, Sign In to add comment