Select Page
Portal gun in vanilla minecraft 1.9 | no mods

Portal gun in vanilla minecraft 1.9 | no mods

Simple steps to install this command in your minecraft world
1 copy this command (mac: cmd+c/windows: ctrl+c)
2 open in-game chat (press T)
3 write /give @p minecraft:command_block
4 place the command block
5 go on the text section
6 paste the command (mac: cmd+v/windows: ctrl+v)

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 ~10 ~1 ~2 obsidian 0 hollow"},{id:MinecartCommandBlock,Command:"fill ~2 ~-2 ~-2 ~10 ~ ~2 stained_glass 1 replace obsidian"},{id:MinecartCommandBlock,Command:"/tellraw @a [\"\",{\"text\":\"----------------------------------------------------\",\"color\":\"gold\"}]"},{id:MinecartCommandBlock,Command:setblock ~1 ~-3 ~-1 wall_sign 4 replace {Text1:"{\\\"text\\\":\\\"deactivate\\\",\\\"color\\\":\\\"dark_red\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"/blockdata ~2 ~1 ~ {auto:0b}\\\"}}",Text2:"{\\\"text\\\":\\\"\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"/playsound minecraft:block.chest.close voice @a ~ ~ ~ 10 1 1\\\"}}",Text3:"{\\\"text\\\":\\\"\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"/fill ~1 ~1 ~-1 ~9 ~3 ~4 stained_glass 14 replace stained_glass\\\"}}",Text4:"{\\\"text\\\":\\\"\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"\\\"}}"}},{id:MinecartCommandBlock,Command:setblock ~1 ~-3 ~1 wall_sign 4 replace {Text1:"{\\\"text\\\":\\\"activate\\\",\\\"color\\\":\\\"green\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"/blockdata ~2 ~1 ~-2 {auto:1b}\\\"}}",Text2:"{\\\"text\\\":\\\"\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"/playsound minecraft:block.chest.open voice @a ~ ~ ~ 10 1 1\\\"}}",Text3:"{\\\"text\\\":\\\"\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"/fill ~1 ~1 ~-3 ~9 ~3 ~4 stained_glass 1 replace stained_glass\\\"}}",Text4:"{\\\"text\\\":\\\"\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"\\\"}}"}},{id:MinecartCommandBlock,Command:setblock ~1 ~1 ~ wall_sign 4 replace {Text1:"{\\\"text\\\":\\\"destroy\\\",\\\"color\\\":\\\"red\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"/setblock ~2 ~-1 ~1 redstone_block 0\\\"}}",Text2:"{\\\"text\\\":\\\"\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"/playsound entity.generic.explode voice @a ~ ~ ~ 12 2 1\\\"}}",Text3:"{\\\"text\\\":\\\"\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"\\\"}}",Text4:"{\\\"text\\\":\\\"\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"\\\"}}"}},{id:MinecartCommandBlock,Command:"/tellraw @a [\"\",{\"text\":\"Portal gun in vanilla minecraft v 1.0 by GYGY. Click on the recipes and explenation sign to get started.\",\"color\":\"aqua\"}]"},{id:MinecartCommandBlock,Command:"/tellraw @a [\"\",{\"text\":\"----------------------------------------------------\",\"color\":\"gold\"}]"},{id:MinecartCommandBlock,Command:"/tellraw @a [\"\",{\"text\":\"Don't spam this command as your own one, and if you are a youtuber credit me and leave a link to my channel.\",\"color\":\"aqua\"}]"},{id:MinecartCommandBlock,Command:"/tellraw @a [\"\",{\"text\":\"----------------------------------------------------\",\"color\":\"gold\"}]"},{id:MinecartCommandBlock,Command:"/tellraw @a [\"\",{\"text\":\"Remember also to take a look of my channel:\",\"color\":\"aqua\"},{\"text\":\" My channel\",\"color\":\"dark_aqua\",\"clickEvent\":{\"action\":\"open_url\",\"value\":\"https://www.youtube.com/channel/UC3_Gm-pfskCh2bnzcekR0ow\"}}]"},{id:MinecartCommandBlock,Command:"/tellraw @a [\"\",{\"text\":\"----------------------------------------------------\",\"color\":\"gold\"}]"},{id:MinecartCommandBlock,Command:setblock ~1 ~-1 ~ wall_sign 4 replace {Text1:"{\\\"text\\\":\\\"Explenation\\\",\\\"color\\\":\\\"dark_blue\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"/tellraw @a [\\\\\\\"\\\\\\\",{\\\\\\\"text\\\\\\\":\\\\\\\"To craft two portals drop 8x obsidian and 8x ender pearls. You can spawn three different portals at the same time. To remove a portal, mine all the blocks around its base. Also remember to take a look of my channel: \\\\\\\",\\\\\\\"color\\\\\\\":\\\\\\\"gold\\\\\\\"},{\\\\\\\"text\\\\\\\":\\\\\\\"My channel\\\\\\\",\\\\\\\"color\\\\\\\":\\\\\\\"dark_aqua\\\\\\\",\\\\\\\"clickEvent\\\\\\\":{\\\\\\\"action\\\\\\\":\\\\\\\"open_url\\\\\\\",\\\\\\\"value\\\\\\\":\\\\\\\"https://www.youtube.com/channel/UC3_Gm-pfskCh2bnzcekR0ow\\\\\\\"}}]\\\"}}",Text2:"{\\\"text\\\":\\\"&\\\",\\\"color\\\":\\\"aqua\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"/execute @a ~ ~ ~ playsound minecraft:entity.experience_orb.pickup voice @a ~ ~ ~ 12 1 1\\\"}}",Text3:"{\\\"text\\\":\\\"Recipes\\\",\\\"color\\\":\\\"dark_blue\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"2\\\"}}",Text4:"{\\\"text\\\":\\\"\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"3\\\"}}"}},{id:MinecartCommandBlock,Command:setblock ~11 ~-1 ~ wall_sign 5 replace {Text1:"{\\\"text\\\":\\\"Change\\\",\\\"color\\\":\\\"gold\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"/fill ~-1 ~2 ~2 ~-9 ~-2 ~-2 stained_hardened_clay 15 replace obsidian\\\"}}",Text2:"{\\\"text\\\":\\\"machine's\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"\\\"}}",Text3:"{\\\"text\\\":\\\"style\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"\\\"}}",Text4:"{\\\"text\\\":\\\"\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"\\\"}}"}},{id:MinecartCommandBlock,Command:scoreboard objectives add pori dummy},{id:MinecartCommandBlock,Command:scoreboard objectives add porc dummy},{id:MinecartCommandBlock,Command:scoreboard objectives add porp dummy},{id:MinecartCommandBlock,Command:setblock ~3 ~-2 ~-1 repeating_command_block 5 replace {auto:1b,Command:"/execute @a[score_porp=5] ~ ~ ~ execute @a[ry=-45,rym=-134] ~ ~ ~ execute @e[type=Endermite,name=portalgun] ~ ~ ~ summon ArmorStand ~ ~ ~ {NoGravity:1b,Invisible:1b,CustomName:\\\"portal1\\\",ArmorItems:[{},{},{id:\\\"minecraft:stone\\\"},{}],Rotation:[0:90.0f,1:0.0f]}"}},{id:MinecartCommandBlock,Command:setblock ~4 ~-2 ~-1 chain_command_block 5 replace {auto:1b,Command:"/execute @a[score_porp=5] ~ ~ ~ execute @a[ry=134,rym=45] ~ ~ ~ execute @e[type=Endermite,name=portalgun] ~ ~ ~ summon ArmorStand ~ ~ ~ {NoGravity:1b,Invisible:1b,CustomName:\\\"portal1\\\",ArmorItems:[{},{},{id:\\\"minecraft:stone\\\"},{}],Rotation:[0:270.0f,1:0.0f]}
"}},{id:MinecartCommandBlock,Command:setblock ~5 ~-2 ~-1 chain_command_block 5 replace {auto:1b,Command:"/execute @a[score_porp=5] ~ ~ ~ execute @a[ry=-135,rym=135] ~ ~ ~ execute @e[type=Endermite,name=portalgun] ~ ~ ~ summon ArmorStand ~ ~ ~ {NoGravity:1b,Invisible:1b,CustomName:\\\"portal1\\\",ArmorItems:[{},{},{id:\\\"minecraft:grass\\\"},{}]}"}},{id:MinecartCommandBlock,Command:setblock ~6 ~-2 ~-1 chain_command_block 5 replace {auto:1b,Command:"/execute @a[score_porp=5] ~ ~ ~ execute @a[ry=44,rym=-34] ~ ~ ~ execute @e[type=Endermite,name=portalgun] ~ ~ ~ summon ArmorStand ~ ~ ~ {NoGravity:1b,Invisible:1b,CustomName:\\\"portal1\\\",ArmorItems:[{},{},{id:\\\"minecraft:grass\\\"},{}],Rotation:[0:180.0f,1:0.0f]}"}},{id:MinecartCommandBlock,Command:setblock ~7 ~-2 ~-1 chain_command_block 5 replace {auto:1b,Command:"/scoreboard players set @e[type=ArmorStand,name=portal1] porc 1 {ArmorItems:[{},{},{id:\\\"minecraft:stone\\\"},{}]}"}},{id:MinecartCommandBlock,Command:setblock ~8 ~-2 ~-1 chain_command_block 5 replace {auto:1b,Command:"/scoreboard players set @e[type=ArmorStand,name=portal1] porc 2 {ArmorItems:[{},{},{id:\\\"minecraft:grass\\\"},{}]}"}},{id:MinecartCommandBlock,Command:setblock ~9 ~-2 ~-1 chain_command_block 3 replace {auto:1b,Command:"/execute @e[type=ArmorStand,name=portal1,score_porc_min=1,score_porc=1] ~ ~ ~ particle dripWater ~ ~1 ~ 0 0.5 0.2 0 10 force @a 9"}},{id:MinecartCommandBlock,Command:setblock ~9 ~-2 ~ chain_command_block 4 replace {auto:1b,Command:"/execute @e[type=ArmorStand,name=portal1,score_porc_min=2,score_porc=2] ~ ~ ~ particle dripWater ~ ~1 ~ 0.2 0.5 0 0 10 force @a 9"}},{id:MinecartCommandBlock,Command:setblock ~8 ~-2 ~ chain_command_block 4 replace {auto:1b,Command:"/execute @e[type=!ArmorStand] ~ ~ ~ execute @e[type=ArmorStand,name=portal1,score_porc_min=1,score_porc=2,r=1] ~ ~ ~ tp @e[type=!ArmorStand,r=1,score_porc_min=15] @r[type=ArmorStand,name=portal1,score_porc_min=1,score_porc=2,rm=2]"}},{id:MinecartCommandBlock,Command:setblock ~7 ~-2 ~ chain_command_block 12 replace {auto:1b,Command:"/execute @e[type=ArmorStand,name=portal1] ~ ~ ~ scoreboard players set @e[type=!ArmorStand,score_porc_min=15] porc 0"}},{id:MinecartCommandBlock,Command:setblock ~6 ~-2 ~ chain_command_block 12 replace {auto:1b,Command:"/execute @e[type=ArmorStand,name=portal1] ~ ~ ~ playsound minecraft:entity.endermen.teleport voice @a ~ ~ ~ 12"}},{id:MinecartCommandBlock,Command:setblock ~5 ~-2 ~ chain_command_block 4 replace {auto:1b,Command:"/execute @e[type=ArmorStand,name=portal1] ~ ~ ~ scoreboard players add @e[type=!ArmorStand,r=1] porc 1"}},{id:MinecartCommandBlock,Command:setblock ~4 ~-2 ~ chain_command_block 4 replace {auto:1b,Command:"/entitydata @e[type=ArmorStand,name=portal1,score_porc_min=1,score_porc=1] {ArmorItems:[{},{},{id:\\\"minecraft:stone\\\"},{id:\\\"minecraft:dye\\\",Damage:4s}]}"}},{id:MinecartCommandBlock,Command:setblock ~3 ~-2 ~ chain_command_block 3 replace {auto:1b,Command:"/entitydata @e[type=ArmorStand,name=portal1,score_porc_min=2,score_porc=2] {ArmorItems:[{},{},{id:\\\"minecraft:grass\\\"},{id:\\\"minecraft:dye\\\",Damage:4s}]}"}},{id:MinecartCommandBlock,Command:setblock ~3 ~-2 ~1 chain_command_block 5 replace {auto:1b,Command:"/scoreboard players set @a porp 0"}},{id:MinecartCommandBlock,Command:setblock ~4 ~-2 ~1 chain_command_block 5 replace {auto:1b,Command:"/execute @e[type=ArmorStand,name=portal1] ~ ~ ~ scoreboard players add @a porp 1"}},{id:MinecartCommandBlock,Command:setblock ~5 ~-2 ~1 chain_command_block 5 replace {auto:1b,Command:"/execute @e[type=Endermite,name=portalgun] ~ ~ ~ execute @a[score_porp_min=3,score_porp=4] ~ ~ ~ entitydata @e[type=ArmorStand,name=portal1,c=1,score_porc_min=1,score_porc=1,r=5] {ArmorItems:[{},{},{id:\\\"minecraft:dirt\\\"},{id:\\\"minecraft:dye\\\",Damage:10s}]}"}},{id:MinecartCommandBlock,Command:setblock ~6 ~-2 ~1 chain_command_block 5 replace {auto:1b,Command:"/execute @e[type=Endermite,name=portalgun] ~ ~ ~ execute @a[score_porp_min=3,score_porp=4] ~ ~ ~ entitydata @e[type=ArmorStand,name=portal1,c=1,score_porc_min=2,score_porc=2,r=5] {ArmorItems:[{},{},{id:\\\"minecraft:cobblestone\\\"},{id:\\\"minecraft:dye\\\",Damage:10s}]}"}},{id:MinecartCommandBlock,Command:setblock ~7 ~-2 ~1 chain_command_block 5 replace {auto:1b,Command:"/scoreboard players set @e[type=ArmorStand,name=portal1] porc 3 {ArmorItems:[{},{},{id:\\\"minecraft:dirt\\\"},{}]}"}},{id:MinecartCommandBlock,Command:setblock ~8 ~-2 ~1 chain_command_block 5 replace {auto:1b,Command:"/scoreboard players set @e[type=Item] pori 4 {Item:{Count:2b,id:\\\"minecraft:spawn_egg\\\",tag:{ench:[],EntityTag:{id:Endermite,CustomName:\\\"portalgun\\\"},display:{Name:\\\"Portal\\\",Lore:[From GYGY's portal gun custom mod]}}}}"}},{id:MinecartCommandBlock,Command:setblock ~9 ~-2 ~1 chain_command_block 1 replace {auto:1b,Command:"/scoreboard players set @e[type=ArmorStand,name=portal1] porc 4 {ArmorItems:[{},{},{id:\\\"minecraft:cobblestone\\\"},{}]}"}},{id:MinecartCommandBlock,Command:setblock ~9 ~-1 ~1 chain_command_block 4 replace {auto:1b,Command:"/execute @e[type=ArmorStand,name=portal1,score_porc_min=3,score_porc=3] ~ ~ ~ particle dripLava ~ ~1 ~ 0 0.5 0.2 0 10 force @a 9"}},{id:MinecartCommandBlock,Command:setblock ~8 ~-1 ~1 chain_command_block 4 replace {auto:1b,Command:"/execute @e[type=ArmorStand,name=portal1,score_porc_min=4,score_porc=4] ~ ~ ~ particle dripLava ~ ~1 ~ 0.2 0.5 0 0 10 force @a 9"}},{id:MinecartCommandBlock,Command:setblock ~7 ~-1 ~1 chain_command_block 4 replace {auto:1b,Command:"/execute @e[type=!ArmorStand] ~ ~ ~ execute @e[type=ArmorStand,name=portal1,score_porc_min=3,score_porc=4,r=1] ~ ~ ~ tp @e[type=!ArmorStand,r=1,score_porc_min=15] @r[type=ArmorStand,name=portal1,score_porc_min=3,score_porc=4,rm=2]"}},{id:MinecartCommandBlock,Command:setblock ~6 ~-1 ~1 chain_command_block 12 replace {auto:1b,Command:"/execute @e[type=ArmorStand,name=portal1] ~ ~ ~ scoreboard players set @e[type=!ArmorStand,score_porc_min=15] porc 0"}},{id:MinecartCommandBlock,Command:setblock ~5 ~-1 ~1 chain_command_block 12 replace {auto:1b,Command:"/execute @e[type=ArmorStand,name=portal1] ~ ~ ~ playsound minecraft:entity.endermen.teleport voice @a ~ ~ ~ 12"}},{id:MinecartCommandBlock,Command:setblock ~4 ~-1 ~1 chain_command_block 4 replace {auto:1b,Command:"/execute @e[type=Endermite,name=portalgun] ~ ~ ~ execute @a[score_porp_min=5,score_porp=6] ~ ~ ~ entitydata @e[type=ArmorStand,name=portal1,c=1,score_porc_min=1,score_porc=1,r=5] {ArmorItems:[{},{},{id:\\\"minecraft:planks\\\"},{id:\\\"minecraft:dye\\\",Damage:11s}]}"}},{id:MinecartCommandBlock,Command:setblock ~3 ~-1 ~1 chain_command_block 2 replace {auto:1b,Command:"/execute @e[type=Endermite,name=portalgun] ~ ~ ~ execute @a[score_porp_min=5,score_porp=6] ~ ~ ~ entitydata @e[type=ArmorStand,name=portal1,c=1,score_porc_min=2,score_porc=2,r=5] {ArmorItems:[{},{},{id:\\\"minecraft:bedrock\\\"},{id:\\\"minecraft:dye\\\",Damage:11s}]}"}},{id:MinecartCommandBlock,Command:setblock ~4 ~-1 ~ chain_command_block 5 replace {auto:1b,Command:"/execute @e[type=ArmorStand,name=portal1,score_porc_min=5,score_porc=5] ~ ~ ~ particle dripWater ~ ~1 ~ 0 0.5 0.2 0 10 force @a 9"}},{id:MinecartCommandBlock,Command:setblock ~3 ~-1 ~ chain_command_block 5 replace {auto:1b,Command:"/execute @e[type=ArmorStand,name=portal1,score_porc_min=6,score_porc=6] ~ ~ ~ particle dripWater ~ ~1 ~ 0.2 0.5 0 0 10 force @a 9"}},{id:MinecartCommandBlock,Command:setblock ~5 ~-1 ~ chain_command_block 5 replace {auto:1b,Command:"/execute @e[type=!ArmorStand] ~ ~ ~ execute @e[type=ArmorStand,name=portal1,score_porc_min=5,score_porc=6,r=1] ~ ~ ~ tp @e[type=!ArmorStand,r=1,score_porc_min=15] @r[type=ArmorStand,name=portal1,score_porc_min=5,score_porc=6,rm=2]
"}},{id:MinecartCommandBlock,Command:setblock ~6 ~-1 ~ chain_command_block 13 replace {auto:1b,Command:"/execute @e[type=ArmorStand,name=portal1] ~ ~ ~ scoreboard players set @e[type=!ArmorStand,score_porc_min=15] porc 0"}},{id:MinecartCommandBlock,Command:setblock ~7 ~-1 ~ chain_command_block 13 replace {auto:1b,Command:"/execute @e[type=ArmorStand,name=portal1] ~ ~ ~ playsound minecraft:entity.endermen.teleport voice @a ~ ~ ~ 12"}},{id:MinecartCommandBlock,Command:setblock ~8 ~-1 ~ chain_command_block 5 replace {auto:1b,Command:"/scoreboard players set @e[type=ArmorStand,name=portal1] porc 5 {ArmorItems:[{},{},{id:\\\"minecraft:planks\\\"},{}]}"}},{id:MinecartCommandBlock,Command:setblock ~9 ~-1 ~ chain_command_block 2 replace {auto:1b,Command:"/scoreboard players set @e[type=ArmorStand,name=portal1] porc 6 {ArmorItems:[{},{},{id:\\\"minecraft:bedrock\\\"},{}]}"}},{id:MinecartCommandBlock,Command:setblock ~9 ~-1 ~-1 chain_command_block 4 replace {auto:1b,Command:"/kill @e[type=Endermite,name=portalgun]"}},{id:MinecartCommandBlock,Command:setblock ~8 ~-1 ~-1 chain_command_block 4 replace {auto:1b,Command:"/scoreboard players set @e[score_porc_min=31] porc 0"}},{id:MinecartCommandBlock,Command:setblock ~7 ~-1 ~-1 chain_command_block 4 replace {auto:1b,Command:"/execute @e[type=ArmorStand,name=portal1,score_porc_min=1,score_porc=2] ~ ~ ~ detect ~1 ~ ~ air 0 execute @e[type=ArmorStand,name=portal1,score_porc_min=1,score_porc=2,rm=2] ~ ~ ~ execute @e[type=ArmorStand,name=portal1,score_porc_min=1,score_porc=2,r=0] ~ ~ ~ detect ~-1 ~ ~ air 0 execute @e[type=ArmorStand,name=portal1,score_porc_min=1,score_porc=2,r=0] ~ ~ ~ detect ~ ~ ~1 air 0 execute @e[type=ArmorStand,name=portal1,score_porc_min=1,score_porc=2,r=0] ~ ~ ~ detect ~ ~ ~-1 air 0 execute @e[type=ArmorStand,name=portal1,score_porc_min=1,score_porc=2] ~ ~ ~ detect ~ ~-1 ~ air 0 summon Item ~ ~ ~ {Item:{id:\\\"minecraft:dirt\\\",Damage:15s},Motion:[0.0,0.2,0.0]}"}},{id:MinecartCommandBlock,Command:setblock ~6 ~-1 ~-1 chain_command_block 12 replace {auto:1b,Command:"/kill @e[type=ArmorStand,name=portal1,score_porc_min=1,score_porc=2]"}},{id:MinecartCommandBlock,Command:setblock ~5 ~-1 ~-1 chain_command_block 12 replace {auto:1b,Command:"/scoreboard players remove @e[type=ArmorStand,name=portal1] porc 2"}},{id:MinecartCommandBlock,Command:setblock ~4 ~-1 ~-1 chain_command_block 4 replace {auto:1b,Command:"/entitydata @e[type=Item,score_pori_min=1,score_pori=1] {Item:{Count:1b,id:\\\"minecraft:spawn_egg\\\",tag:{ench:[],EntityTag:{id:Endermite,CustomName:\\\"portalgun\\\"},display:{Name:\\\"Portal\\\",Lore:[From GYGY's portal gun custom mod]}}}}"}},{id:MinecartCommandBlock,Command:setblock ~3 ~-1 ~-1 chain_command_block 1 replace {auto:1b,Command:"/execute @e[type=Item,score_pori_min=1,score_pori=1] ~ ~ ~ kill @e[type=Item,score_pori_min=1,score_pori=1,rm=1]"}},{id:MinecartCommandBlock,Command:setblock ~3 ~ ~-1 chain_command_block 5 replace {auto:1b,Command:"/scoreboard players set @e[type=Item] pori 1 {Item:{id:\\\"minecraft:dirt\\\",Damage:15s}}"}},{id:MinecartCommandBlock,Command:setblock ~4 ~ ~-1 chain_command_block 5 replace {auto:1b,Command:"/execute @e[type=ArmorStand,name=portal1,score_porc_min=3,score_porc=4] ~ ~ ~ detect ~1 ~ ~ air 0 execute @e[type=ArmorStand,name=portal1,score_porc_min=3,score_porc=4,rm=2] ~ ~ ~ execute @e[type=ArmorStand,name=portal1,score_porc_min=3,score_porc=4,r=0] ~ ~ ~ detect ~-1 ~ ~ air 0 execute @e[type=ArmorStand,name=portal1,score_porc_min=3,score_porc=4,r=0] ~ ~ ~ detect ~ ~ ~1 air 0 execute @e[type=ArmorStand,name=portal1,score_porc_min=3,score_porc=4,r=0] ~ ~ ~ detect ~ ~ ~-1 air 0 execute @e[type=ArmorStand,name=portal1,score_porc_min=3,score_porc=4] ~ ~ ~ detect ~ ~-1 ~ air 0 summon Item ~ ~ ~ {Item:{id:\\\"minecraft:dirt\\\",Damage:15s},Motion:[0.0,0.2,0.0]}"}},{id:MinecartCommandBlock,Command:setblock ~5 ~ ~-1 chain_command_block 13 replace {auto:1b,Command:"/kill @e[type=ArmorStand,name=portal1,score_porc_min=3,score_porc=4]"}},{id:MinecartCommandBlock,Command:setblock ~6 ~ ~-1 chain_command_block 13 replace {auto:1b,Command:"/scoreboard players remove @e[type=ArmorStand,name=portal1,score_porc_min=5] porc 2"}},{id:MinecartCommandBlock,Command:setblock ~7 ~ ~-1 chain_command_block 5 replace {auto:1b,Command:"/entitydata @e[type=ArmorStand,name=portal1,score_porc_min=3,score_porc=3] {ArmorItems:[{},{},{id:\\\"minecraft:dirt\\\"},{id:\\\"minecraft:dye\\\",Damage:10s}]}"}},{id:MinecartCommandBlock,Command:setblock ~8 ~ ~-1 chain_command_block 5 replace {auto:1b,Command:"/entitydata @e[type=ArmorStand,name=portal1,score_porc_min=4,score_porc=4] {ArmorItems:[{},{},{id:\\\"minecraft:cobblestone\\\"},{id:\\\"minecraft:dye\\\",Damage:10s}]}"}},{id:MinecartCommandBlock,Command:setblock ~9 ~ ~ chain_command_block 4 replace {auto:1b,Command:"/execute @e[type=ArmorStand,name=portal1,score_porc_min=5,score_porc=6] ~ ~ ~ detect ~1 ~ ~ air 0 execute @e[type=ArmorStand,name=portal1,score_porc_min=5,score_porc=6,rm=2] ~ ~ ~ execute @e[type=ArmorStand,name=portal1,score_porc_min=5,score_porc=6,r=0] ~ ~ ~ detect ~-1 ~ ~ air 0 execute @e[type=ArmorStand,name=portal1,score_porc_min=5,score_porc=6,r=0] ~ ~ ~ detect ~ ~ ~1 air 0 execute @e[type=ArmorStand,name=portal1,score_porc_min=5,score_porc=6,r=0] ~ ~ ~ detect ~ ~ ~-1 air 0 execute @e[type=ArmorStand,name=portal1,score_porc_min=5,score_porc=6] ~ ~ ~ detect ~ ~-1 ~ air 0 summon Item ~ ~ ~ {Item:{id:\\\"minecraft:dirt\\\",Damage:15s},Motion:[0.0,0.2,0.0]}"}},{id:MinecartCommandBlock,Command:setblock ~9 ~ ~-1 chain_command_block 3 replace {auto:1b,Command:"nothing"}},{id:MinecartCommandBlock,Command:setblock ~8 ~ ~ chain_command_block 12 replace {auto:1b,Command:"/kill @e[type=ArmorStand,name=portal1,score_porc_min=5,score_porc=6]"}},{id:MinecartCommandBlock,Command:setblock ~7 ~ ~ chain_command_block 4 replace {auto:1b,Command:"/scoreboard players set @e[type=Item] pori 2 {Item:{Count:8b,id:\\\"minecraft:obsidian\\\"}}"}},{id:MinecartCommandBlock,Command:setblock ~6 ~ ~ chain_command_block 4 replace {auto:1b,Command:"/scoreboard players set @e[type=Item] pori 3 {Item:{Count:8b,id:\\\"minecraft:ender_pearl\\\"}}"}},{id:MinecartCommandBlock,Command:setblock ~5 ~ ~ chain_command_block 4 replace {auto:1b,Command:"/execute @e[type=Item,score_pori_min=2,score_pori=2] ~ ~ ~ execute @e[type=Item,score_pori_min=3,score_pori=3,r=1] ~ ~ ~ summon Item ~ ~ ~ {Item:{Count:2b,id:\\\"minecraft:spawn_egg\\\",tag:{ench:[],EntityTag:{id:Endermite,CustomName:\\\"portalgun\\\"},display:{Name:\\\"Portal\\\",Lore:[From GYGY's portal gun custom mod]}}},Motion:[0.0,0.3,0.0]}"}},{id:MinecartCommandBlock,Command:setblock ~4 ~ ~ chain_command_block 12 replace {auto:1b,Command:"/execute @e[type=Item,score_pori_min=3,score_pori=3] ~ ~ ~ summon FireworksRocketEntity ~ ~ ~ {LifeTime:0,Motion:[0.00,0.00,0.00],FireworksItem:{id:fireworks,Count:1,tag:{Fireworks:{Explosions:[{Type:0,Flicker:0,Trail:0,Colors:[4871935],FadeColors:[16777215]},{Type:0,Flicker:0,Trail:0,Colors:[16755530],FadeColors:[16777215]},{Type:0,Flicker:0,Trail:0,Colors:[16775508],FadeColors:[16777215]}]}}}}"}},{id:MinecartCommandBlock,Command:setblock ~3 ~ ~ chain_command_block 12 replace {auto:1b,Command:"/kill @e[type=Item,score_pori_min=2,score_pori=3]"}},{id:MinecartCommandBlock,Command:setblock ~4 ~ ~1 command_block 5 replace {auto:0b,Command:"/scoreboard objectives remove pori"}},{id:MinecartCommandBlock,Command:setblock ~5 ~ ~1 chain_command_block 5 replace {auto:1b,Command:"/scoreboard objectives remove porc"}},{id:MinecartCommandBlock,Command:setblock ~6 ~ ~1 chain_command_block 5 replace {auto:1b,Command:"/scoreboard objectives remove porp"}},{id:MinecartCommandBlock,Command:setblock ~7 ~ ~1 chain_command_block 5 replace {auto:1b,Command:"/fill ~-6 ~1 ~-3 ~4 ~-3 ~1 air"}},{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]}]}]}]}

