Skip to content

Unstrip Detailed Config

Unstrip Detailed Config allows us to define drop and unstrip items for each set of normal and stripped wood/log.

Config Options

It is a JSON config; this file stores an array of LogEntry objects.

LogEntry

FieldTypeExampleDescription
baseStringminecraft:oak_logId of the log/wood that you want to define custom drop and unstrip item for.
strippedStringminecraft:stripped_oak_logId of the stripped log/wood that is the stripped version of the defined log/wood in base.
dropItemEntryPlease look at ItemEntry Section belowItem id and DataComponents JSON object of the item to use as drop when stripping.
unstrip_itemItemEntry (Optional)Please look at ItemEntry Section belowItem id and DataComponents JSON object of the item to use as unstrip item when unstripping; if not defined, drop will be used as the unstrip item.

A simple example of LogEntry:

json5
[
  {
    "base": "minecraft:jungle_wood",
    "stripped": "minecraft:stripped_jungle_wood",
    // "drop": {}, // Will be shown in the ItemEntry section.
    // "unstrip_item": {}, // Optional
  }
]

ItemEntry

FieldTypeExampleDescription
idStringunstriplog:barkId of the item that you want to use as the drop/unstrip_item when stripping log/wood.
componentsDataComponentPatch (Optional)Please look at DataComponentPatch Section belowA map of data component types and values that the item should have.

DataComponentPatch

DataComponent is a vanilla thing, you can find all vanilla components and their fields here.

FieldTypeExampleDescription
Any valid data component type id eg. unstriplog:bark_typeJson ObjectThe field in the component type Json Object are according to the component type.Valid components that the defined item should have.

WARNING

If the item with components are used as the unstrip item, all components must strictly match; otherwise it will not work!

A simple example of ItemEntry and DataComponentPatch:

json5
[
  {
    // "base": "minecraft:jungle_wood",
    // "stripped": "minecraft:stripped_jungle_wood",
    "drop": {
      "id": "unstriplog:bark",
      "components": { // This is an optional field.
        "unstriplog:bark_type": { // This is the id of the registered DataComponentType
          "name": "jungle", // This is one of the fields in `unstriplog:bark_type`
          "texture": "unstriplog:textures/item/jungle_bark.png" // This is also one of the fields in `unstriplog:bark_type`
        }
      }
    },
    "unstrip_item": { // Optional
      "id": "minecraft:paper",
      // No "components" field is needed because it is optional
    }
  }
]

Config File

The config file can be found under config/unstriplog/unstrip-detailed.json. Below is a full example of what the config file will look like:

json5
[
  {
    "base": "minecraft:jungle_wood",
    "stripped": "minecraft:stripped_jungle_wood",
    "drop": {
      "id": "unstriplog:bark",
      "components": {
        "unstriplog:bark_type": {
          "name": "jungle",
          "texture": "unstriplog:textures/item/jungle_bark.png"
        }
      }
    }
  },
  {
    "base": "minecraft:cherry_log",
    "stripped": "minecraft:stripped_cherry_log",
    "drop": {
      "id": "unstriplog:bark",
      "components": {
        "unstriplog:bark_type": {
          "name": "cherry",
          "texture": "unstriplog:textures/item/cherry_bark.png"
        }
      }
    }
  },
  // Other vanilla log/wood
]