SiberianHat

Command Book [Commands]

Oct 23rd, 2015
968
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. Recieve Command Book
  2. Blog post: http://siberianhat.blogspot.com.br/2015/10/the-command-book-and-tellraw-menu.html
  3.  
  4. On a repeating command block:
  5. /execute @a[score_book_min=1] ~ ~ ~ /execute @e[tag=Book] ~ ~ ~ /blockdata ~ ~ ~1 {auto:1b}
  6.  
  7. On a impulse command block:
  8. /blockdata ~ ~ ~ {auto:0b}
  9.  
  10. On chain command blocks:
  11. /scoreboard players set @a[score_book_min=1] book 0 {Inventory:[{id:"minecraft:written_book",tag:{title:"Command Book"}}]}
  12. /scoreboard players set @a[rxm=90,rx=90,score_book_min=1] [obj] [score]
  13. /scoreboard players reset @a[score_book_min=1] book
  14.  
  15.  
  16. notes:
  17. Build from North (-Z) to South (+Z)
  18. Have an entity (armour stand or effect cloud) at the impulse command block with the "Book" tag. For that execute the following command at the location:
  19. /summon ArmorStand ~ ~-.5 ~ {Small:1b,NoBasePlate:1b,NoGravity:1b,Invisible:1b,Marker:1b,Tags:[0:"Book"],CustomName:"Book"}
Advertisement
Add Comment
Please, Sign In to add comment