Super accurate gun in vanilla minecraft | no mods-one cm edition

Super accurate gun in vanilla minecraft | no mods-one cm edition

Simple steps to install this command in your minecraft world
1 copy this command (mac: cmd+c/windows: ctrl+c)
2 open in-game chat (press T)
3 write /give @p minecraft:command_block
4 place the command block
5 go on the text section
6 paste the command (mac: cmd+v/windows: ctrl+v)

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:scoreboard objectives add shot stat.useItem.minecraft.carrot_on_a_stick},{id:MinecartCommandBlock,Command:setblock ~2 ~-3 ~ repeating_command_block 1 replace {auto:1,Command:"/execute @a[score_shot_min=1,score_shot=1] ~ ~ ~ summon ArmorStand ~ ~ ~ {ArmorItems:[{},{},{id:elytra},{}],CustomName:\\\"bullet\\\",Invisible:1b}"}},{id:MinecartCommandBlock,Command:setblock ~2 ~-2 ~ chain_command_block 9 replace {auto:1,Command:"/execute @p[score_shot_min=1] ~ ~ ~ tp @e[type=ArmorStand,name=bullet,r=0] @p[score_shot_min=1]"}},{id:MinecartCommandBlock,Command:setblock ~2 ~-1 ~ chain_command_block 9 replace {auto:1,Command:"/scoreboard players set @a[score_shot_min=1,score_shot=1] shot 0"}},{id:MinecartCommandBlock,Command:setblock ~2 ~ ~ chain_command_block 9 replace {auto:1,Command:"/execute @a ~ ~ ~ execute @e[type=ArmorStand,name=bullet,r=0] ~ ~ ~ tp @e[type=ArmorStand,name=bullet,r=0] ~ ~5 ~"}},{id:MinecartCommandBlock,Command:setblock ~2 ~1 ~ chain_command_block 1 replace {auto:1,Command:"/entitydata @e[type=ArmorStand,name=bullet] {FallFlying:1b}"}},{id:MinecartCommandBlock,Command:setblock ~2 ~2 ~ chain_command_block 1 replace {auto:1,Command:"/scoreboard players set @e[type=ArmorStand,name=bullet] shot 1 {OnGround:1b}"}},{id:MinecartCommandBlock,Command:setblock ~2 ~3 ~ chain_command_block 1 replace {auto:1,Command:"/execute @e[type=ArmorStand,name=bullet] ~ ~ ~ summon FallingSand ~ ~ ~ {TileID:51,Time:1b}"}},{id:MinecartCommandBlock,Command:setblock ~2 ~4 ~ chain_command_block 1 replace {auto:1,Command:"/execute @e[type=ArmorStand,name=bullet,score_shot_min=1] ~ ~ ~ summon Creeper ~ ~ ~ {ExplosionRadius:10b,Ignited:1b,Fuse:0s}"}},{id:MinecartCommandBlock,Command:setblock ~2 ~5 ~ chain_command_block 9 replace {auto:1,Command:"/execute @e[type=Creeper] ~ ~ ~ kill @e[type=ArmorStand,name=bullet,r=1]"}},{id:MinecartCommandBlock,Command:setblock ~3 ~-1 ~ wall_sign 5 replace {Text1:"{\\\"text\\\":\\\"My channel\\\",\\\"color\\\":\\\"dark_blue\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"/tellraw @a [\\\\\\\"\\\\\\\",{\\\\\\\"text\\\\\\\":\\\\\\\"Remember to take a look of my channel: \\\\\\\",\\\\\\\"color\\\\\\\":\\\\\\\"gold\\\\\\\"},{\\\\\\\"text\\\\\\\":\\\\\\\"My channel\\\\\\\",\\\\\\\"color\\\\\\\":\\\\\\\"dark_aqua\\\\\\\",\\\\\\\"clickEvent\\\\\\\":{\\\\\\\"action\\\\\\\":\\\\\\\"open_url\\\\\\\",\\\\\\\"value\\\\\\\":\\\\\\\"https://www.youtube.com/channel/UC3_Gm-pfskCh2bnzcekR0ow\\\\\\\"}}]\\\"}}",Text2:"{\\\"text\\\":\\\"\\\",\\\"color\\\":\\\"aqua\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"/execute @a ~ ~ ~ playsound minecraft:entity.experience_orb.pickup voice @a ~ ~ ~ 12 1 1\\\"}}",Text3:"{\\\"text\\\":\\\"\\\",\\\"color\\\":\\\"dark_blue\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"2\\\"}}",Text4:"{\\\"text\\\":\\\"\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"3\\\"}}"}},{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]}]}]}]}

