Advertisement
Brigson

Рулетка для МК 1.9+

Apr 3rd, 2016
1,076
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 26.62 KB | None | 0 0
  1. summon FallingSand ~ ~1 ~ {Block:stone,Time:1,Passengers:[{id:FallingSand,Block:redstone_block,Time:1,Passengers:[{id:FallingSand,Block:activator_rail,Time:1,Passengers:[{id:MinecartCommandBlock,Command:gamerule commandBlockOutput false},{id:MinecartCommandBlock,Command:"fill ~2 ~-3 ~-2 ~15 ~-1 ~2 stained_hardened_clay 13 hollow"},{id:MinecartCommandBlock,Command:"fill ~2 ~-2 ~-2 ~15 ~-2 ~2 stained_glass 13 replace stained_hardened_clay"},{id:MinecartCommandBlock,Command:"/fill ~15 ~2 ~-1 ~15 ~4 ~1 minecraft:stained_hardened_clay 4 replace"},{id:MinecartCommandBlock,Command:"/summon ItemFrame ~14 ~3 ~ {Tags:[\"itemframecenter\"],Item:{id:spectral_arrow},Facing:1,ItemRotation:7}"},{id:MinecartCommandBlock,Command:"/summon ItemFrame ~14 ~4 ~ {Item:{id:leather_chestplate},Facing:1,ItemRotation:0}"},{id:MinecartCommandBlock,Command:"/summon ItemFrame ~14 ~2 ~ {Item:{id:stone_sword},Facing:1,ItemRotation:0}"},{id:MinecartCommandBlock,Command:"/summon ItemFrame ~14 ~3 ~1 {Item:{id:iron_leggings},Facing:1,ItemRotation:0}"},{id:MinecartCommandBlock,Command:"/summon ItemFrame ~14 ~3 ~-1 {Item:{id:gold_nugget},Facing:1,ItemRotation:0}"},{id:MinecartCommandBlock,Command:"/summon ItemFrame ~14 ~4 ~1 {Item:{id:iron_pickaxe},Facing:1,ItemRotation:0}"},{id:MinecartCommandBlock,Command:"/summon ItemFrame ~14 ~4 ~-1 {Item:{id:cooked_chicken},Facing:1,ItemRotation:0}"},{id:MinecartCommandBlock,Command:"/summon ItemFrame ~14 ~2 ~-1 {Item:{id:golden_apple},Facing:1,ItemRotation:0}"},{id:MinecartCommandBlock,Command:"/summon ItemFrame ~14 ~2 ~1 {Item:{id:rotten_flesh},Facing:1,ItemRotation:0}"},{id:MinecartCommandBlock,Command:"/setblock ~12 ~1 ~ minecraft:stained_hardened_clay 4 replace"},{id:MinecartCommandBlock,Command:"/setblock ~12 ~2 ~ minecraft:stone_button 5 replace"},{id:MinecartCommandBlock,Command:"/fill ~11 ~ ~-1 ~9 ~ ~1 minecraft:stained_hardened_clay 10 replace"},{id:MinecartCommandBlock,Command:"/scoreboard objectives add itemframe dummy"},{id:MinecartCommandBlock,Command:"/scoreboard objectives add timecode dummy"},{id:MinecartCommandBlock,Command:"/fill ~2 ~-3 ~-2 ~15 ~-6 ~5 minecraft:stained_hardened_clay 13 hollow"},{id:MinecartCommandBlock,Command:"/setblock ~4 ~-5 ~1 minecraft:hopper 3 replace {Items:[{Slot:0,id:stone,Count:1}]}"},{id:MinecartCommandBlock,Command:"/setblock ~3 ~-5 ~1 minecraft:command_block 0 replace {Command:/setblock ~9 ~7 ~-1 minecraft:stone_button 5,TrackOutput:0}"},{id:MinecartCommandBlock,Command:"/setblock ~3 ~-4 ~1 minecraft:redstone_block 0 replace"},{id:MinecartCommandBlock,Command:"/setblock ~5 ~-5 ~1 minecraft:hopper 4 replace"},{id:MinecartCommandBlock,Command:"/setblock ~6 ~-5 ~1 minecraft:hopper 4 replace"},{id:MinecartCommandBlock,Command:"/setblock ~7 ~-5 ~1 minecraft:hopper 4 replace"},{id:MinecartCommandBlock,Command:"/setblock ~7 ~-5 ~2 minecraft:hopper 2 replace"},{id:MinecartCommandBlock,Command:"/setblock ~6 ~-5 ~2 minecraft:hopper 5 replace"},{id:MinecartCommandBlock,Command:"/setblock ~5 ~-5 ~2 minecraft:hopper 5 replace"},{id:MinecartCommandBlock,Command:"/setblock ~4 ~-5 ~2 minecraft:hopper 5 replace"},{id:MinecartCommandBlock,Command:"/fill ~4 ~-5 ~-1 ~7 ~-5 ~-1 minecraft:quartz_block"},{id:MinecartCommandBlock,Command:"/fill ~4 ~-5 ~4 ~7 ~-5 ~4 minecraft:quartz_block"},{id:MinecartCommandBlock,Command:"/fill ~4 ~-4 ~1 ~7 ~-4 ~2 minecraft:redstone_wire 0 replace"},{id:MinecartCommandBlock,Command:"/fill ~4 ~-5 ~ ~7 ~-5 ~ minecraft:unpowered_comparator 0"},{id:MinecartCommandBlock,Command:"/fill ~4 ~-5 ~3 ~7 ~-5 ~3 minecraft:unpowered_comparator 2"},{id:MinecartCommandBlock,Command:"/setblock ~4 ~-4 ~4 minecraft:command_block 0 replace {Command:/entitydata @e[tag=itemframecenter] {ItemRotation:0},TrackOutput:0}"},{id:MinecartCommandBlock,Command:"/setblock ~5 ~-4 ~4 minecraft:command_block 0 replace {Command:/entitydata @e[tag=itemframecenter] {ItemRotation:1},TrackOutput:0}"},{id:MinecartCommandBlock,Command:"/setblock ~6 ~-4 ~4 minecraft:command_block 0 replace {Command:/entitydata @e[tag=itemframecenter] {ItemRotation:2},TrackOutput:0}"},{id:MinecartCommandBlock,Command:"/setblock ~7 ~-4 ~4 minecraft:command_block 0 replace {Command:/entitydata @e[tag=itemframecenter] {ItemRotation:3},TrackOutput:0}"},{id:MinecartCommandBlock,Command:"/setblock ~7 ~-4 ~-1 minecraft:command_block 0 replace {Command:/entitydata @e[tag=itemframecenter] {ItemRotation:4},TrackOutput:0}"},{id:MinecartCommandBlock,Command:"/setblock ~6 ~-4 ~-1 minecraft:command_block 0 replace {Command:/entitydata @e[tag=itemframecenter] {ItemRotation:5},TrackOutput:0}"},{id:MinecartCommandBlock,Command:"/setblock ~5 ~-4 ~-1 minecraft:command_block 0 replace {Command:/entitydata @e[tag=itemframecenter] {ItemRotation:6},TrackOutput:0}"},{id:MinecartCommandBlock,Command:"/setblock ~4 ~-4 ~-1 minecraft:command_block 0 replace {Command:/entitydata @e[tag=itemframecenter] {ItemRotation:7},TrackOutput:0}"},{id:MinecartCommandBlock,Command:setblock ~1 ~-3 ~ wall_sign 4 replace {Text2:"{\\\"text\\\":\\\"автор Бригсон\\\",\\\"color\\\":\\\"dark_blue\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"/tellraw @a [\\\\\\\"\\\\\\\",{\\\\\\\"text\\\\\\\":\\\\\\\"нажми на сообщение, чтобы перейти на канал автора, где множество интересных механизмов по майнкрафту\\\\\\\",\\\\\\\"color\\\\\\\":\\\\\\\"green\\\\\\\",\\\\\\\"bold\\\\\\\":true,\\\\\\\"clickEvent\\\\\\\":{\\\\\\\"action\\\\\\\":\\\\\\\"open_url\\\\\\\",\\\\\\\"value\\\\\\\":\\\\\\\"https://www.youtube.com/channel/UCYeqXNaEey3VA3tzSHWB4xA\\\\\\\"}}]\\\"}}",Text3:"{\\\"text\\\":\\\"кликни на табличку\\\",\\\"color\\\":\\\"dark_blue\\\"}"}},{id:MinecartCommandBlock,Command:setblock ~1 ~-2 ~ wall_sign 4 replace {Text1:"{\\\"text\\\":\\\"кликни на табличку,\\\",\\\"color\\\":\\\"dark_green\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"scoreboard players add @e[type=ArmorStand,name=TogAct,c=1] G2SmLF_A 1\\\"}}",Text2:"{\\\"text\\\":\\\"чтобы деактивировать\\\",\\\"color\\\":\\\"dark_green\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"execute @e[score_G2SmLF_A_min=1,score_G2SmLF_A=1] ~ ~ ~ blockdata ~ ~ ~ {auto:0}\\\"}}",Text3:"{\\\"text\\\":\\\"или активировать\\\",\\\"color\\\":\\\"dark_green\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"execute @e[score_G2SmLF_A_min=2] ~ ~ ~ blockdata ~ ~ ~ {auto:1}\\\"}}",Text4:"{\\\"text\\\":\\\"рулетку\\\",\\\"color\\\":\\\"dark_green\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"scoreboard players reset @e[score_G2SmLF_A_min=2] G2SmLF_A\\\"}}"}},{id:MinecartCommandBlock,Command:setblock ~1 ~-1 ~ wall_sign 4 replace {Text2:"{\\\"text\\\":\\\"кликни, чтобы\\\",\\\"color\\\":\\\"dark_purple\\\"}",Text3:"{\\\"text\\\":\\\"разрушить механизм\\\",\\\"color\\\":\\\"dark_purple\\\"}",Text4:"{\\\"text\\\":\\\"\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"fill ~ ~-2 ~-2 ~14 ~ ~2 air\\\"}}"}},{id:MinecartCommandBlock,Command:"summon ArmorStand ~3 ~-2 ~-1 {CustomName:TogAct,Marker:1,NoGravity:1,Invisible:1}"},{id:MinecartCommandBlock,Command:"scoreboard objectives add G2SmLF_A dummy"},{id:MinecartCommandBlock,Command:setblock ~14 ~-2 ~1 chain_command_block 3 replace {auto:1,Command:"/kill @e[score_timecode_min=0,score_timecode=0]"}},{id:MinecartCommandBlock,Command:setblock ~13 ~-2 ~1 chain_command_block 5 replace {auto:1,Command:"/execute @e[score_itemframe=7,score_itemframe_min=7,c=1] ~ ~ ~ /execute @e[score_timecode_min=0,score_timecode=0,c=1] ~ ~ ~ /execute @a ~ ~ ~ detect ~ ~-1 ~ minecraft:stained_hardened_clay 10 /give @a[r=0] minecraft:leather_chestplate 1 "}},{id:MinecartCommandBlock,Command:setblock ~12 ~-2 ~1 chain_command_block 5 replace {auto:1,Command:"/execute @e[score_itemframe=6,score_itemframe_min=6,c=1] ~ ~ ~ /execute @e[score_timecode_min=0,score_timecode=0,c=1] ~ ~ ~ /execute @a ~ ~ ~ detect ~ ~-1 ~ minecraft:stained_hardened_clay 10 /give @a[r=0] minecraft:cooked_chicken 1 "}},{id:MinecartCommandBlock,Command:setblock ~11 ~-2 ~1 chain_command_block 5 replace {auto:1,Command:"/execute @e[score_itemframe=5,score_itemframe_min=5,c=1] ~ ~ ~ /execute @e[score_timecode_min=0,score_timecode=0,c=1] ~ ~ ~ /execute @a ~ ~ ~ detect ~ ~-1 ~ minecraft:stained_hardened_clay 10 /give @a[r=0] minecraft:gold_nugget 1 "}},{id:MinecartCommandBlock,Command:setblock ~10 ~-2 ~1 chain_command_block 5 replace {auto:1,Command:"/execute @e[score_itemframe=4,score_itemframe_min=4,c=1] ~ ~ ~ /execute @e[score_timecode_min=0,score_timecode=0,c=1] ~ ~ ~ /execute @a ~ ~ ~ detect ~ ~-1 ~ minecraft:stained_hardened_clay 10 /give @a[r=0] minecraft:golden_apple 1 "}},{id:MinecartCommandBlock,Command:setblock ~9 ~-2 ~1 chain_command_block 5 replace {auto:1,Command:"/execute @e[score_itemframe=3,score_itemframe_min=3,c=1] ~ ~ ~ /execute @e[score_timecode_min=0,score_timecode=0,c=1] ~ ~ ~ /execute @a ~ ~ ~ detect ~ ~-1 ~ minecraft:stained_hardened_clay 10 /give @a[r=0] minecraft:stone_sword 1 "}},{id:MinecartCommandBlock,Command:setblock ~8 ~-2 ~1 chain_command_block 5 replace {auto:1,Command:"/execute @e[score_itemframe=2,score_itemframe_min=2,c=1] ~ ~ ~ /execute @e[score_timecode_min=0,score_timecode=0,c=1] ~ ~ ~ /execute @a ~ ~ ~ detect ~ ~-1 ~ minecraft:stained_hardened_clay 10 /give @a[r=0] minecraft:rotten_flesh 1 "}},{id:MinecartCommandBlock,Command:setblock ~7 ~-2 ~1 chain_command_block 5 replace {auto:1,Command:"/execute @e[score_itemframe=1,score_itemframe_min=1,c=1] ~ ~ ~ /execute @e[score_timecode_min=0,score_timecode=0,c=1] ~ ~ ~ /execute @a ~ ~ ~ detect ~ ~-1 ~ minecraft:stained_hardened_clay 10 /give @a[r=0] minecraft:iron_leggings 1 "}},{id:MinecartCommandBlock,Command:setblock ~6 ~-2 ~1 chain_command_block 5 replace {auto:1,Command:"/execute @e[score_itemframe=0,score_itemframe_min=0,c=1] ~ ~ ~ /execute @e[score_timecode_min=0,score_timecode=0,c=1] ~ ~ ~ /execute @a ~ ~ ~ detect ~ ~-1 ~ minecraft:stained_hardened_clay 10 /give @a[r=0] minecraft:iron_pickaxe 1 "}},{id:MinecartCommandBlock,Command:setblock ~5 ~-2 ~1 chain_command_block 13 replace {auto:1,Command:"/setblock ~-2 ~-2 ~ minecraft:redstone_block 0 keep"}},{id:MinecartCommandBlock,Command:setblock ~4 ~-2 ~1 chain_command_block 5 replace {auto:1,Command:"/testfor @e[score_timecode_min=0,score_timecode=0]"}},{id:MinecartCommandBlock,Command:setblock ~3 ~-2 ~1 chain_command_block 5 replace {auto:1,Command:"/scoreboard players set @e[tag=itemframecenter] itemframe 7 {ItemRotation:7b}"}},{id:MinecartCommandBlock,Command:setblock ~3 ~-2 ~ chain_command_block 3 replace {auto:1,Command:"/scoreboard players set @e[tag=itemframecenter] itemframe 6 {ItemRotation:6b}"}},{id:MinecartCommandBlock,Command:setblock ~4 ~-2 ~ chain_command_block 4 replace {auto:1,Command:"/scoreboard players set @e[tag=itemframecenter] itemframe 5 {ItemRotation:5b}"}},{id:MinecartCommandBlock,Command:setblock ~5 ~-2 ~ chain_command_block 12 replace {auto:1,Command:"/setblock ~-2 ~-2 ~1 minecraft:air"}},{id:MinecartCommandBlock,Command:setblock ~6 ~-2 ~ chain_command_block 4 replace {auto:1,Command:"/testfor @e[score_timecode_min=1]"}},{id:MinecartCommandBlock,Command:setblock ~7 ~-2 ~ chain_command_block 4 replace {auto:1,Command:"/scoreboard players set @e[tag=itemframecenter] itemframe 4 {ItemRotation:4b}"}},{id:MinecartCommandBlock,Command:setblock ~8 ~-2 ~ chain_command_block 4 replace {auto:1,Command:"/scoreboard players set @e[tag=itemframecenter] itemframe 3 {ItemRotation:3b}"}},{id:MinecartCommandBlock,Command:setblock ~9 ~-2 ~ chain_command_block 4 replace {auto:1,Command:"/scoreboard players set @e[tag=itemframecenter] itemframe 2 {ItemRotation:2b}"}},{id:MinecartCommandBlock,Command:setblock ~10 ~-2 ~ chain_command_block 4 replace {auto:1,Command:"/scoreboard players set @e[tag=itemframecenter] itemframe 1 {ItemRotation:1b}"}},{id:MinecartCommandBlock,Command:setblock ~11 ~-2 ~ chain_command_block 4 replace {auto:1,Command:"/scoreboard players set @e[tag=itemframecenter] itemframe 0 {ItemRotation:0b}"}},{id:MinecartCommandBlock,Command:setblock ~12 ~-2 ~ chain_command_block 4 replace {auto:1,Command:"/scoreboard players remove @e[score_timecode_min=0] timecode 1"}},{id:MinecartCommandBlock,Command:setblock ~13 ~-2 ~ chain_command_block 4 replace {auto:1,Command:"/scoreboard players set @e[type=Item,r=10,rym=135,ry=179] timecode 150 {Item:{id:minecraft:dye,tag:{display:{Name:\\\"bonus\\\"}}},Age:20s}"}},{id:MinecartCommandBlock,Command:setblock ~14 ~-2 ~ chain_command_block 4 replace {auto:1,Command:"/scoreboard players set @e[type=Item,r=10,rym=90,ry=134] timecode 140 {Item:{id:minecraft:dye,tag:{display:{Name:\\\"bonus\\\"}}},Age:20s}"}},{id:MinecartCommandBlock,Command:setblock ~14 ~-2 ~-1 chain_command_block 3 replace {auto:1,Command:"/scoreboard players set @e[type=Item,r=10,rym=45,ry=89] timecode 130 {Item:{id:minecraft:dye,tag:{display:{Name:\\\"bonus\\\"}}},Age:20s}"}},{id:MinecartCommandBlock,Command:setblock ~13 ~-2 ~-1 chain_command_block 5 replace {auto:1,Command:"/scoreboard players set @e[type=Item,r=10,rym=0,ry=44] timecode 120 {Item:{id:minecraft:dye,tag:{display:{Name:\\\"bonus\\\"}}},Age:20s}"}},{id:MinecartCommandBlock,Command:setblock ~12 ~-2 ~-1 chain_command_block 5 replace {auto:1,Command:"/scoreboard players set @e[type=Item,r=10,rym=-45,ry=-1] timecode 110 {Item:{id:minecraft:dye,tag:{display:{Name:\\\"bonus\\\"}}},Age:20s}"}},{id:MinecartCommandBlock,Command:setblock ~11 ~-2 ~-1 chain_command_block 5 replace {auto:1,Command:"/scoreboard players set @e[type=Item,r=10,rym=-90,ry=-46] timecode 100 {Item:{id:minecraft:dye,tag:{display:{Name:\\\"bonus\\\"}}},Age:20s}"}},{id:MinecartCommandBlock,Command:setblock ~10 ~-2 ~-1 chain_command_block 5 replace {auto:1,Command:"/scoreboard players set @e[type=Item,r=10,rym=-135,ry=-91] timecode 90 {Item:{id:minecraft:dye,tag:{display:{Name:\\\"bonus\\\"}}},Age:20s}"}},{id:MinecartCommandBlock,Command:setblock ~9 ~-2 ~-1 chain_command_block 5 replace {auto:1,Command:"/scoreboard players set @e[type=Item,r=10,rym=-180,ry=-136] timecode 80 {Item:{id:minecraft:dye,tag:{display:{Name:\\\"bonus\\\"}}},Age:20s}"}},{id:MinecartCommandBlock,Command:setblock ~8 ~-2 ~-1 chain_command_block 13 replace {auto:1,Command:"/xp -5l @p[tag=playcashe]"}},{id:MinecartCommandBlock,Command:setblock ~7 ~-2 ~-1 chain_command_block 5 replace {auto:1,Command:"/kill @e[type=Endermite,tag=dropbonus]"}},{id:MinecartCommandBlock,Command:setblock ~6 ~-2 ~-1 chain_command_block 5 replace {auto:1,Command:"/execute @e[type=Endermite,tag=dropbonus] ~ ~ ~ /execute @p[lm=5] ~ ~ ~ detect ~ ~-1 ~ minecraft:stained_hardened_clay 10 /scoreboard players tag @p[r=0] add playcashe"}},{id:MinecartCommandBlock,Command:setblock ~5 ~-2 ~-1 chain_command_block 13 replace {auto:1,Command:"/setblock ~7 ~4 ~1 minecraft:air 0 replace"}},{id:MinecartCommandBlock,Command:setblock ~4 ~-2 ~-1 chain_command_block 13 replace {auto:1,Command:"/execute @p[lm=5] ~ ~ ~ detect ~ ~-1 ~ minecraft:stained_hardened_clay 10 /summon Endermite ~2 ~-6 ~ {Tags:[\\\"dropbonus\\\"],Air:0,HandItems:[{id:dye,Count:1,tag:{display:{Name:\\\"bonus\\\"}}},{}],HandDropChances:[2.0F,0.0F],Silent:1}"}},{id:MinecartCommandBlock,Command:setblock ~3 ~-2 ~-1 repeating_command_block 5 replace {auto:1,Command:"/testforblock ~9 ~4 ~1 minecraft:stone_button 13 "}},{id:MinecartCommandBlock,Command:setblock ~ ~ ~1 command_block 0 replace {Command:fill ~ ~-3 ~-1 ~ ~ ~ air}},{id:MinecartCommandBlock,Command:setblock ~ ~-1 ~1 redstone_block},{id:MinecartCommandBlock,Command:kill @e[type=MinecartCommandBlock,r=1]}]}]}]}
  2.  
  3.  
  4. ОБЪЯСНЕНИЕ КОМАНД В МЕХАНИЗМЕ
  5. (команды с 1 по 24 выполняются один раз и командные блоки с этими командами не ставятся)
  6.  
  7. 1. ставит стенку 3х3 для рулетки
  8. /fill ~15 ~2 ~-1 ~15 ~4 ~1 minecraft:stained_hardened_clay 4 replace
  9.  
  10. 2. ставит центральную рамку со стрелой
  11. /summon ItemFrame ~14 ~3 ~ {Tags:["itemframecenter"],Item:{id:spectral_arrow},Facing:1,ItemRotation:7}
  12.  
  13. 3. ставит рамку с кожаным нагрудником
  14. /summon ItemFrame ~14 ~4 ~ {Item:{id:leather_chestplate},Facing:1,ItemRotation:0}
  15.  
  16. 4. ставит рамку с каменным мечом
  17. /summon ItemFrame ~14 ~2 ~ {Item:{id:stone_sword},Facing:1,ItemRotation:0}
  18.  
  19. 5. ставит рамку с железными поножами
  20. /summon ItemFrame ~14 ~3 ~1 {Item:{id:iron_leggings},Facing:1,ItemRotation:0}
  21.  
  22. 6. ставит рамку с золотым самородком
  23. /summon ItemFrame ~14 ~3 ~-1 {Item:{id:gold_nugget},Facing:1,ItemRotation:0}
  24.  
  25. 7. ставит рамку с железной киркой
  26. /summon ItemFrame ~14 ~4 ~1 {Item:{id:iron_pickaxe},Facing:1,ItemRotation:0}
  27.  
  28. 8. ставит рамку с жареной курицей
  29. /summon ItemFrame ~14 ~4 ~-1 {Item:{id:cooked_chicken},Facing:1,ItemRotation:0}
  30.  
  31. 9. ставит рамку с золотым яблоком
  32. /summon ItemFrame ~14 ~2 ~-1 {Item:{id:golden_apple},Facing:1,ItemRotation:0}
  33.  
  34. 10. ставит рамку с гнилой плотью
  35. /summon ItemFrame ~14 ~2 ~1 {Item:{id:rotten_flesh},Facing:1,ItemRotation:0}
  36.  
  37. 11. ставит блок для кнопки
  38. /setblock ~12 ~1 ~ minecraft:stained_hardened_clay 4 replace
  39.  
  40. 12. ставит кнопку
  41. /setblock ~12 ~2 ~ minecraft:stone_button 5 replace
  42.  
  43. 13. ставит площадку из фиолетовой глины на которой стоит игрок
  44. /fill ~11 ~ ~-1 ~9 ~ ~1 minecraft:stained_hardened_clay 10 replace
  45.  
  46. 14. создает событие для положения стрелы в рамке
  47. /scoreboard objectives add itemframe dummy
  48.  
  49. 15. создает событие для рандомного выбора
  50. /scoreboard objectives add timecode dummy
  51.  
  52. 16. создает коробку под механизмом для размещение воронок и дополнительных командных блоков
  53. /fill ~2 ~-3 ~-2 ~15 ~-6 ~5 minecraft:stained_hardened_clay 13 hollow
  54.  
  55. 17. ставит воронку с камнем внутри
  56. /setblock ~4 ~-5 ~1 minecraft:hopper 3 replace {Items:[{Slot:0,id:stone,Count:1}]}
  57.  
  58. 18. ставит командный блок, который устанавливает каменную кнопку для следующего розыгрыша
  59. /setblock ~3 ~-5 ~1 minecraft:command_block 0 replace {Command:/setblock ~9 ~7 ~-1 minecraft:stone_button 5,TrackOutput:0}
  60.  
  61. 19. ставит блок красного камня, который блокирует воронки
  62. /setblock ~3 ~-4 ~1 minecraft:redstone_block 0 replace
  63.  
  64. 20. ставит воронки
  65. /setblock ~5 ~-5 ~1 minecraft:hopper 4 replace
  66. /setblock ~6 ~-5 ~1 minecraft:hopper 4 replace
  67. /setblock ~7 ~-5 ~1 minecraft:hopper 4 replace
  68. /setblock ~7 ~-5 ~2 minecraft:hopper 2 replace
  69. /setblock ~6 ~-5 ~2 minecraft:hopper 5 replace
  70. /setblock ~5 ~-5 ~2 minecraft:hopper 5 replace
  71. /setblock ~4 ~-5 ~2 minecraft:hopper 5 replace
  72.  
  73. 21. устанавливает блоки кварца от компараторов
  74. /fill ~4 ~-5 ~-1 ~7 ~-5 ~-1 minecraft:quartz_block
  75. /fill ~4 ~-5 ~4 ~7 ~-5 ~4 minecraft:quartz_block
  76.  
  77. 22. устанавливает красную пыль на воронки
  78. /fill ~4 ~-4 ~1 ~7 ~-4 ~2 minecraft:redstone_wire 0 replace
  79.  
  80. 23. устанавливает компараторы от воронок
  81. /fill ~4 ~-5 ~ ~7 ~-5 ~ minecraft:unpowered_comparator 0
  82. /fill ~4 ~-5 ~3 ~7 ~-5 ~3 minecraft:unpowered_comparator 2
  83.  
  84. 24. устанавливает командные блоки для изменения положения стрелы в центральной рамке
  85. /setblock ~4 ~-4 ~4 minecraft:command_block 0 replace {Command:/entitydata @e[tag=itemframecenter] {ItemRotation:0},TrackOutput:0}
  86. /setblock ~5 ~-4 ~4 minecraft:command_block 0 replace {Command:/entitydata @e[tag=itemframecenter] {ItemRotation:1},TrackOutput:0}
  87. /setblock ~6 ~-4 ~4 minecraft:command_block 0 replace {Command:/entitydata @e[tag=itemframecenter] {ItemRotation:2},TrackOutput:0}
  88. /setblock ~7 ~-4 ~4 minecraft:command_block 0 replace {Command:/entitydata @e[tag=itemframecenter] {ItemRotation:3},TrackOutput:0}
  89. /setblock ~7 ~-4 ~-1 minecraft:command_block 0 replace {Command:/entitydata @e[tag=itemframecenter] {ItemRotation:4},TrackOutput:0}
  90. /setblock ~6 ~-4 ~-1 minecraft:command_block 0 replace {Command:/entitydata @e[tag=itemframecenter] {ItemRotation:5},TrackOutput:0}
  91. /setblock ~5 ~-4 ~-1 minecraft:command_block 0 replace {Command:/entitydata @e[tag=itemframecenter] {ItemRotation:6},TrackOutput:0}
  92. /setblock ~4 ~-4 ~-1 minecraft:command_block 0 replace {Command:/entitydata @e[tag=itemframecenter] {ItemRotation:7},TrackOutput:0}
  93.  
  94. 25. тестирует нажатую каменную кнопку
  95. /testforblock ~9 ~4 ~1 minecraft:stone_button 13
  96.  
  97. 26. спаунит чешуйницу края возле игрок с опытом минимум в 5 уровней
  98. /execute @p[lm=5] ~ ~ ~ detect ~ ~-1 ~ minecraft:stained_hardened_clay 10 /summon Endermite ~2 ~-6 ~ {Tags:["dropbonus"],Air:0,HandItems:[{id:dye,Count:1,tag:{display:{Name:"bonus"}}},{}],HandDropChances:[2.0F,0.0F],Silent:1}
  99.  
  100. 27. ставит на месте кнопки блок воздуха
  101. /setblock ~7 ~4 ~1 minecraft:air 0 replace
  102.  
  103. 28. дает тэг игроку, нажавшему кнопку и имеющему миниму 5 уровней опыта
  104. /execute @e[type=Endermite,tag=dropbonus] ~ ~ ~ /execute @p[lm=5] ~ ~ ~ detect ~ ~-1 ~ minecraft:stained_hardened_clay 10 /scoreboard players tag @p[r=0] add playcashe
  105.  
  106. 29. убивает чешуйницу края
  107. /kill @e[type=Endermite,tag=dropbonus]
  108.  
  109. 30. забирает у игрока с тэгом 5 уровней опыта
  110. /xp -5l @p[tag=playcashe]
  111.  
  112. 31. рандомная установка очков мешку чернил, выпавшему из чешуйницы края в событие для рандома предметов в рулетке
  113. /scoreboard players set @e[type=Item,r=10,rym=-180,ry=-136] timecode 80 {Item:{id:minecraft:dye,tag:{display:{Name:"bonus"}}},Age:20s}
  114. /scoreboard players set @e[type=Item,r=10,rym=-135,ry=-91] timecode 90 {Item:{id:minecraft:dye,tag:{display:{Name:"bonus"}}},Age:20s}
  115. /scoreboard players set @e[type=Item,r=10,rym=-90,ry=-46] timecode 100 {Item:{id:minecraft:dye,tag:{display:{Name:"bonus"}}},Age:20s}
  116. /scoreboard players set @e[type=Item,r=10,rym=-45,ry=-1] timecode 110 {Item:{id:minecraft:dye,tag:{display:{Name:"bonus"}}},Age:20s}
  117. /scoreboard players set @e[type=Item,r=10,rym=0,ry=44] timecode 120 {Item:{id:minecraft:dye,tag:{display:{Name:"bonus"}}},Age:20s}
  118. /scoreboard players set @e[type=Item,r=10,rym=45,ry=89] timecode 130 {Item:{id:minecraft:dye,tag:{display:{Name:"bonus"}}},Age:20s}
  119. /scoreboard players set @e[type=Item,r=10,rym=90,ry=134] timecode 140 {Item:{id:minecraft:dye,tag:{display:{Name:"bonus"}}},Age:20s}
  120. /scoreboard players set @e[type=Item,r=10,rym=135,ry=179] timecode 150 {Item:{id:minecraft:dye,tag:{display:{Name:"bonus"}}},Age:20s}
  121.  
  122. 32. удаление по одному очку в событии у чернильного мешка
  123. /scoreboard players remove @e[score_timecode_min=0] timecode 1
  124.  
  125. 33. установка очков в событие для рамок центральной рамке в зависимости от положение стрелы в ней
  126. /scoreboard players set @e[tag=itemframecenter] itemframe 0 {ItemRotation:0b}
  127. /scoreboard players set @e[tag=itemframecenter] itemframe 1 {ItemRotation:1b}
  128. /scoreboard players set @e[tag=itemframecenter] itemframe 2 {ItemRotation:2b}
  129. /scoreboard players set @e[tag=itemframecenter] itemframe 3 {ItemRotation:3b}
  130. /scoreboard players set @e[tag=itemframecenter] itemframe 4 {ItemRotation:4b}
  131. /scoreboard players set @e[tag=itemframecenter] itemframe 5 {ItemRotation:5b}
  132. /scoreboard players set @e[tag=itemframecenter] itemframe 6 {ItemRotation:6b}
  133. /scoreboard players set @e[tag=itemframecenter] itemframe 7 {ItemRotation:7b}
  134.  
  135. 34. тест чернильного мешка с минимум одним очком в событии для рандома
  136. /testfor @e[score_timecode_min=1]
  137.  
  138. 35. установка блока воздуха вместо блока красного камня
  139. /setblock ~-2 ~-2 ~1 minecraft:air
  140.  
  141. 36. тест предмета с нуля очками в событии для рандома
  142. /testfor @e[score_timecode_min=0,score_timecode=0]
  143.  
  144. 37. установака блока красного камня для блокировки воронок как только будет найден предмет с нуля очками в событии для рандома
  145. /setblock ~-2 ~-2 ~ minecraft:redstone_block 0 keep
  146.  
  147. 38. выдача рандомных предметов
  148. /execute @e[score_itemframe=0,score_itemframe_min=0,c=1] ~ ~ ~ /execute @e[score_timecode_min=0,score_timecode=0,c=1] ~ ~ ~ /execute @a ~ ~ ~ detect ~ ~-1 ~ minecraft:stained_hardened_clay 10 /give @a[r=0] minecraft:iron_pickaxe 1
  149. /execute @e[score_itemframe=1,score_itemframe_min=1,c=1] ~ ~ ~ /execute @e[score_timecode_min=0,score_timecode=0,c=1] ~ ~ ~ /execute @a ~ ~ ~ detect ~ ~-1 ~ minecraft:stained_hardened_clay 10 /give @a[r=0] minecraft:iron_leggings 1
  150. /execute @e[score_itemframe=2,score_itemframe_min=2,c=1] ~ ~ ~ /execute @e[score_timecode_min=0,score_timecode=0,c=1] ~ ~ ~ /execute @a ~ ~ ~ detect ~ ~-1 ~ minecraft:stained_hardened_clay 10 /give @a[r=0] minecraft:rotten_flesh 1
  151. /execute @e[score_itemframe=3,score_itemframe_min=3,c=1] ~ ~ ~ /execute @e[score_timecode_min=0,score_timecode=0,c=1] ~ ~ ~ /execute @a ~ ~ ~ detect ~ ~-1 ~ minecraft:stained_hardened_clay 10 /give @a[r=0] minecraft:stone_sword 1
  152. /execute @e[score_itemframe=4,score_itemframe_min=4,c=1] ~ ~ ~ /execute @e[score_timecode_min=0,score_timecode=0,c=1] ~ ~ ~ /execute @a ~ ~ ~ detect ~ ~-1 ~ minecraft:stained_hardened_clay 10 /give @a[r=0] minecraft:golden_apple 1
  153. /execute @e[score_itemframe=5,score_itemframe_min=5,c=1] ~ ~ ~ /execute @e[score_timecode_min=0,score_timecode=0,c=1] ~ ~ ~ /execute @a ~ ~ ~ detect ~ ~-1 ~ minecraft:stained_hardened_clay 10 /give @a[r=0] minecraft:gold_nugget 1
  154. /execute @e[score_itemframe=6,score_itemframe_min=6,c=1] ~ ~ ~ /execute @e[score_timecode_min=0,score_timecode=0,c=1] ~ ~ ~ /execute @a ~ ~ ~ detect ~ ~-1 ~ minecraft:stained_hardened_clay 10 /give @a[r=0] minecraft:cooked_chicken 1
  155. /execute @e[score_itemframe=7,score_itemframe_min=7,c=1] ~ ~ ~ /execute @e[score_timecode_min=0,score_timecode=0,c=1] ~ ~ ~ /execute @a ~ ~ ~ detect ~ ~-1 ~ minecraft:stained_hardened_clay 10 /give @a[r=0] minecraft:leather_chestplate 1
  156.  
  157. 39. убийство чернильного мешка с нулями очков в событии для рандома
  158. /kill @e[score_timecode_min=0,score_timecode=0]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement