Jragon014

Custom Dungeons Source Commands

Jun 11th, 2016
6,254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.00 KB | None | 0 0
  1. Hey guys! These commands are for people who really really want to make their own custom dungeons. Here are some working commands which can help you!
  2.  
  3. ================================================================================================================
  4.  
  5. <NATURAL SPAWNING>
  6. These commands summon in a "customTerrain" armor stand 32 blocks apart from each other. Probably a good idea to put this on a slow clock!
  7.  
  8.  
  9. /execute @a ~ ~ ~ /execute @e[name=customTerrain] ~ ~ ~ detect ~ ~ ~ bedrock 0 /fill ~ ~ ~ ~ ~ ~ obsidian 0 replace bedrock
  10.  
  11. /execute @a ~ 0 ~ /execute @e[name=customTerrain,r=80] ~ ~ ~ detect ~32 ~ ~ bedrock 0 /summon ArmorStand ~32 ~ ~
  12. {CustomName:"customTerrain",NoGravity:1,Invulnerable:1}
  13. /execute @a ~ ~ ~ /execute @e[name=customTerrain] ~ ~ ~ detect ~ ~ ~ bedrock 0 /fill ~ ~ ~ ~ ~ ~ obsidian 0 replace bedrock
  14.  
  15. /execute @a ~ 0 ~ /execute @e[name=customTerrain,r=80] ~ ~ ~ detect ~-32 ~ ~ bedrock 0 /summon ArmorStand ~-32 ~ ~ {CustomName:"customTerrain",NoGravity:1,Invulnerable:1}
  16. /execute @a ~ ~ ~ /execute @e[name=customTerrain] ~ ~ ~ detect ~ ~ ~ bedrock 0 /fill ~ ~ ~ ~ ~ ~ obsidian 0 replace bedrock
  17.  
  18. /execute @a ~ 0 ~ /execute @e[name=customTerrain,r=80] ~ ~ ~ detect ~ ~ ~32 bedrock 0 /summon ArmorStand ~ ~ ~32 {CustomName:"customTerrain",NoGravity:1,Invulnerable:1}
  19. /execute @a ~ ~ ~ /execute @e[name=customTerrain] ~ ~ ~ detect ~ ~ ~ bedrock 0 /fill ~ ~ ~ ~ ~ ~ obsidian 0 replace bedrock
  20.  
  21. /execute @a ~ 0 ~ /execute @e[name=customTerrain,r=80] ~ ~ ~ detect ~ ~ ~-32 bedrock 0 /summon ArmorStand ~ ~ ~-32 {CustomName:"customTerrain",NoGravity:1,Invulnerable:1}
  22. /execute @a ~ ~ ~ /execute @e[name=customTerrain] ~ ~ ~ detect ~ ~ ~ bedrock 0 /fill ~ ~ ~ ~ ~ ~ obsidian 0 replace bedrock
  23.  
  24.  
  25. /execute @a ~ 0 ~ /execute @e[name=customTerrain,r=80] ~ ~ ~ detect ~ ~ ~ barrier 0 /kill @e[name=customTerrain,r=0]
  26. /execute @a ~ ~ ~ /execute @e[name=customTerrain] ~ ~ ~ /fill ~ ~ ~ ~ ~ ~ barrier 0 replace obsidian
  27.  
  28.  
  29.  
  30.  
  31. ================================================================================================================
  32. ================================================================================================================
  33.  
  34.  
  35. <SPAWNING IN THE DUNGEON (easy method)>
  36. These commands summon in ONE structure block at a specific location.
  37.  
  38.  
  39. /execute @e[name=customTerrain] ~ ~ ~ detect ~ 56 ~ stone 1 /summon ArmorStand ~ 56 ~ {CustomName:"dungeon1",NoGravity:1,Invulnerable:1}
  40. /execute @e[name=customTerrain] ~ ~ ~ detect ~ 56 ~ stone 1 /setblock ~ 56 ~ stone 0
  41.  
  42. /execute @e[type=ArmorStand,name=dungeon1] ~ ~ ~ /setblock ~ ~ ~ structure_block 0 replace {mode:"LOAD",name:"dungeon1a"}
  43. /execute @e[name=dungeon1] ~ ~ ~ /setblock ~ ~1 ~ redstone_block
  44. /kill @e[name=dungeon1]
  45.  
  46.  
  47.  
  48.  
  49.  
  50. ================================================================================================================
  51. ================================================================================================================
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60. ================================================================================================================
  61.  
  62. <SPAWNING IN THE DUNGEON (super dooper complex method, do not read this unless you understood the other stuff)>
  63. These commands summon in many many many structure blocks randomly. Do not forget to add any scoreboard objectives that might be listed here =)
  64.  
  65.  
  66. Terms:[
  67.  
  68. R: = "repeating command"
  69. COND: = "conditional command"
  70. R:COND: "repeating conditional command"
  71.  
  72. ]
  73.  
  74. ================================================================================================================
  75.  
  76.  
  77. /execute @e[name=customTerrain] ~ ~ ~ detect ~ 56 ~ stone 1 /summon ArmorStand ~ 56 ~ {CustomName:"dungeon1",NoGravity:1,Invulnerable:1}
  78. /execute @e[name=customTerrain] ~ ~ ~ detect ~ 56 ~ stone 1 /setblock ~ 56 ~ stone 0
  79.  
  80.  
  81. R:/testfor @e[name=dungeon1]
  82.  
  83. R:COND:/execute @r[type=ArmorStand,name=dungeon1] ~ ~ ~ /summon ArmorStand ~9 ~ ~ {CustomName:"dungeon1",NoGravity:1,Invulnerable:1}
  84. /execute @r[type=ArmorStand,name=dungeon1] ~ ~ ~ /summon ArmorStand ~-9 ~ ~ {CustomName:"dungeon1",NoGravity:1,Invulnerable:1}
  85. /execute @r[type=ArmorStand,name=dungeon1] ~ ~ ~ /summon ArmorStand ~ ~ ~9 {CustomName:"dungeon1",NoGravity:1,Invulnerable:1}
  86. /execute @r[type=ArmorStand,name=dungeon1] ~ ~ ~ /summon ArmorStand ~ ~ ~-9 {CustomName:"dungeon1",NoGravity:1,Invulnerable:1}
  87.  
  88. /scoreboard players tag @r[type=ArmorStand,name=dungeon1,c=2] add safe
  89. /kill @e[name=dungeon1,tag=!safe]
  90. /scoreboard players tag @e[tag=safe] remove safe
  91.  
  92. /scoreboard players add structure rand 1
  93. /scoreboard players test structure rand 12
  94. COND: /scoreboard players set structure rand 0
  95.  
  96. /scoreboard players test structure rand 1 1
  97. COND: /execute @e[type=ArmorStand,name=dungeon1] ~ ~ ~ /setblock ~ ~ ~ structure_block 0 replace {mode:"LOAD",name:"dungeon1a"}
  98. /scoreboard players test structure rand 2 2
  99. COND: /execute @e[type=ArmorStand,name=dungeon1] ~ ~ ~ /setblock ~ ~ ~ structure_block 0 replace {mode:"LOAD",name:"dungeon1b"}
  100. /scoreboard players test structure rand 3 3
  101. COND: /execute @e[type=ArmorStand,name=dungeon1] ~ ~ ~ /setblock ~ ~ ~ structure_block 0 replace {mode:"LOAD",name:"dungeon1c"}
  102. /scoreboard players test structure rand 4 4
  103. COND: /execute @e[type=ArmorStand,name=dungeon1] ~ ~ ~ /setblock ~ ~ ~ structure_block 0 replace {mode:"LOAD",name:"dungeon1d"}
  104. /scoreboard players test structure rand 5 5
  105. COND: /execute @e[type=ArmorStand,name=dungeon1] ~ ~ ~ /setblock ~ ~ ~ structure_block 0 replace {mode:"LOAD",name:"dungeon1e"}
  106. /scoreboard players test structure rand 6 6
  107. COND: /execute @e[type=ArmorStand,name=dungeon1] ~ ~ ~ /setblock ~ ~ ~ structure_block 0 replace {mode:"LOAD",name:"dungeon1f"}
  108. /scoreboard players test structure rand 7 7
  109. COND: /execute @e[type=ArmorStand,name=dungeon1] ~ ~ ~ /setblock ~ ~ ~ structure_block 0 replace {mode:"LOAD",name:"dungeon1g"}
  110. /scoreboard players test structure rand 8 8
  111. COND: /execute @e[type=ArmorStand,name=dungeon1] ~ ~ ~ /setblock ~ ~ ~ structure_block 0 replace {mode:"LOAD",name:"dungeon1h"}
  112. /scoreboard players test structure rand 9 9
  113. COND: /execute @e[type=ArmorStand,name=dungeon1] ~ ~ ~ /setblock ~ ~ ~ structure_block 0 replace {mode:"LOAD",name:"dungeon1i"}
  114. /scoreboard players test structure rand 10 10
  115. COND: /execute @e[type=ArmorStand,name=dungeon1] ~ ~ ~ /setblock ~ ~ ~ structure_block 0 replace {mode:"LOAD",name:"dungeon1j"}
  116. /scoreboard players test structure rand 11 11
  117. COND: /execute @e[type=ArmorStand,name=dungeon1] ~ ~ ~ /setblock ~ ~ ~ structure_block 0 replace {mode:"LOAD",name:"dungeon1k"}
  118. /scoreboard players test structure rand 12 12
  119. COND: /execute @e[type=ArmorStand,name=dungeon1] ~ ~ ~ /setblock ~ ~ ~ structure_block 0 replace {mode:"LOAD",name:"dungeon1l"}
  120.  
  121. /execute @e[name=dungeon1] ~ ~ ~ /setblock ~ ~1 ~ redstone_block
  122.  
  123. /scoreboard players add structureLife rand 1
  124. /scoreboard players test structureLife rand 15
  125. COND: /scoreboard players set structureLife rand 0
  126. COND: /kill @e[name=dungeon1]
  127.  
  128.  
  129. ================================================================================================================
Advertisement
Add Comment
Please, Sign In to add comment