Super accurate gun in vanilla minecraft | no mods

Super accurate gun in vanilla minecraft | no mods

/scoreboard objectives add shot stat.useItem.minecraft.carrot_on_a_stick

Adds a score that increases when right-clicking a carrot on a stick

/execute @a[score_shot_min=1,score_shot=1] ~ ~ ~ summon ArmorStand ~ ~ ~ {ArmorItems:[{},{},{id:elytra},{}],CustomName:"bullet",Invisible:1b}

Executes a player with the score setted at 1 the action to summon an invisible armor stand that is wearing an elytra and is named bullet

/execute @p[score_shot_min=1] ~ ~ ~ tp @e[type=ArmorStand,name=bullet,r=0] @p[score_shot_min=1]

Teleports an armor stand named bullet to a player with the score settled at one. This is used to detect player's rotation.

/scoreboard players set @a[score_shot_min=1,score_shot=1] shot 0

Resets the score of all the players with the score settled at one.

/execute @a ~ ~ ~ execute @e[type=ArmorStand,name=bullet,r=0] ~ ~ ~ tp @e[type=ArmorStand,name=bullet,r=0] ~ ~5 ~

Teleports an armor stand five block up. If you want it to go farther, just increase the number

/entitydata @e[type=ArmorStand,name=bullet] {FallFlying:1b}

