Configurable Items

Items are defined in JSON to match the Item Builderspec. The example below shows you how to use most of the things you'll need, but maybe reading the full Item Builderpage is still a good shout.

The Egg Item is defined in /config/BetterBreeding/items.json

{
  "pokemonEgg": {
    "id": "minecraft:turtle_egg",
    "name": "Pokemon Egg"
  },
  "pastureActivationItem": {
    "id": "minecraft:wooden_hoe",
    "customModelData": 0
  }
}

The default item is a turtle egg. Keep in mind that can be placed down by players which deletes the egg data and thus no hatching. In a future update, we'll add a custom egg sprite, which you can do yourself in the meantime.

The Pasture Actviation Item is defined in the same place. By default, it is a wooden hoe. Custom Model Data is included in the JSON as an example, it will be checked, so you can use a custom item for pasture activation.

Last updated