ProfesseurCraft

OnlyBark

May 4th, 2015
401
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. #================================================================================
  2. # Active ou désactive les bûches avec écorces seulement
  3. #================================================================================
  4. on place :
  5.  
  6. if {onlybark.%player's uuid%} is true:
  7. if block is oak wood:
  8. set data of block to 12
  9. if block is spruce wood:
  10. set data of block to 13
  11. if block is birch wood:
  12. set data of block to 14
  13. if block is jungle wood:
  14. set data of block to 15
  15. if block is acacia wood:
  16. set data of block to 12
  17. if block is dark oak wood:
  18. set data of block to 13
  19.  
  20. command /onlybark:
  21. trigger:
  22. if {onlybark.%player's uuid%} isn't set:
  23. set {onlybark.%player's uuid%} to true
  24. message "&eEcorce sur toutes les faces &2activé !"
  25. else if {onlybark.%player's uuid%} is true:
  26. set {onlybark.%player's uuid%} to false
  27. message "&eEcorce sur toutes les faces &ddésactivé !"
  28. else:
  29. set {onlybark.%player's uuid%} to true
  30. message "&eEcorce sur toutes les faces &2activé !"
Advertisement
Add Comment
Please, Sign In to add comment