Changes the data of all the armor stands called bullet at flying.

/scoreboard players set @e[type=ArmorStand,name=bullet] shot 1 {OnGround:1b}

Sets at one the score of all the "bullets" which are on the ground

/execute @e[type=ArmorStand,name=bullet] ~ ~ ~ summon FallingSand ~ ~ ~ {TileID:51,Time:1b}

Executes all the bullets the action to summon a falling sand with fire id. To know items' id press f3+h

/execute @e[type=ArmorStand,name=bullet,score_shot_min=1] ~ ~ ~ summon Creeper ~ ~ ~ {ExplosionRadius:10b,Ignited:1b,Fuse:0s}

Executes all the "bullets" with the score settled at one the action to summon a creeper that explodes. If you want a bigger/smaller explosion change the "10b" value

/execute @e[type=Creeper] ~ ~ ~ kill @e[type=ArmorStand,name=bullet,r=1]

Executes all the creepers the action to kill all the "bullets in the range of a block"

Toggle gravity in minecraft vanilla | no mods-one cm edition

Toggle gravity in minecraft vanilla | no mods-one cm edition

Simple steps to install this command in your minecraft world
1 copy this command (mac: cmd+c/windows: ctrl+c)
2 open in-game chat (press T)
3 write /give @p minecraft:command_block
4 place the command block
5 go on the text section
6 paste the command (mac: cmd+v/windows: ctrl+v)

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:scoreboard objectives add i dummy},{id:MinecartCommandBlock,Command:setblock ~1 ~-3 ~ repeating_command_block 1 replace {auto:1,Command:"/scoreboard players add @e[type=!Player] i 1"}},{id:MinecartCommandBlock,Command:setblock ~1 ~-2 ~ chain_command_block 1 replace {auto:1,Command:"/entitydata @e[type=!Player,score_i_min=1,score_i=1] {NoGravity:1b}"}},{id:MinecartCommandBlock,Command:setblock ~1 ~-1 ~ chain_command_block 1 replace {auto:1,Command:"/entitydata @e[type=FallingSand] {Time:1b}"}},{id:MinecartCommandBlock,Command:setblock ~2 ~-1 ~ wall_sign 5 replace {Text1:"{\\\"text\\\":\\\"My channel\\\",\\\"color\\\":\\\"dark_blue\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"/tellraw @a [\\\\\\\"\\\\\\\",{\\\\\\\"text\\\\\\\":\\\\\\\"Remember to take a look of my channel: \\\\\\\",\\\\\\\"color\\\\\\\":\\\\\\\"gold\\\\\\\"},{\\\\\\\"text\\\\\\\":\\\\\\\"My channel\\\\\\\",\\\\\\\"color\\\\\\\":\\\\\\\"dark_aqua\\\\\\\",\\\\\\\"clickEvent\\\\\\\":{\\\\\\\"action\\\\\\\":\\\\\\\"open_url\\\\\\\",\\\\\\\"value\\\\\\\":\\\\\\\"https://www.youtube.com/channel/UC3_Gm-pfskCh2bnzcekR0ow\\\\\\\"}}]\\\"}}",Text2:"{\\\"text\\\":\\\"\\\",\\\"color\\\":\\\"aqua\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"/execute @a ~ ~ ~ playsound minecraft:entity.experience_orb.pickup voice @a ~ ~ ~ 12 1 1\\\"}}",Text3:"{\\\"text\\\":\\\"\\\",\\\"color\\\":\\\"dark_blue\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"2\\\"}}",Text4:"{\\\"text\\\":\\\"\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"3\\\"}}"}},{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]}]}]}]}

