Reduce slime spawn rate

This commit is contained in:
Sollace 2023-11-25 03:08:49 +00:00
parent 515efb93cb
commit aa595d4284
No known key found for this signature in database
GPG key ID: E52FACE7B5C773DB

View file

@ -82,7 +82,7 @@ public class SlimePustuleBlock extends Block {
@Deprecated
@Override
public void randomTick(BlockState state, ServerWorld world, BlockPos pos, Random random) {
if (state.get(SHAPE) == Shape.POD) {
if (state.get(SHAPE) == Shape.POD && random.nextInt(130) == 0) {
SlimeEntity slime = EntityType.SLIME.create(world);
slime.setSize(1, true);
slime.setPosition(pos.toCenterPos());