ENHANCED GAMEPLAY REQUIRED: http://onecmd.com/cmd/enhanced-gameplay! This is an addon for my Enhanced Gameplay command. Features: when you're standing on a sand block and the block above you is a coal block with a furnace on top of it, you'll get infinite glass; when you're standing on a red sand block and the block above you is a coal block with a furnace on top of it, you'll get infinite red glass; when you're standing on a quartz block and the block above you is also a quartz block, you'll get 20 minutes of Strength; when you're standing on end stone and the block above you is also an end stone block, but with an ice block on top of it, you'll get infinite ender pearls; when you're standing on blue ice and the block above you is also blue ice, you'll get infinite snowballs.
How to install
How to import this command into your world
First, you must give yourself a command block (If you are on a server, you must be 'OP'ed, and have access to /gamemode 1)
To get a command block, type
/give @p command_block in the chat.
Once you have a command block, right click it to open it's GUI.
Now, you must copy and paste the command from your browser into the game. Select the entire command from below, then right click and press 'copy'.
Next, go back to your minecraft world, and paste the command you just copied into the command block. There are a few different keys that may be used to do this, depending on your keyboard. The most common ones are 'CTRL + V', 'COMMAND + V', or 'STRG + V'
Finally, you can press done to exit the GUI, and execute the command block by powering it with a redstone block, a lever, or any thing you can get your grubby hands on. Just make sure you don't place it on top of the command block, or the machine will not be installed!
Show source commands
# This user did not upload the source commands!
summon falling_block ~ ~1 ~ {BlockState:{Name:stone},Time:1,Passengers:[{id:falling_block,BlockState:{Name:redstone_block},Time:1,Passengers:[{id:falling_block,BlockState:{Name:activator_rail},Time:1,Passengers:[{id:command_block_minecart,Command:"gamerule commandBlockOutput false"},{id:command_block_minecart,Command:"fill ~2 ~-3 ~-1 ~8 ~-1 ~1 orange_terracotta hollow"},{id:command_block_minecart,Command:"fill ~2 ~-2 ~-1 ~8 ~-2 ~1 blue_stained_glass replace orange_terracotta"},{id:command_block_minecart,Command:"setblock ~1 ~-3 ~ wall_sign[facing=west]{Text1:\"{\\\"text\\\":\\\"\\\"}\",Text2:\"{\\\"text\\\":\\\"Destroy\\\",\\\"color\\\":\\\"dark_red\\\",\\\"bold\\\":true}\",Text3:\"{\\\"text\\\":\\\"Machine\\\",\\\"color\\\":\\\"dark_red\\\",\\\"bold\\\":true}\",Text4:\"{\\\"text\\\":\\\"\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"fill ~ ~ ~-1 ~7 ~2 ~1 air\\\"}}\"}"},{id:command_block_minecart,Command:"setblock ~1 ~-2 ~ wall_sign[facing=west]{Text1:\"{\\\"text\\\":\\\"\\\"}\",Text2:\"{\\\"text\\\":\\\"Made by:\\\",\\\"italic\\\":true}\",Text3:\"{\\\"text\\\":\\\"_CreeperCube\\\",\\\"color\\\":\\\"green\\\",\\\"bold\\\":true}\",Text4:\"{\\\"text\\\":\\\"\\\"}\"}"},{id:command_block_minecart,Command:"setblock ~1 ~-1 ~ wall_sign[facing=west]{Text1:\"{\\\"text\\\":\\\"Another\\\",\\\"italic\\\":true}\",Text2:\"{\\\"text\\\":\\\"addon for\\\",\\\"color\\\":\\\"dark_blue\\\",\\\"italic\\\":true}\",Text3:\"{\\\"text\\\":\\\"Enhanced\\\",\\\"color\\\":\\\"gold\\\",\\\"italic\\\":true,\\\"bold\\\":true,\\\"underlined\\\":true}\",Text4:\"{\\\"text\\\":\\\"Gameplay\\\",\\\"color\\\":\\\"gold\\\",\\\"italic\\\":true,\\\"bold\\\":true,\\\"underlined\\\":true}\"}"},{id:command_block_minecart,Command:"fill ~3 ~-2 ~ ~7 ~-2 ~ chain_command_block[facing=east]"},{id:command_block_minecart,Command:"setblock ~7 ~-2 ~ chain_command_block[facing=south]"},{id:command_block_minecart,Command:"setblock ~3 ~-2 ~ repeating_command_block[facing=east]"},{id:command_block_minecart,Command:"data merge block ~7 ~-2 ~ {auto:1,Command:\"execute as @a at @s if block ~ ~-1 ~ blue_ice run execute as @a at @s if block ~ ~2 ~ blue_ice run give @s snowball\"}"},{id:command_block_minecart,Command:"data merge block ~6 ~-2 ~ {auto:1,Command:\"execute as @a at @s if block ~ ~-1 ~ end_stone run execute as @a at @s if block ~ ~2 ~ end_stone run execute as @a at @s if block ~ ~3 ~ ice run give @s ender_pearl\"}"},{id:command_block_minecart,Command:"data merge block ~5 ~-2 ~ {auto:1,Command:\"execute as @a at @s if block ~ ~-1 ~ quartz_block run execute as @a at @s if block ~ ~2 ~ quartz_block run effect give @s strength 1200 19 true\"}"},{id:command_block_minecart,Command:"data merge block ~4 ~-2 ~ {auto:1,Command:\"execute as @a at @s if block ~ ~-1 ~ red_sand run execute as @a at @s if block ~ ~2 ~ coal_block run execute as @a at @s if block ~ ~3 ~ furnace run give @s red_stained_glass\"}"},{id:command_block_minecart,Command:"data merge block ~3 ~-2 ~ {auto:1,Command:\"execute as @a at @s if block ~ ~-1 ~ sand run execute as @a at @s if block ~ ~2 ~ coal_block run execute as @a at @s if block ~ ~3 ~ furnace run give @s glass\"}"},{id:command_block_minecart,Command:"setblock ~ ~ ~1 command_block{Command:\"fill ~ ~-3 ~-1 ~ ~ ~ air\"}"},{id:command_block_minecart,Command:"setblock ~ ~-1 ~1 redstone_block"},{id:command_block_minecart,Command:"kill @e[type=command_block_minecart,distance=..1]"}]}]}]}