EyeJS
A KubeJS addon for creating custom structure-locating eyes!
Dependencies
- KubeJS
- NeoForge
Usage
// kubejs/startup_scripts/eyejs_test.js
StartupEvents.registry('item', event => {
event.create('test_eye', 'eyejs:eye')
// This is the name displayed in-game.
.displayName('Test Eye')
// This example uses the vanilla eye of ender texture.
// Custom KubeJS textures can also be used.
.texture('minecraft:item/ender_eye')
// Place # before the ID to target a structure tag.
// Leave out the # to search for a specific structure ('minecraft:village_plains')
// This example can locate any structure in #minecraft:village.
.structure('#minecraft:village')
// Maximum search distance in chunks.
.searchRadius(100)
// RGB hexadecimal color used for the flying eye's particles.
.particleColor(0x00FFFF)
// Chance for the eye to shatter after completing its flight.
// 0.0 = never shatters | 1.0 = always shatters
.breakChance(0.20)
// Message displayed when no matching structure is found.
// Standard Minecraft formatting codes are supported.
.notFoundMessage('§cStructure not found.')
})
Notes
- Exact structures and structure tags are supported.
- Vanilla and modded structures can be targeted.
- Normal Eyes of Ender are not modified.
- EyeJS should be installed on both the client and server.
- EyeJS is designed for modpacks and custom progression systems.
I made this mod specifically for myself, so if you need it for another version just lmk and I'll see what I can do.
Created by Carleb.
All Rights Reserved. You may use EyeJS in modpacks. You may not reupload, redistribute, modify, or republish the mod without permission.

