tutorial:containers
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
tutorial:containers [2020/08/14 07:16] – FabricBlockSettings is now a subclass of Block.Settings. i think leocth2 | tutorial:containers [2020/08/14 07:49] – evil cast my smol brain no understand leocth2 | ||
---|---|---|---|
Line 50: | Line 50: | ||
BlockEntity blockEntity = world.getBlockEntity(pos); | BlockEntity blockEntity = world.getBlockEntity(pos); | ||
if (blockEntity instanceof BiggerChestBlockEntity) { | if (blockEntity instanceof BiggerChestBlockEntity) { | ||
- | ItemScatterer.spawn(world, | + | ItemScatterer.spawn(world, |
// update comparators | // update comparators | ||
world.updateHorizontalAdjacent(pos, | world.updateHorizontalAdjacent(pos, | ||
Line 87: | Line 87: | ||
{ | { | ||
Registry.register(Registry.BLOCK, | Registry.register(Registry.BLOCK, | ||
- | Registry.register(Registry.BLOCK, BIGGER_CHEST, | + | Registry.register(Registry.ITEM, BIGGER_CHEST, |
} | } | ||
} | } |
tutorial/containers.txt · Last modified: 2022/05/27 15:57 by solidblock