written_book.json 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. {
  2. "type":"minecraft:generic",
  3. "pools":[
  4. {
  5. "rolls":1,
  6. "entries":[
  7. {
  8. "type":"item",
  9. "name":"minecraft:written_book",
  10. "functions":[
  11. {
  12. "function":"copy_nbt",
  13. "source": "this",
  14. "ops":[
  15. {
  16. "source": "Inventory[{id:\"minecraft:written_book\"}].tag.pages",
  17. "target": "pages",
  18. "op":"replace"
  19. },
  20. {
  21. "source": "Inventory[{id:\"minecraft:written_book\"}].tag.author",
  22. "target": "author",
  23. "op":"replace"
  24. },
  25. {
  26. "source": "Inventory[{id:\"minecraft:written_book\"}].tag.title",
  27. "target": "title",
  28. "op":"replace"
  29. },
  30. {
  31. "source": "Inventory[{id:\"minecraft:written_book\"}].tag.display.Name",
  32. "target": "display.Name",
  33. "op":"replace"
  34. },
  35. {
  36. "source": "Inventory[{id:\"minecraft:written_book\"}].tag.title",
  37. "target": "display.Lore",
  38. "op":"append"
  39. }
  40. ]
  41. }
  42. ]
  43. }
  44. ]
  45. }
  46. ]
  47. }