Some plants fixes
This commit is contained in:
parent
2093c747c6
commit
44dd1c35a9
3 changed files with 18 additions and 0 deletions
|
@ -13,6 +13,7 @@ import net.minecraft.particle.ParticleTypes;
|
|||
import net.minecraft.util.math.BlockPos;
|
||||
import net.minecraft.world.World;
|
||||
import ru.betterend.blocks.basis.BlockPlant;
|
||||
import ru.betterend.registry.EndBlocks;
|
||||
|
||||
public class BlockMurkweed extends BlockPlant {
|
||||
@Override
|
||||
|
@ -31,4 +32,9 @@ public class BlockMurkweed extends BlockPlant {
|
|||
((LivingEntity) entity).addStatusEffect(new StatusEffectInstance(StatusEffects.BLINDNESS, 50));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean isTerrain(BlockState state) {
|
||||
return state.isOf(EndBlocks.SHADOW_GRASS);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue