Download
Choose Minecraft Version
1.19.41.21.1v1.4.0
1.19.41.21v1.4.0
1.19.41.20.5v1.3.0
1.19.41.20.4v1.3.0
1.19.41.20.3v1.3.0
1.19.41.20.2v1.3.0
1.19.41.20.1v1.3.0
1.19.41.20v1.3.0
1.19.41.19.4v1.1.0
1.19.41.19v1.1.0
Close

Block Utils

A Minecraft Datapack adding a small collection of utilities for handeling some block interactions. Currently handles:

  • Getting a block's redstone powered state

Scoreboards

These are scoreboard objectives used to represent a value of some kind.

block_utils.data
  Used for math and passing variables between functions.

Function Calls

Function calls are called by you to trigger certian events or features.

function block_utils:v1/api/is_active
  Call on a block to check if it is powered by redstone.
 
  Output:
    #out block_utils.data: 0 for not powered, 1 for powered

How to use

  1. Install LanternLoad in your datapack, following its install directions
  2. Copy the BlockUtils/data/block_utils folder into your data pack
  3. Merge the file contents of BlockUtils/data/load/tags/functions/* into the files at <your_datapack>/data/load/tags/functions/*
  4. Implement the API as described above.

For easier mangament of dependencies, check out my project Datapack Build Manager.

Smithed

Copyright © 2024 Smithed
Not an official Minecraft product. Not approved by or associated with Mojang Studios