Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.mrcyberdragon.lightthenight.tileentities;
- import com.mrcyberdragon.lightthenight.init.ModBlocks;
- import net.minecraft.tileentity.TileEntity;
- import net.minecraft.util.ITickable;
- import net.minecraft.util.math.BlockPos;
- import net.minecraft.world.World;
- public class TileEntityWispFlame extends TileEntity implements ITickable {
- @Override
- public void update() {
- World worldIn = getWorld();
- BlockPos pos = this.getPos();
- if(worldIn.getBlockState(new BlockPos(pos.getX(), pos.getY()-3, pos.getZ())).getBlock()!= ModBlocks.MUD_BLOCK){
- worldIn.setBlockToAir(pos);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement