HomeBedrockAddonsStackable Blocks Template
Stackable Blocks Template
AddonsBedrock

Stackable Blocks Template

by ajr_uribe · on CurseForge

⬇ Download on CurseForge

Stackable Blocks Template

Easily Create Blocks that have a progresive state changing, like stacking sea pickles and turtle's eggs.


Disclaimer:

This isn't an add-on, is just raw code for creators to use in their projects to improve their efficiency and performance.

Socials:

How to use:

// Read the license of use, don't try to change this component's name.
// Add this component to your block:
"sl:stackable": {
        "state": "sl:stackable_state", // The state your block's gonna use to "stack" itself
        "maxStack": 3, // the max value of your state: [ 0, 1, 2, 3 ]
        "stackBlocks": [
          "sl:stackable", // this array must have the name of your block if you want it to be stacked by itself otherwhise your block won't grow its own stack state
          "minecraft:dirt", // the blocks that will increase the stack state of your block
          "minecraft:stone",
          "minecraft:oak_planks"
        ],
        "sound": "place.amethyst_block" // the sound your block will do when increasing its stack state and placing it.
      }
Quick facts

Install steps are the general flow for this file type — How to install Minecraft Bedrock addons & mods 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