Jasim Ansari
📎 1 file 3,474 chars
📄
pasted-code-1794464234378.txt
txt 23 lines
▶
Create a client-side Fabric mod for Minecraft 26.1.2 named Anything-ray. It adds customizable X-Ray and ESP outlines for any block in the game and players, controlled entirely through a scrollable in-game HUD menu with customizable keybinds and zero chat commands.
1. Customizable Keybinds (Fabric KeyBinding API):
• Register keybinds under an "Anything-ray" category in Minecraft's Options -> Controls -> Key Binds menu so the player can rebind them to any keyboard key or mouse button:
	• Open Anything-ray HUD (Default: K) — opens the main HUD settings screen.
	• Toggle ESP On/Off (Default: X) — instantly turns all ESP outlines on or off.
• Also include a clickable keybind button inside the Anything-ray HUD so the player can click it and press any key to rebind the HUD key directly inside the menu.
2. Scrollable Main HUD Panel:
• Make the entire HUD settings panel vertically scrollable using the mouse wheel and a visible scrollbar on the right side so every control—including the Horizontal Distance slider, Vertical Depth slider, Player ESP settings, search bar, and active tracked blocks list—can be reached cleanly at any GUI scale without getting cut off.
3. Search Bar with Scrollable Autocomplete Dropdown & Block Icons:
• Place a text search bar in the HUD with an "Add" button right next to it.
• Command-Style Autocomplete Dropdown: As the player types any partial text or incomplete block ID into the search bar (for example, che or minecraft:che), immediately display a dropdown suggestion box directly underneath the search bar listing all matching registered blocks from Minecraft's block registry (such as minecraft:chest, minecraft:ender_chest, minecraft:trapped_chest).
• Each row in the dropdown must show the block's 2D item/block icon alongside its readable name and full ID (Chest — minecraft:chest).
• Independent Dropdown Scrolling: Make the dropdown suggestion list independently scrollable with the mouse wheel (showing up to 6 rows at a time with a scrollbar). When hovering over the dropdown and scrolling, only scroll the dropdown list without scrolling the background HUD panel.
• Click-to-Fill Behavior: Clicking any suggested block in the dropdown automatically writes that block's full ID (minecraft:block_name) into the search bar text box. Pressing Enter or clicking the "Add" button then adds that block to the Active Tracked Blocks list and clears the search bar.
4. Active Tracked Blocks, Custom Outline Colors & Range/Depth Sliders:
• Active Tracked Blocks List: Display every added block with its 2D block icon, name, a custom outline color picker (RGB sliders or Hex color input so each block has its own custom outline color), and a remove button.
• Player ESP Controls: Include a toggle switch for Player ESP, a toggle for showing player nametags and distance in blocks, and a custom outline color picker for players.
• Distance & Depth Sliders: Include two sliders inside the scrollable HUD:
	• Horizontal Distance (How Far): Controls the scan radius around the player (8 to 128 blocks).
	• Vertical Depth (How Deep): Controls how many blocks above and below the player to scan (8 to 256 blocks).
5. ESP Rendering:
• Any-Block ESP: Render clean, see-through wireframe boxes in each block's chosen custom color around every matching block within the configured Horizontal Distance and Vertical Depth.
• Player ESP: Render glowing, see-through colored outlines around other players through walls in the chosen custom color.
Kodari AI
KodariNov 12 at 6:16 am 1
AnythingRay
A client-side Fabric mod for Minecraft that provides customizable X-Ray and ESP outlines for any block and player. Features a fully scrollable in-game HUD menu with search bar, autocomplete dropdown with block icons, per-block custom outline colors, player ESP with nametags, and horizontal/vertical scan range sliders. Includes rebindable keybinds for opening the HUD and toggling ESP, plus an in-menu keybind button. Renders clean wireframe boxes around tracked blocks and glowing outlines around players through walls within configured distances.

This is a server plugin project. Kodari doesn’t currently have Fabric for Minecraft 26.1.2; the closest options are Fabric 26.2 and NeoForge 26.1.2.

Kodari can make mistakes. Review important code before using.
Files

No files in this session

Code