Skip to content

Datapack

kveex edited this page Jun 13, 2026 · 3 revisions

You can register more blocks, that can be tracked by locator!

For this guide we want to make locator work on those generators: light_electricity_generator dark_electricity_generator Get id's of needed blocks and write them down somewhere (if you can't see them you need to press F3+H and hover on item again)

You can follow this guide to make and install datapacks. Final structure should look something like this:

Screenshot_25

In trackable_blocks.json you put:

{
  "replace": false,
  "values": [
    "refurbished_furniture:light_electricity_generator",
    "refurbished_furniture:dark_electricity_generator"
  ]
}

Now everything works! (You maybe need to sneak and use, because some blocks work around onBlockUse event from fabric API) image

Clone this wiki locally