qmagnet

Creating Custom Banners and Shields with Commands

Oct 21st, 2015
5,594
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.47 KB | None | 0 0
  1. NOTE:
  2. 1.9 no longer uses the Equipment tag. This has been replaced by ArmorItems and HandItems tags.
  3.  
  4.  
  5. Setblock Custom Standing Banner
  6. /setblock ~ ~1 ~ standing_banner 0 replace {Patterns:
  7.  
  8. Setblock Custom Wall Banner
  9. [{Pattern:"dls",Color:14}],Base:4}
  10. /setblock ~ ~21 ~ standing_banner 3 replace {Patterns:[{Pattern:"dls",Color:14}],Base:4}
  11.  
  12. Summon ArmorStand with Custom Shield
  13. /summon ArmorStand ~0.4 ~0.15 ~-0.5 {ShowArms:true,Rotation:[90.0f,0.0f],Pose:{LeftArm:[270f,0f,0f]},NoGravity:true,HandItems:[{},{id:"minecraft:shield",tag:{BlockEntityTag:{id:"Banner",Patterns:[{Pattern:"dls",Color:14},],Base:4}}}]}
  14.  
  15. Summon Skeleton with Custom Shield
  16. /summon Skeleton ~ ~20 ~ {Silent:true,NoAI:true,ArmorItems:[{},{},{},{id:minecraft:stone_button}],HandItems:[{id:"minecraft:iron_sword"},{id:"minecraft:shield",tag:{BlockEntityTag:{id:"Banner",Patterns:[{Pattern:"dls",Color:14},],Base:4}}}]}
  17.  
  18. Give Custom Banner
  19. /give @p banner 1 0 {BlockEntityTag:{Patterns:[{Pattern:"dls",Color:14}],Base:4}}
  20.  
  21. Give Custom Shield
  22. /give @p shield 1 0 {BlockEntityTag:{Patterns:[{Pattern:"dls",Color:14}],Base:4}}
  23.  
  24. Place Custom Shield in Offhand Slot
  25. /replaceitem entity @p slot.weapon.offhand shield 1 0 {BlockEntityTag:{Patterns:[{Pattern:"dls",Color:14}],Base:4}}
  26.  
  27.  
  28.  
  29. NOTE:
  30. To find out any the NBT pattern info for a banner, place the banner above a command block and issue this command:
  31. /blockdata ~ ~1 ~ {}
  32.  
  33.  
  34.  
  35. See video for more detail:
  36. https://www.youtube.com/watch?v=OTYMyRsVJBY
Advertisement
Add Comment
Please, Sign In to add comment