Skip to content

Compatiblity and Custom Data

encode42 edited this page Aug 8, 2024 · 1 revision

Custom Armor Data for chest feature

To make your custom armor model work with Estrogen's chest feature, you just simply need to add a singular per-armor compat asset file (This means it can be provided with a simple resourcepack). the file should be named and located as this: /resources/assets/<modid of the armor>/estrogen_armor_data/<armor item name>.json

Json Contents

As for the contents of this json, you simply specify the texture, main uv, left uv, right uv and the size of the texture:

  "texture": "<armor texture>.png",
  "uv": [0, 0],
  "left_uv": [0, 0],
  "right_uv": [0, 0],
  "size": [0, 0]
}

Size corresponds to the size of the texture in pixels.

image

Example

You can find example here of Ad Astra jetsuit: texture and json

Entity Interacion Recipe

should be pretty self explanatory, sadly currently doesn't use entity predicates but might switch to them soon, your json should be structured like this:

{
  "type": "estrogen:entity_interaction",
  "cant_be_baby": <boolean if entity can be a baby>,
  "entity": {
    "tag": "<entity tag>",
    "entity": "<entity id>"
  },
  "ingredient": {
    "item": "<item id you click with>"
  },
  "result": {
    "count": <result count>,
    "id": "<id of the resulting item>"
  },
  "sound": "<sound id to play when action is complete>"
}

This will also add the recipe to the provided recipe viewer. Example can be seen here: recipe