Infusion rituals

This commit is contained in:
Aleksey 2020-11-09 22:15:58 +03:00
parent 1e4b7377f2
commit bdf3d0afb1
9 changed files with 68 additions and 4 deletions

View file

@ -29,6 +29,7 @@ public class InfusionPedestal extends BlockPedestal {
@Override
public ActionResult onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) {
if (world.isClient || !state.isOf(this)) return ActionResult.CONSUME;
BlockEntity blockEntity = world.getBlockEntity(pos);
InfusionPedestalEntity pedestal = null;
if (blockEntity instanceof InfusionPedestalEntity) {