Advertisement
MrCyberdragon

Untitled

Nov 29th, 2018
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. package com.mrcyberdragon.lightthenight.tileentities;
  2.  
  3. import com.mrcyberdragon.lightthenight.init.ModBlocks;
  4. import net.minecraft.tileentity.TileEntity;
  5. import net.minecraft.util.ITickable;
  6. import net.minecraft.util.math.BlockPos;
  7. import net.minecraft.world.World;
  8.  
  9. public class TileEntityWispFlame extends TileEntity implements ITickable {
  10.  
  11. @Override
  12. public void update() {
  13. World worldIn = getWorld();
  14. BlockPos pos = this.getPos();
  15. if(worldIn.getBlockState(new BlockPos(pos.getX(), pos.getY()-3, pos.getZ())).getBlock()!= ModBlocks.MUD_BLOCK){
  16. worldIn.setBlockToAir(pos);
  17. }
  18. }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement