MrGarretto's One-Command Creations

Giving the modded minecraft feeling to vanilla

Detail Enhancements & Bins command
About this command
This command will add many new details to the game, such as being able to see the helmet you are wearing, and footprints wherever you walk. It also adds trash bins and gravestones! To disable visible helmets, type /gamerule ShowHelmets false!
Show source commands

# Enhanced Details by MrGarretto
#
# Remove old ArmorStands
INIT:/kill @e[type=ArmorStand,name=EDeHomeArSt]
INIT:/kill @e[type=ArmorStand,name=HatArSt]
INIT:/tellraw @a [{color:"gold",text:"The Enhanced Details "},{color:"dark_aqua",text:"module by MrGarretto has been installed!"}]
INIT:/tellraw @a [{color:"dark_aqua",text:"To craft a "},{color:"aqua",text:"trash bin, "},{color:"dark_aqua",text:"throw a bucket and a glass block on the ground!"}]
INIT:/scoreboard objectives add EDe_Steps dummy
INIT:/scoreboard objectives add EDe_Walk stat.walkOneCm
INIT:/scoreboard objectives add EDe_ABDesp dummy
INIT:/scoreboard objectives add EDe_Clock dummy
INIT:/scoreboard objectives add EDe_Death deathCount
INIT:/scoreboard objectives add EDe_Helmet dummy
INIT:/scoreboard objectives add EDe_RemoveTR dummy
INIT:/scoreboard objectives add EDe_isIBucket dummy
INIT:/scoreboard objectives add EDe_isIGlass dummy
INIT:/scoreboard objectives add EDe_ShowHats dummy
# Manipulate master clock
/scoreboard players add @a EDe_Clock 1
# Footstep module
/execute @a ~ ~ ~ detect ~ ~-0.2 ~ grass 0 scoreboard players add @a EDe_Steps 1
/execute @a ~ ~ ~ detect ~ ~-0.2 ~ sand 0 scoreboard players add @a EDe_Steps 1
/execute @a ~ ~ ~ detect ~ ~-0.2 ~ dirt 0 scoreboard players add @a EDe_Steps 1
/execute @a ~ ~ ~ detect ~ ~-0.2 ~ gravel 0 scoreboard players add @a EDe_Steps 1
/scoreboard players set @a EDe_StepDone 0
/execute @a[score_EDe_Steps_min=1,score_EDe_Walk_min=150] ~ ~ ~ particle footstep ~ ~0.01 ~ 0 0 0 1 2
/scoreboard players set @a[score_EDe_Steps_min=1] EDe_Steps 0
/scoreboard players set @a[score_EDe_Walk_min=150] EDe_Walk 0
# Trash bins module
# Makes it possible to acquire trash bins:
/scoreboard players set @e[type=Item] EDe_isIBucket 1 {Item:{id:minecraft:bucket}}
/scoreboard players set @e[type=Item] EDe_isIGlass 1 {Item:{id:minecraft:glass}}
/execute @e[type=Item,score_EDe_isIBucket_min=1] ~ ~ ~ scoreboard players set @e[type=Item,r=1,score_EDe_isIGlass_min=1] EDe_isIGlass 2
/execute @e[type=Item,score_EDe_isIGlass_min=2] ~ ~ ~ summon Item ~ ~1 ~ {Item:{id:"spawn_egg",Damage:94,Count:1,tag:{display:{Name:"TrashBin"}}}}
/execute @e[type=Item,score_EDe_isIGlass_min=2] ~ ~ ~ kill @e[type=Item,score_EDe_isIBucket_min=1,r=2]
/execute @e[type=Item,score_EDe_isIGlass_min=2] ~ ~ ~ kill @e[type=Item,score_EDe_isIGlass_min=1,r=2]
# Summon Trash Bin at squids named TrashBin
/execute @e[type=Squid,name=TrashBin] ~ ~ ~ summon ArmorStand ~ ~ ~ {CustomName:"TrashSpawn",Invisible:1,NoGravity:1}
# Make the trash bin look better once/if it is working
/execute @e[type=ArmorStand,name=TrashArSt] ~ ~ ~ kill @e[type=Item,r=2]
/effect @e[type=Squid,name=TrashBin] 14 5 1 true
/kill @e[type=Squid,name=TrashBin]
/execute @e[type=ArmorStand,name=TrashSpawn] ~ ~ ~ summon ArmorStand ~ ~-1.349 ~ {CustomName:"TrashArSt",Invisible:1,NoGravity:1,Equipment:[{},{},{},{},{id:iron_block,tag:{display:{Name:"ARIron"}}}]}
/execute @e[type=ArmorStand,name=TrashSpawn] ~ ~ ~ summon ArmorStand ~ ~-0.15 ~ {CustomName:"TrashArStB",Invisible:1,NoGravity:1,Small:1,Equipment:[{},{},{},{},{id:dispenser,tag:{display:{Name:"ARDisp"}}}]}
/kill @e[type=ArmorStand,name=TrashSpawn]
# How to remove armorstands:
/scoreboard players set @e[name=TrashArSt] EDe_RemoveTR 1
/scoreboard players set @e[name=TrashArStB] EDe_RemoveTR 2
/scoreboard players set @e[type=ArmorStand,name=TrashArSt] EDe_RemoveTR 0 {Equipment:[{},{},{},{},{id:"minecraft:iron_block"}]}
/scoreboard players set @e[type=ArmorStand,name=TrashArStB] EDe_RemoveTR 0 {Equipment:[{},{},{},{},{id:"minecraft:dispenser"}]}
/execute @e[score_EDe_RemoveTR_min=1] ~ ~ ~ summon Item ~ ~1.5 ~ {Item:{id:"spawn_egg",Damage:94,Count:1,tag:{display:{Name:"TrashBin"}}}}
/execute @e[score_EDe_RemoveTR_min=1,score_EDe_RemoveTR=1] ~ ~ ~ kill @e[type=ArmorStand,name=TrashArStB,r=2]
/execute @e[score_EDe_RemoveTR_min=2,score_EDe_RemoveTR=2] ~ ~ ~ kill @e[type=ArmorStand,name=TrashArSt,r=2]
/kill @e[score_EDe_RemoveTR_min=1]
/clear @a dispenser 0 1 {display:{Name:"ARDisp"}}
/clear @a iron_block 0 1 {display:{Name:"ARIron"}}
# Make helmets visible while wearing them
# Set score based on helmet worn
/scoreboard players set @a EDe_Helmet 0
/scoreboard players set @a EDe_Helmet 1 {Inventory:[{Slot:103b,id:minecraft:leather_helmet}]}
/scoreboard players set @a EDe_Helmet 2 {Inventory:[{Slot:103b,id:minecraft:chainmail_helmet}]}
/scoreboard players set @a EDe_Helmet 3 {Inventory:[{Slot:103b,id:minecraft:iron_helmet}]}
/scoreboard players set @a EDe_Helmet 4 {Inventory:[{Slot:103b,id:minecraft:diamond_helmet}]}
/scoreboard players set @a EDe_Helmet 5 {Inventory:[{Slot:103b,id:minecraft:golden_helmet}]}
# Give ArmorStand the same helmet as player
/tp @e[type=ArmorStand,name=HatArSt,score_EDe_ShowHats_min=1] @a[score_EDe_Helmet_min=1]
/execute @a[score_EDe_Helmet=0] ~ ~ ~ tp @e[type=ArmorStand,name=HatArSt] @e[name=EDeHomeArSt]
/tp @e[type=ArmorStand,name=HatArSt,score_EDe_ShowHats=0] @e[name=EDeHomeArSt]
/execute @a[score_EDe_Helmet_min=0,score_EDe_Helmet=0] ~ ~ ~ entitydata @e[type=ArmorStand,name=HatArSt] {Equipment:[{},{},{},{},{}]}
/execute @a[score_EDe_Helmet_min=1,score_EDe_Helmet=1] ~ ~ ~ entitydata @e[type=ArmorStand,name=HatArSt] {Equipment:[{},{},{},{},{id:leather_helmet}]}
/execute @a[score_EDe_Helmet_min=2,score_EDe_Helmet=2] ~ ~ ~ entitydata @e[type=ArmorStand,name=HatArSt] {Equipment:[{},{},{},{},{id:chainmail_helmet}]}
/execute @a[score_EDe_Helmet_min=3,score_EDe_Helmet=3] ~ ~ ~ entitydata @e[type=ArmorStand,name=HatArSt] {Equipment:[{},{},{},{},{id:iron_helmet}]}
/execute @a[score_EDe_Helmet_min=4,score_EDe_Helmet=4] ~ ~ ~ entitydata @e[type=ArmorStand,name=HatArSt] {Equipment:[{},{},{},{},{id:diamond_helmet}]}
/execute @a[score_EDe_Helmet_min=5,score_EDe_Helmet=5] ~ ~ ~ entitydata @e[type=ArmorStand,name=HatArSt] {Equipment:[{},{},{},{},{id:golden_helmet}]}
# Alert about items that are about to despawn (Change age amount - it is small for testing purposes only)
# ***** Change from 100s to 4000s:
/scoreboard players set @e[type=Item] EDe_ABDesp 1 {Age:4000s}
# ** Make it a different particle if it is too annoying:
/execute @e[score_EDe_ABDesp_min=1] ~ ~ ~ particle smoke ~ ~ ~ 0 0 0 1 1
# Make a structure at the players position:
/execute @a[score_EDe_Death_min=1] ~ ~ ~ fill ~1 ~-1 ~ ~1 ~1 ~ stone 0 replace air
/execute @a[score_EDe_Death_min=1] ~ ~ ~ fill ~ ~-1 ~ ~-1 ~-1 ~ mossy_cobblestone 0 replace grass
/execute @a[score_EDe_Death_min=1] ~ ~ ~ fill ~ ~-1 ~ ~-1 ~-1 ~ mossy_cobblestone 0 replace sand
/execute @a[score_EDe_Death_min=1] ~ ~ ~ fill ~ ~-1 ~ ~-1 ~-1 ~ mossy_cobblestone 0 replace stone
# Armor Stand summon commands near ground level:
INIT:/summon ArmorStand ~4 ~ ~ {CustomName:"EDeHomeArSt",NoGravity:1}
INIT:/summon ArmorStand ~4 ~ ~ {CustomName:"HatArSt",NoGravity:1,Invisible:1}
INIT:/stats entity @e[name=HatArSt] set QueryResult @e[name=HatArSt] EDe_ShowHats
INIT:/scoreboard players set @e[name=HatArSt] EDe_ShowHats 0
# End of ArmorStand summoning
/scoreboard players set @a[score_EDe_Death_min=1] EDe_Death 0
# Gamerule for showing helmets:
/execute @e[type=ArmorStand,name=HatArSt] ~ ~ ~ gamerule ShowHelmets
# Reset master clock when at max
/scoreboard players set @a[score_EDe_Clock_min=20] EDe_Clock 0

For Minecraft version 1.8.3
Click here for other versions of this command!
How to use
Give yourself a command block with /give @p command_block. Place it then paste the command from below into it. One command creations are similar to Minecraft mods, but are much easier to add to your world!
Click here for other versions of this command!