superrtutur

Untitled

Jun 29th, 2019
268
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.14 KB | None | 0 0
  1. options:
  2. prefix: &7[&aVanozia&7]
  3. diam: 5
  4. iron: 10
  5. gold: 10
  6. emerald: 5
  7. coal: 15
  8. stone: 35
  9. obsidian: 10
  10. end: 5
  11. nether: 5
  12.  
  13.  
  14.  
  15.  
  16.  
  17. command /setgenerateur:
  18.  
  19. trigger:
  20. if targeted block is end stone:
  21. set {tarte} to location of targeted block
  22. set {statu} to false
  23. loop {det::*}:
  24. if loop-value is "%{tarte}%":
  25. set {statu} to true
  26. if {statu} is true:
  27. send "{@prefix} &cCe Générateur de Minerai existe dêja !"
  28. else:
  29. send "{@prefix} &2Générateur de Minerai ajoutez avec succès !"
  30. add "%{tarte}%" to {det::*}
  31. set {tarte.%{tarte}%} to true
  32. else:
  33. send "{@prefix} &cTu doit regarder de l'end stone !"
  34.  
  35. command /removegenerateur:
  36. trigger:
  37. set {tarte} to location of targeted block
  38. set {statu} to false
  39. loop {det::*}:
  40. if loop-value is "%{tarte}%":
  41. set {statu} to true
  42. if {statu} is false:
  43. send "{@prefix} &cCe Générateur de Minerai n'existe dêja !"
  44. else:
  45. send "{@prefix} &2Générateur de Minerai supprimée avec succès !"
  46. remove "%{tarte}%" from {det::*}
  47. delete {tarte.%{tarte}%}
  48.  
  49. on break:
  50. if {tarte.%location of block%} is set:
  51. set {tarte} to location of block
  52. wait 1 tick
  53. chance of {@diam}%:
  54. set block at {tarte} to diamond ore
  55. chance of {@gold}%:
  56. set block at {tarte} to gold ore
  57. chance of {@stone}%:
  58. set block at {tarte} to stone
  59. chance of {@emerald}%:
  60. set block at {tarte} to emerald ore
  61. chance of {@obsidian}%:
  62. set block at {tarte} to obsidian
  63. chance of {@coal}%:
  64. set block at {tarte} to coal ore
  65. chance of {@iron}%:
  66. set block at {tarte} to iron ore
  67. chance of {@end}%:
  68. set block at {tarte} to end stone
  69. chance of {@nether}%:
  70. set block at {tarte} to netherrack
  71. else if block at {tarte} is air:
  72. set block at {tarte} to stone
Advertisement
Add Comment
Please, Sign In to add comment