HomeJavaModsCustomEyesLib
CustomEyesLib
ModsJava

CustomEyesLib

by zacharylikesnoodles · on Modrinth

Add eyes that point to any structure in the game, just like how ender eyes point to strongholds. Supports vanilla and modded structures.

⬇ Download on Modrinth

A mod that adds custom eye items that locate and point toward ANY structure made for modpack developers. Define as many eyes as you want in a highly configurable toml file, inputting the structure, item texture, search radius, and the particle color.

Planned features

Configuration

Eyes are defined in .minecraft/config/structureeye-eyes.toml. The file is created automatically on first launch just add [[eye]] blocks to it. Fields:

Example:

[[eye]]
  name            = "fortress_eye"
  displayName     = "Eye of the Fortress"
  textureItem     = "minecraft:blaze_powder"
  targetStructure = "minecraft:fortress"
  searchRadius    = 128
  glowColor       = "#FFFF6600"
  showCoordinates = true
  skipVisited     = true

[[eye]]
  name            = "temple_eye"
  displayName     = "Eye of the Desert Temple"
  textureItem     = "minecraft:gold_nugget"
  targetStructure = "minecraft:desert_pyramid"
  searchRadius    = 96
  glowColor       = "#FFFFFF00"
  showCoordinates = false
  skipVisited     = false

###Custom Textures There are two ways to give an eye a custom texture. Option 1: Resource Pack (recommended) Create a zip file with this structure:

MyResourcePack.zip
  pack.mcmeta
  assets/structureeye/textures/item/
    your_eye_name.png

The pack.mcmeta should look like this:

{
  "pack": {
    "pack_format": 15,
    "description": "My custom eye textures"
  }
}

Drop the zip into .minecraft/resourcepacks/ and enable it in-game. Then in your config, use texturePath instead of textureItem:

[[eye]]
  name            = "my_eye"
  displayName     = "My Custom Eye"
  texturePath     = "structureeye:item/your_eye_name"
  targetStructure = "minecraft:stronghold"
  searchRadius    = 128
  glowColor       = "#FF00FFFF"
  showCoordinates = false
  skipVisited     = true

Custom Textures with KubeJS

For custom eye textures, KubeJS can be used as a replacement for texture packs. Register an item with the texture you want for your eye and set the "textureItem" in the config to your KubeJS item.

How to create a kubejs item:

// kubejs/startup_scripts/items.js
StartupEvents.registry('item', event => {
    event.create('ItemId')
        .displayName('ItemName')
        .texture('kubejs:item/ItemId') // this isnt required, if the file name is the same then it would automatically register it
})

Put your texture at kubejs/assets/kubejs/textures/item/ItemId and set textureItem = "kubejs:ItemId" in the config.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more