Writable Book

To create a custom writable book you have to declare the written book first.

info:
  namespace: iasurvival
items:
  letter_written_letter:
    name: Written Letter
    permission_suffix: iasurvival.items.books.letter_written_letter
    resource:
      material: WRITTEN_BOOK
      generate: true
      textures:
        - item/other/written_letter

Then declare the writable book and specify which properties to copy from the written book, in this case the custom_model_data, so that it inherits the texture on write.

  letter:
    name: Letter
    permission_suffix: iasurvival.items.books.letter
    resource:
      material: WRITABLE_BOOK
      generate: true
      textures:
        - item/other/letter
    events:
      book_write:
        replace_properties:
          custom_model_data:
            copy_from_item: iasurvival:letter_written_letter

Last updated

Was this helpful?