Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Loot Crates - Minecraft 1.9 single command block creation
- Description:
- Throw a gold ingot into a cauldron to get a loot crate. The loot crate contains random items. It's like Lucky Blocks, but less.
- Paste this command into a command block and activate it:
- summon FallingSand ~ ~1 ~ {Block:redstone_block,Time:1,Passengers:[{id:FallingSand,Block:activator_rail,Time:1,Passengers:[{id:MinecartCommandBlock,Command:gamerule commandBlockOutput false},{id:MinecartCommandBlock,Command:gamerule logAdminCommands false},{id:MinecartCommandBlock,Command:setblock ~1 ~-2 ~ repeating_command_block 1 _ {auto:1,TrackOutput:0b,Command:testfor @e[type=Item,tag=!SLC_Checked]}},{id:MinecartCommandBlock,Command:"setblock ~1 ~-1 ~ chain_command_block 9 _ {auto:1,TrackOutput:0b,Command:\"scoreboard players tag @e[type=Item,tag=!SLC_Checked] add SLC_IsGIngot {Item:{Count:1b,id:\\\"minecraft:gold_ingot\\\"}}\"}"},{id:MinecartCommandBlock,Command:setblock ~1 ~ ~ chain_command_block 3 _ {auto:1,TrackOutput:0b,Command:scoreboard players tag @e[type=Item,tag=!SLC_Checked] add SLC_Checked}},{id:MinecartCommandBlock,Command:setblock ~1 ~ ~1 chain_command_block 0 _ {auto:1,TrackOutput:0b,Command:execute @e[tag=SLC_IsGIngot] ~ ~ ~ detect ~ ~ ~ cauldron -1 scoreboard players tag @e[c=1] add SLC_Crafting}},{id:MinecartCommandBlock,Command:setblock ~1 ~-1 ~1 chain_command_block 0 _ {auto:1,TrackOutput:0b,Command:execute @e[tag=SLC_Crafting] ~ ~ ~ particle explode ~ ~ ~ 1 1 1 1 25}},{id:MinecartCommandBlock,Command:setblock ~1 ~-2 ~1 chain_command_block 3 _ {auto:1,TrackOutput:0b,Command:execute @e[tag=SLC_Crafting] ~ ~ ~ playsound random.explode block @p ~ ~ ~ 1.0 2.0}},{id:MinecartCommandBlock,Command:"setblock ~1 ~-2 ~2 chain_command_block 1 _ {auto:1,TrackOutput:0b,Command:\"execute @e[tag=SLC_Crafting] ~ ~ ~ summon Item ~ ~1 ~ {Item:{Count:1b,id:\\\"chest\\\",tag:{LootTable:\\\"minecraft:chests/stronghold_corridor\\\",display:{Name:\\\"Loot Crate\\\",Lore:[\\\"What can it contain?\\\"]}}},Motion:[0.0,0.5,0.0]}\"}"},{id:MinecartCommandBlock,Command:setblock ~1 ~-1 ~2 chain_command_block 1 _ {auto:1,TrackOutput:0b,Command:execute @e[tag=SLC_Crafting] ~ ~ ~ kill @e[c=1]}},{id:MinecartCommandBlock,Command:setblock ~ ~1 ~ command_block 0 _ {auto:1b,Command:fill ~ ~-3 ~ ~ ~ ~ air}},{id:MinecartCommandBlock,Command:"/tellraw @a [\"\",{\"text\":\"The Loot Crates module has been successfully installed. \",\"color\":\"dark_green\",\"bold\":true},{\"text\":\"Check out more!\",\"color\":\"dark_blue\",\"bold\":true,\"underlined\":true,\"clickEvent\":{\"action\":\"open_url\",\"value\":\"http://pastebin.com/u/Sobsz\"}}]"},{id:MinecartCommandBlock,Command:kill @e[type=MinecartCommandBlock,dx=0]}]}]}
Add Comment
Please, Sign In to add comment