izukuboi

Untitled

Jun 21st, 2023
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.58 KB | Source Code | 0 0
  1. quests:
  2. fetch-quest:
  3. display: Fetch Quest
  4. stages:
  5. start:
  6. object: Quest Giver
  7. action: TALKED
  8. nextstage: collect-items
  9. collect-items:
  10. objective: Collect Items
  11. conditions:
  12. - hasitem: ItemA, 3 # Example condition for collecting 3 ItemA
  13. - hasitem: ItemB, 5 # Example condition for collecting 5 ItemB
  14. nextstage: quest-complete
  15. quest-complete:
  16. complete: true
  17.  
  18. key-to-the-arena:
  19. display: Key to the Arena
  20. stages:
  21. start:
  22. object: Quest Giver
  23. action: TALKED
  24. conditions:
  25. - completed fetch-quest
  26. nextstage: enter-arena
  27. enter-arena:
  28. object: Arena Entrance
  29. action: WALKED
  30. nextstage: collect-keys
  31. collect-keys:
  32. objective: Collect Skeleton Keys
  33. conditions:
  34. - skeletonsKilled >= 5 # Example condition for collecting 5 Skeleton Keys
  35. nextstage: unlock-passage
  36. unlock-passage:
  37. object: Hidden Passage
  38. action: RIGHT_CLICK
  39. conditions:
  40. - completed collect-keys
  41. nextstage: reveal-passage
  42. reveal-passage:
  43. actions:
  44. - action: hiddenblocks
  45. location: x1, y1, z1, x2, y2, z2 # Replace with the coordinates of the hidden passageway
  46. type: REVEAL
  47. nextstage: explore-hidden-area
  48. explore-hidden-area:
  49. object: Hidden Area Entrance
  50. action: WALKED
  51. nextstage: quest-complete
  52. quest-complete:
  53. complete: true
  54.  
  55. npcs:
  56. Quest Giver:
  57. type: NPC
  58. location: x1, y1, z1 # Set the coordinates where the NPC should appear
  59. interactions:
  60. start:
  61. text: "Welcome, adventurer! I have a quest for you."
  62. responses:
  63. - "Tell me more."
  64. Arena Entrance:
  65. type: AREA
  66. location: x1, y1, z1, x2, y2, z2 # Set the coordinates for the arena entrance
  67. event: WALK
  68.  
  69. Hidden Passage:
  70. type: BLOCK
  71. material: STONE_BUTTON
  72. location: x, y, z # Set the coordinates of the hidden passage block
  73. event: RIGHT_CLICK
  74.  
  75. Hidden Area Entrance:
  76. type: AREA
  77. location: x1, y1, z1, x2, y2, z2 # Set the coordinates for the hidden area entrance
  78. event: WALK
  79.  
  80. events:
  81. onKill:
  82. - if killedentity.type = SKELETON:
  83. increment skeletonsKilled by 1
  84.  
  85. items:
  86. ItemA:
  87. type: ITEM
  88. name: ItemA
  89. material: IRON_INGOT
  90. amount: 3
  91. ItemB:
  92. type: ITEM
  93. name: ItemB
  94. material: GOLD_INGOT
  95. amount: 5
  96.  
Tags: Code
Advertisement
Add Comment
Please, Sign In to add comment