Shrinking Potion Command Block
Категория: FAQ / Механизмы в Minecraft
Описание
Данная команда для командного блока добавит в игру зелье, котрое превратит Вас в настоящую букашку. Эффект зелья длится 10 минут, но если будет необходимость прервать эффект зелья, зажмите клавишу Shift. Рецепт зелья: бутылочка воды и приготовленный фрукт коруса.
Как установить
- Для начала создайте командный блок при помощи команды /give @p minecraft:command_block -
- Вставьте команду -
Команда
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 ~8 ~1 ~2 stained_hardened_clay 1 hollow},{id:MinecartCommandBlock,Command:fill ~2 ~-2 ~-2 ~8 ~ ~2 stained_glass 11 0 stained_hardened_clay},{id:MinecartCommandBlock,Command:/scoreboard objectives add shrink dummy},{id:MinecartCommandBlock,Command:/scoreboard objectives add shrink2 dummy},{id:MinecartCommandBlock,Command:/scoreboard objectives add shrink1 dummy},{id:MinecartCommandBlock,Command:/scoreboard objectives add drinked stat.useItem.minecraft.potion},{id:MinecartCommandBlock,Command:/scoreboard objectives add falling dummy},{id:MinecartCommandBlock,Command:/scoreboard objectives add falling1 dummy},{id:MinecartCommandBlock,Command:/scoreboard objectives add sneaked1 stat.sneakTime},{id:MinecartCommandBlock,Command:setblock ~1 ~-2 ~ wall_sign 4 0 {Text1:"{\\\"text\\\":\\\"\\\"}",Text2:"{\\\"text\\\":\\\"Shriking Potion\\\",\\\"color\\\":\\\"aqua\\\"}",Text3:"{\\\"text\\\":\\\"By Code202\\\",\\\"color\\\":\\\"dark_blue\\\"}",Text4:"{\\\"text\\\":\\\"\\\"}"}},{id:MinecartCommandBlock,Command:setblock ~1 ~-1 ~ wall_sign 4 0 {Text1:"{\\\"text\\\":\\\"\\\"}",Text2:"{\\\"text\\\":\\\"Destroy\\\",\\\"color\\\":\\\"red\\\"}",Text3:"{\\\"text\\\":\\\"Machine\\\",\\\"color\\\":\\\"red\\\"}",Text4:"{\\\"text\\\":\\\"\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"fill ~ ~-2 ~-2 ~7 ~2 ~2 air\\\"}}"}},{id:MinecartCommandBlock,Command:scoreboard objectives add xIWrcN_I dummy},{id:MinecartCommandBlock,Command:fill ~3 ~-2 ~-1 ~7 ~ ~1 chain_command_block 5},{id:MinecartCommandBlock,Command:setblock ~7 ~ ~ chain_command_block 4},{id:MinecartCommandBlock,Command:setblock ~7 ~ ~-1 chain_command_block 3},{id:MinecartCommandBlock,Command:setblock ~3 ~-1 ~-1 chain_command_block 1},{id:MinecartCommandBlock,Command:fill ~7 ~-1 ~-1 ~4 ~-1 ~-1 chain_command_block 4},{id:MinecartCommandBlock,Command:setblock ~7 ~-1 ~ chain_command_block 2},{id:MinecartCommandBlock,Command:setblock ~3 ~-1 ~1 chain_command_block 2},{id:MinecartCommandBlock,Command:fill ~7 ~-1 ~1 ~4 ~-1 ~1 chain_command_block 4},{id:MinecartCommandBlock,Command:setblock ~7 ~-2 ~1 chain_command_block 1},{id:MinecartCommandBlock,Command:setblock ~3 ~-2 ~ chain_command_block 3},{id:MinecartCommandBlock,Command:fill ~7 ~-2 ~ ~4 ~-2 ~ chain_command_block 4},{id:MinecartCommandBlock,Command:setblock ~7 ~-2 ~-1 chain_command_block 3},{id:MinecartCommandBlock,Command:setblock ~3 ~-2 ~-1 repeating_command_block 5},{id:MinecartCommandBlock,Command:blockdata ~7 ~ ~ {auto:1,Command:/scoreboard players set @a sneaked1 0}},{id:MinecartCommandBlock,Command:blockdata ~7 ~ ~-1 {auto:1,Command:/scoreboard players set @a drinked 0}},{id:MinecartCommandBlock,Command:blockdata ~6 ~ ~-1 {auto:1,Command:/scoreboard players set @a[score_shrink2_min=4] shrink2 0}},{id:MinecartCommandBlock,Command:blockdata ~5 ~ ~-1 {auto:1,Command:/scoreboard players set @a[score_shrink2_min=4] shrink 0}},{id:MinecartCommandBlock,Command:blockdata ~4 ~ ~-1 {auto:1,Command:/scoreboard players add @a shrink2 1}},{id:MinecartCommandBlock,Command:blockdata ~3 ~ ~-1 {auto:1,Command:/execute @a[score_shrink1_min=12000] ~ ~ ~ /scoreboard players set @p shrink1 0}},{id:MinecartCommandBlock,Command:blockdata ~3 ~-1 ~-1 {auto:1,Command:/execute @a[score_shrink1_min=12000] ~ ~ ~ /kill @e[name=shrink,c=1]}},{id:MinecartCommandBlock,Command:blockdata ~4 ~-1 ~-1 {auto:1,Command:/execute @a[score_shrink1_min=12000] ~ ~ ~ /effect @p 14 0}},{id:MinecartCommandBlock,Command:blockdata ~5 ~-1 ~-1 {auto:1,Command:/execute @a[score_shrink1_min=12000] ~ ~ ~ /tp @p ~ ~1 ~}},{id:MinecartCommandBlock,Command:blockdata ~6 ~-1 ~-1 {auto:1,Command:/execute @a[score_shrink1_min=1,score_sneaked1_min=1] ~ ~ ~ /scoreboard players set @p shrink1 0}},{id:MinecartCommandBlock,Command:blockdata ~7 ~-1 ~-1 {auto:1,Command:/execute @a[score_shrink1_min=1,score_sneaked1_min=1] ~ ~ ~ /kill @e[name=shrink,c=1]}},{id:MinecartCommandBlock,Command:blockdata ~7 ~-1 ~ {auto:1,Command:/execute @a[score_shrink1_min=1,score_sneaked1_min=1] ~ ~ ~ /tp @p ~ ~1 ~}},{id:MinecartCommandBlock,Command:blockdata ~6 ~-1 ~ {auto:1,Command:/execute @a[score_shrink1_min=1,score_sneaked1_min=1] ~ ~ ~ /effect @p 14 0}},{id:MinecartCommandBlock,Command:blockdata ~5 ~-1 ~ {auto:1,Command:/execute @a[score_falling1_min=15] ~ ~ ~ /scoreboard players set @p falling1 0}},{id:MinecartCommandBlock,Command:blockdata ~4 ~-1 ~ {auto:1,Command:/execute @a[score_falling_min=1,score_falling1_min=15] ~ ~ ~ /scoreboard players set @p falling 0}},{id:MinecartCommandBlock,Command:blockdata ~3 ~-1 ~ {auto:1,Command:/execute @a[score_falling_min=1,score_falling1_min=15] ~ ~ ~ /tp @p ~ ~-1 ~ }},{id:MinecartCommandBlock,Command:blockdata ~3 ~-1 ~1 {auto:1,Command:/execute @a[score_falling_min=1] ~ ~ ~ /scoreboard players add @p falling1 1}},{id:MinecartCommandBlock,Command:blockdata ~4 ~-1 ~1 {auto:1,Command:/execute @a[score_shrink1_min=1] ~ ~ ~ detect ~ ~ ~ air 0 execute @p ~ ~ ~ detect ~ ~-1 ~ air 0 scoreboard players set @p falling 0}},{id:MinecartCommandBlock,Command:blockdata ~5 ~-1 ~1 {auto:1,Command:/execute @a[score_shrink1_min=1] ~ ~ ~ detect ~ ~ ~ air 0 scoreboard players set @p falling 1}},{id:MinecartCommandBlock,Command:blockdata ~6 ~-1 ~1 {auto:1,Command:/execute @a[score_shrink1_min=1,rym=135,ry=-134] ~ ~ ~ /tp @p ~ ~ ~-0.001}},{id:MinecartCommandBlock,Command:blockdata ~7 ~-1 ~1 {auto:1,Command:/execute @a[score_shrink1_min=1,ry=44,rym=-45] ~ ~ ~ /tp @p ~ ~ ~0.001}},{id:MinecartCommandBlock,Command:blockdata ~7 ~-2 ~1 {auto:1,Command:/execute @a[score_shrink1_min=1,ry=-44,rym=-135] ~ ~ ~ /tp @p ~0.001 ~ ~}},{id:MinecartCommandBlock,Command:blockdata ~6 ~-2 ~1 {auto:1,Command:/execute @a[score_shrink1_min=1,rym=45,ry=134] ~ ~ ~ /tp @p ~-0.001 ~ ~ }},{id:MinecartCommandBlock,Command:blockdata ~5 ~-2 ~1 {auto:1,Command:/effect @a[score_shrink1_min=1] resistance 1 100 true}},{id:MinecartCommandBlock,Command:blockdata ~4 ~-2 ~1 {auto:1,Command:/effect @a[score_shrink1_min=1] 14 1 1 true}},{id:MinecartCommandBlock,Command:blockdata ~3 ~-2 ~1 {auto:1,Command:/execute @a[score_shrink1_min=1] ~ ~ ~ /tp @e[name=shrink,c=1] ~ ~1 ~}},{id:MinecartCommandBlock,Command:blockdata ~3 ~-2 ~ {auto:1,Command:/execute @a[score_shrink1_min=1] ~ ~ ~ /tp @e[name=shrink,c=1] @p}},{id:MinecartCommandBlock,Command:blockdata ~4 ~-2 ~ {auto:1,Command:"/execute @a[score_shrink1=2,score_shrink1_min=2] ~ ~ ~ /summon ArmorStand ~ ~1 ~ {customName:shrink,Invulnerable:1b,NoGravity:1b,NoBasePlate:1b,ShowArms:1b,Small:1b,ArmorItems:[{id:\\\"leather_boots\\\",Count:1b,tag:{display:{color:16746496}}},{id:\\\"leather_leggings\\\",Count:1b,tag:{display:{color:16746496}}},{id:\\\"leather_chestplate\\\",Count:1b,tag:{display:{color:16746496}}},{id:\\\"skull\\\",Count:1b,Damage:3b,tag:{SkullOwner:\\\"Steve\\\"}}],HandItems:[{},{}],DisabledSlots:31}"}},{id:MinecartCommandBlock,Command:blockdata ~5 ~-2 ~ {auto:1,Command:/execute @a[score_shrink1=2,score_shrink1_min=2] ~ ~ ~ /tp @p ~ ~-1 ~}},{id:MinecartCommandBlock,Command:blockdata ~6 ~-2 ~ {auto:1,Command:/scoreboard players add @a[score_shrink1_min=1] shrink1 1}},{id:MinecartCommandBlock,Command:blockdata ~7 ~-2 ~ {auto:1,Command:/execute @a[score_shrink_min=1,score_drinked_min=1] ~ ~ ~ /scoreboard players set @p shrink1 1}},{id:MinecartCommandBlock,Command:blockdata ~7 ~-2 ~-1 {auto:1,Command:"/scoreboard players set @a shrink 1 {SelectedItem:{id:minecraft:potion,tag:{display:{Name:\\\"Shrinking Potion\\\"}}}}"}},{id:MinecartCommandBlock,Command:blockdata ~6 ~-2 ~-1 {auto:1,Command:execute @e[score_xIWrcN_I_min=67,score_xIWrcN_I=67] ~ ~ ~ execute @e[score_xIWrcN_I_min=68,score_xIWrcN_I=68,r=1] ~ ~ ~ kill @e[type=Item,r=3,score_xIWrcN_I_min=67,score_xIWrcN_I=69]}},{id:MinecartCommandBlock,Command:blockdata ~5 ~-2 ~-1 {auto:1,Command:"execute @e[score_xIWrcN_I_min=67,score_xIWrcN_I=67] ~ ~ ~ execute @e[score_xIWrcN_I_min=68,score_xIWrcN_I=68,r=1] ~ ~ ~ summon Item ~ ~0.5 ~ {Item:{id:minecraft:potion,tag:{HideFlags:32,display:{Name:\\\"Shrinking Potion\\\",Lore:[Shrink to the size of one block!]},Potion:\\\"minecraft:speed\\\"},Count:1}}"}},{id:MinecartCommandBlock,Command:blockdata ~4 ~-2 ~-1 {auto:1,Command:scoreboard players set @e xIWrcN_I 68 {Item:{id:minecraft:chorus_fruit_popped},OnGround:1b}}},{id:MinecartCommandBlock,Command:blockdata ~3 ~-2 ~-1 {auto:1,Command:scoreboard players set @e xIWrcN_I 67 {Item:{id:minecraft:glass_bottle},OnGround:1b}}},{id:MinecartCommandBlock,Command:setblock ~ ~ ~1 command_block 0 0 {Command:fill ~ ~-3 ~-1 ~ ~ ~ air}},{id:MinecartCommandBlock,Command:setblock ~ ~-1 ~1 redstone_block},{id:MinecartCommandBlock,Command:kill @e[type=MinecartCommandBlock,r=1]}]}]}]}