burgtor.txt 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. %loadEvent block-click;
  2. %setVar closed true;
  3. @wait
  4. %wait;
  5. %if $block-loc == rpg:-52:68:-54 goto close;
  6. %if $block-loc == rpg:-57:68:-54 goto open;
  7. %goto wait;
  8. @close
  9. %if $closed == true goto wait;
  10. %setVar closed true;
  11. %setBlock rpg:-56:69:-56 IRON_FENCE;
  12. %setBlock rpg:-55:69:-56 IRON_FENCE;
  13. %setBlock rpg:-54:69:-56 IRON_FENCE;
  14. %setBlock rpg:-53:69:-56 IRON_FENCE;
  15. %playSound rpg:-55:68:-56 BLOCK_ANVIL_LAND;
  16. %waitfor 10;
  17. %setBlock rpg:-56:68:-56 IRON_FENCE;
  18. %setBlock rpg:-55:68:-56 IRON_FENCE;
  19. %setBlock rpg:-54:68:-56 IRON_FENCE;
  20. %setBlock rpg:-53:68:-56 IRON_FENCE;
  21. %playSound rpg:-55:68:-56 BLOCK_ANVIL_LAND;
  22. %waitfor 10;
  23. %setBlock rpg:-56:67:-56 IRON_FENCE;
  24. %setBlock rpg:-55:67:-56 IRON_FENCE;
  25. %setBlock rpg:-54:67:-56 IRON_FENCE;
  26. %setBlock rpg:-53:67:-56 IRON_FENCE;
  27. %playSound rpg:-55:68:-56 BLOCK_ANVIL_LAND;
  28. %goto wait;
  29. @open
  30. %if $closed == false goto wait;
  31. %setVar closed false;
  32. %setBlock rpg:-56:67:-56 AIR;
  33. %setBlock rpg:-55:67:-56 AIR;
  34. %setBlock rpg:-54:67:-56 AIR;
  35. %setBlock rpg:-53:67:-56 AIR;
  36. %playSound rpg:-55:68:-56 BLOCK_CHEST_OPEN;
  37. %waitfor 10;
  38. %setBlock rpg:-56:68:-56 AIR;
  39. %setBlock rpg:-55:68:-56 AIR;
  40. %setBlock rpg:-54:68:-56 AIR;
  41. %setBlock rpg:-53:68:-56 AIR;
  42. %playSound rpg:-55:68:-56 BLOCK_CHEST_OPEN;
  43. %waitfor 10;
  44. %setBlock rpg:-56:69:-56 AIR;
  45. %setBlock rpg:-55:69:-56 AIR;
  46. %setBlock rpg:-54:69:-56 AIR;
  47. %setBlock rpg:-53:69:-56 AIR;
  48. %playSound rpg:-55:68:-56 BLOCK_CHEST_OPEN;
  49. %goto wait;