Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -68,17 +68,6 @@ public void randomTick(BlockState state, ServerWorld world, BlockPos pos, Random
return;
}

if (age == 2) {
BlockPos.Mutable dropPos = pos.mutableCopy();
while (world.getBlockState(dropPos).isOf(this) && pos.getY() - dropPos.getY() < 32) {
dropPos.move(0, -1, 0);
}
ItemStack drop = new ItemStack(SpectrumItems.GLASS_PEACH);
world.spawnEntity(new ItemEntity(world, dropPos.getX() + 0.5, dropPos.getY() + 0.15, dropPos.getZ() + 0.5, drop));
BlockState newState = state.with(AGE, 0);
world.setBlockState(pos, newState);
world.emitGameEvent(GameEvent.BLOCK_CHANGE, pos, GameEvent.Emitter.of(newState));
}
else {
world.setBlockState(pos, state.with(AGE, age + 1));
}
Expand Down
Loading