D20 in Minecraft
D20 in Minecraft by PandymitGaming1742204    1
This is a one command so you can roll a D20 dice in Minecraft. It is random every time you roll so use it for whatever reasons you have!
Minecraft 1.12+
6939 characters
More by PandymitGaming
How to install
Comments
Show source commands
summon falling_block ~ ~1 ~ {Block:stone,Time:1,Passengers:[{id:falling_block,Block:redstone_block,Time:1,Passengers:[{id:falling_block,Block:activator_rail,Time:1,Passengers:[{id:commandblock_minecart,Command:"gamerule commandBlockOutput false"},{id:commandblock_minecart,Command:"fill ~2 ~-3 ~-1 ~31 ~-1 ~1 concrete 12 hollow"},{id:commandblock_minecart,Command:"fill ~2 ~-2 ~-1 ~31 ~-2 ~1 stained_glass 12 0 concrete"},{id:commandblock_minecart,Command:"scoreboard objectives add Summon dummy"},{id:commandblock_minecart,Command:"scoreboard objectives add Carrot stat.useItem.minecraft.carrot_on_a_stick"},{id:commandblock_minecart,Command:"setblock ~1 ~-3 ~ wall_sign 4 0 {Text1:\"{\\\"text\\\":\\\"===================================\\\"}\",Text2:\"{\\\"text\\\":\\\"Remove\\\"}\",Text3:\"{\\\"text\\\":\\\"machine\\\"}\",Text4:\"{\\\"text\\\":\\\"===================================\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"fill ~ ~ ~-1 ~30 ~2 ~1 air\\\"}}\"}"},{id:commandblock_minecart,Command:"setblock ~1 ~-2 ~ wall_sign 4 0 {Text1:\"{\\\"text\\\":\\\"===================================\\\"}\",Text2:\"{\\\"text\\\":\\\"D20\\\",\\\"color\\\":\\\"red\\\",\\\"bold\\\":true}\",Text3:\"{\\\"text\\\":\\\"By Pandymit\\\",\\\"color\\\":\\\"dark_red\\\"}\",Text4:\"{\\\"text\\\":\\\"===================================\\\"}\"}"},{id:commandblock_minecart,Command:"fill ~3 ~-2 ~ ~30 ~-2 ~ chain_command_block 5"},{id:commandblock_minecart,Command:"fill ~29 ~-2 ~ ~30 ~-2 ~ chain_command_block 13"},{id:commandblock_minecart,Command:"fill ~6 ~-2 ~ ~27 ~-2 ~ chain_command_block 13"},{id:commandblock_minecart,Command:"fill ~4 ~-2 ~ ~5 ~-2 ~ repeating_command_block 5"},{id:commandblock_minecart,Command:"setblock ~3 ~-2 ~ command_block 5"},{id:commandblock_minecart,Command:"blockdata ~30 ~-2 ~ {auto:1,Command:\"scoreboard players set @a Carrot 0\"}"},{id:commandblock_minecart,Command:"blockdata ~29 ~-2 ~ {auto:1,Command:\"tellraw @a {\\\"text\\\":\\\"\\\",\\\"color\\\":\\\"gold\\\",\\\"extra\\\":[{\\\"selector\\\":\\\"@r[score_Summon_min=1,type=armor_stand]\\\"},{\\\"text\\\":\\\" is the number you rolled.\\\",\\\"color\\\":\\\"dark_gray\\\"}]}\"}"},{id:commandblock_minecart,Command:"blockdata ~28 ~-2 ~ {auto:1,Command:\"testfor @a[score_Carrot_min=1]\"}"},{id:commandblock_minecart,Command:"blockdata ~27 ~-2 ~ {auto:1,Command:\"scoreboard players set @a Summon 0\"}"},{id:commandblock_minecart,Command:"blockdata ~26 ~-2 ~ {auto:1,Command:\"scoreboard players set @e[type=armor_stand] Summon 1\"}"},{id:commandblock_minecart,Command:"blockdata ~25 ~-2 ~ {auto:1,Command:\"summon armor_stand ~ ~1 ~ {CustomName:\\\"20\\\",NoGravity:1b,Invisible:1,Invulnerable:1,DisabledSlots:2039583}\"}"},{id:commandblock_minecart,Command:"blockdata ~24 ~-2 ~ {auto:1,Command:\"summon armor_stand ~ ~1 ~ {CustomName:\\\"19\\\",NoGravity:1b,Invisible:1,Invulnerable:1,DisabledSlots:2039583}\"}"},{id:commandblock_minecart,Command:"blockdata ~23 ~-2 ~ {auto:1,Command:\"summon armor_stand ~ ~1 ~ {CustomName:\\\"18\\\",NoGravity:1b,Invisible:1,Invulnerable:1,DisabledSlots:2039583}\"}"},{id:commandblock_minecart,Command:"blockdata ~22 ~-2 ~ {auto:1,Command:\"summon armor_stand ~ ~1 ~ {CustomName:\\\"17\\\",NoGravity:1b,Invisible:1,Invulnerable:1,DisabledSlots:2039583}\"}"},{id:commandblock_minecart,Command:"blockdata ~21 ~-2 ~ {auto:1,Command:\"summon armor_stand ~ ~1 ~ {CustomName:\\\"16\\\",NoGravity:1b,Invisible:1,Invulnerable:1,DisabledSlots:2039583}\"}"},{id:commandblock_minecart,Command:"blockdata ~20 ~-2 ~ {auto:1,Command:\"summon armor_stand ~ ~1 ~ {CustomName:\\\"15\\\",NoGravity:1b,Invisible:1,Invulnerable:1,DisabledSlots:2039583}\"}"},{id:commandblock_minecart,Command:"blockdata ~19 ~-2 ~ {auto:1,Command:\"summon armor_stand ~ ~1 ~ {CustomName:\\\"14\\\",NoGravity:1b,Invisible:1,Invulnerable:1,DisabledSlots:2039583}\"}"},{id:commandblock_minecart,Command:"blockdata ~18 ~-2 ~ {auto:1,Command:\"summon armor_stand ~ ~1 ~ {CustomName:\\\"13\\\",NoGravity:1b,Invisible:1,Invulnerable:1,DisabledSlots:2039583}\"}"},{id:commandblock_minecart,Command:"blockdata ~17 ~-2 ~ {auto:1,Command:\"summon armor_stand ~ ~1 ~ {CustomName:\\\"12\\\",NoGravity:1b,Invisible:1,Invulnerable:1,DisabledSlots:2039583}\"}"},{id:commandblock_minecart,Command:"blockdata ~16 ~-2 ~ {auto:1,Command:\"summon armor_stand ~ ~1 ~ {CustomName:\\\"11\\\",NoGravity:1b,Invisible:1,Invulnerable:1,DisabledSlots:2039583}\"}"},{id:commandblock_minecart,Command:"blockdata ~15 ~-2 ~ {auto:1,Command:\"summon armor_stand ~ ~1 ~ {CustomName:\\\"10\\\",NoGravity:1b,Invisible:1,Invulnerable:1,DisabledSlots:2039583}\"}"},{id:commandblock_minecart,Command:"blockdata ~14 ~-2 ~ {auto:1,Command:\"summon armor_stand ~ ~1 ~ {CustomName:\\\"9\\\",NoGravity:1b,Invisible:1,Invulnerable:1,DisabledSlots:2039583}\"}"},{id:commandblock_minecart,Command:"blockdata ~13 ~-2 ~ {auto:1,Command:\"summon armor_stand ~ ~1 ~ {CustomName:\\\"8\\\",NoGravity:1b,Invisible:1,Invulnerable:1,DisabledSlots:2039583}\"}"},{id:commandblock_minecart,Command:"blockdata ~12 ~-2 ~ {auto:1,Command:\"summon armor_stand ~ ~1 ~ {CustomName:\\\"7\\\",NoGravity:1b,Invisible:1,Invulnerable:1,DisabledSlots:2039583}\"}"},{id:commandblock_minecart,Command:"blockdata ~11 ~-2 ~ {auto:1,Command:\"summon armor_stand ~ ~1 ~ {CustomName:\\\"6\\\",NoGravity:1b,Invisible:1,Invulnerable:1,DisabledSlots:2039583}\"}"},{id:commandblock_minecart,Command:"blockdata ~10 ~-2 ~ {auto:1,Command:\"summon armor_stand ~ ~1 ~ {CustomName:\\\"5\\\",NoGravity:1b,Invisible:1,Invulnerable:1,DisabledSlots:2039583}\"}"},{id:commandblock_minecart,Command:"blockdata ~9 ~-2 ~ {auto:1,Command:\"summon armor_stand ~ ~1 ~ {CustomName:\\\"4\\\",NoGravity:1b,Invisible:1,Invulnerable:1,DisabledSlots:2039583}\"}"},{id:commandblock_minecart,Command:"blockdata ~8 ~-2 ~ {auto:1,Command:\"summon armor_stand ~ ~1 ~ {CustomName:\\\"3\\\",NoGravity:1b,Invisible:1,Invulnerable:1,DisabledSlots:2039583}\"}"},{id:commandblock_minecart,Command:"blockdata ~7 ~-2 ~ {auto:1,Command:\"summon armor_stand ~ ~1 ~ {CustomName:\\\"2\\\",NoGravity:1b,Invisible:1,Invulnerable:1,DisabledSlots:2039583}\"}"},{id:commandblock_minecart,Command:"blockdata ~6 ~-2 ~ {auto:1,Command:\"summon armor_stand ~ ~1 ~ {CustomName:\\\"1\\\",NoGravity:1b,Invisible:1,Invulnerable:1,DisabledSlots:2039583}\"}"},{id:commandblock_minecart,Command:"blockdata ~5 ~-2 ~ {auto:1,Command:\"testfor @a[score_Summon_min=1]\"}"},{id:commandblock_minecart,Command:"blockdata ~4 ~-2 ~ {auto:1,Command:\"setblock ~-1 ~ ~1 minecraft:redstone_block\"}"},{id:commandblock_minecart,Command:"blockdata ~3 ~-2 ~ {auto:1,Command:\"scoreboard players set @a Summon 1\"}"},{id:commandblock_minecart,Command:"setblock ~ ~ ~1 command_block 0 0 {Command:\"fill ~ ~-3 ~-1 ~ ~ ~ air\"}"},{id:commandblock_minecart,Command:"setblock ~ ~-1 ~1 redstone_block"},{id:commandblock_minecart,Command:"kill @e[type=commandblock_minecart,r=1]"}]}]}]}