Toggle gravity in minecraft vanilla| no mods

Toggle gravity in minecraft vanilla| no mods

Laggy version

/entitydata @e[type=!Player] {NoGravity:1b,Time:1b}

Changes the data of all the entities to no gravity and 1 of time (to avoid falling sands' destruction)

No laggy version

/scoreboard objectives add i dummy

Adds a score called i

/scoreboard players add @e[type=!Player] i 1

Adds to all the entities' (except for players) score 1

/entitydata @e[type=!Player,score_i_min=1,score_i=1] {NoGravity:1b}

Changes at no gravity the data of all the entities with the score setted at one

/entitydata @e[type=FallingSand] {Time:1b}

Changes the data of all the falling sands to 1 of time, so they don't destroy

Chests with random loots | loot tables

Loots tables are used in minecraft to generate loots in dungeons, villages and spawn.
Loots inside chests are chosen from a json script, inside some folders in the minecaft folder.
This command works in all the kinds of containers, like droppers, hoppers, ...

command usage:
/setblock 'x' 'y' 'z' block data mode {LootTable:"minecraft:chests/name"}
for example: /setblock ~ ~1 ~ chest 0 replace {LootTable:"minecraft:chests/nether_bridge"}

all loot tables' name
abandoned_mineshaft found in mineshafts
end_city_treasure found in end cities
igloo_chest found in igloos
jungle_temple found in jungle temples' chests
jungle_temple_dispenser found in jungle temples' chests
nether_bridge found in nether fortresses
simple_dungeon found in simple dungeons
spawn_bonus_chest found at spawn
stronghold_corridor found in strongholds' corridors
stronghold_crossing found in strongholds' storage rooms
stronghold_library found in strongholds' libraries
village_blacksmith found in blacsmiths' houses