Jump to content

Recommended Posts

Posted

hello guys i want my block to summon a zombie when its broken. the problem is i cant figure out how to do this. i read vanilla code most of its blocks have this

worldIn.spawnEntityInWorld(new EntityXPOrb(worldIn, (double)pos.getX() + 0.5D, (double)pos.getY() + 0.5D, (double)pos.getZ() + 0.5D, 1));

 

but entityzombie dont take any pos in its constructor. so far this is my code

 

@Override
    public void onBlockDestroyedByPlayer(World worldIn, BlockPos pos,
    		IBlockState state) {
    	worldIn.spawnEntityInWorld(new EntityZombie(worldIn));//NOT WORKING
    	super.onBlockDestroyedByPlayer(worldIn, pos, state);
    }

 

please guide me to how to summon this entity

Posted

hey thanks for this now its working perfectly! but now i have encountered other problem here is my code

/**
     * Summon Items As Drop With Loops
     * Par- World,BlockPos,Block,loop(how many items you want to summon),style(1=down-top, anything else simple.)
     * 
     */
    
    private void summonItemWithLoop(World worldIn, BlockPos pos,Block block,int loop,int style) {

    	 float f = 0.5F;
		double d0 = (double)(worldIn.rand.nextFloat() * f) + (double)(1.0F - f) * 0.5D;
         double d1 = (double)(worldIn.rand.nextFloat() * f) + (double)(1.0F - f) * 0.5D;
         double d2 = (double)(worldIn.rand.nextFloat() * f) + (double)(1.0F - f) * 0.5D;
         EntityItem entityitem = new EntityItem(worldIn, (double)pos.getX() + d0, (double)pos.getY() + d1, (double)pos.getZ() + d2, new ItemStack(block));
         entityitem.setDefaultPickupDelay();
         for(int i=0;i<=loop-1;i++){
        	 
        	 if(style==1){
        		 entityitem.setPosition(pos.getX(), pos.getY()+i, pos.getZ());
        	worldIn.spawnEntityInWorld(entityitem);}
        	 else{
        		 worldIn.spawnEntityInWorld(entityitem);
        	 }
        	 }
         }

 

it was working perfectly until i decided to add a FOR loop as i wanted these to summon in a style (from where my block is broken to top) this is how i am calling it.

 

in my block break method (!world.isRemote)
summonItemWithLoop(worldIn,pos,Blocks.gold_block,10,0);

 

 

with this i get some server errors in console

ERROR => (but game Does not crash)

[21:26:28] [server thread/ERROR]: "Silently" catching entity tracking error.
net.minecraft.util.ReportedException: Adding entity to track
at net.minecraft.entity.EntityTracker.addEntityToTracker(EntityTracker.java:228) [EntityTracker.class:?]
at net.minecraft.entity.EntityTracker.trackEntity(EntityTracker.java:120) [EntityTracker.class:?]
at net.minecraft.world.WorldManager.onEntityAdded(WorldManager.java:35) [WorldManager.class:?]
at net.minecraft.world.World.onEntityAdded(World.java:1233) [World.class:?]
at net.minecraft.world.WorldServer.onEntityAdded(WorldServer.java:990) [WorldServer.class:?]
at net.minecraft.world.World.spawnEntityInWorld(World.java:1224) [World.class:?]
at com.thvardhan.ytstuff.blocks.LuckyBlock.summonItemWithLoop(LuckyBlock.java:102) [LuckyBlock.class:?]
at com.thvardhan.ytstuff.blocks.LuckyBlock.onBlockDestroyedByPlayer(LuckyBlock.java:70) [LuckyBlock.class:?]
at net.minecraft.server.management.ItemInWorldManager.removeBlock(ItemInWorldManager.java:288) [itemInWorldManager.class:?]
at net.minecraft.server.management.ItemInWorldManager.removeBlock(ItemInWorldManager.java:278) [itemInWorldManager.class:?]
at net.minecraft.server.management.ItemInWorldManager.tryHarvestBlock(ItemInWorldManager.java:317) [itemInWorldManager.class:?]
at net.minecraft.server.management.ItemInWorldManager.onBlockClicked(ItemInWorldManager.java:164) [itemInWorldManager.class:?]
at net.minecraft.network.NetHandlerPlayServer.processPlayerDigging(NetHandlerPlayServer.java:551) [NetHandlerPlayServer.class:?]
at net.minecraft.network.play.client.C07PacketPlayerDigging.processPacket(C07PacketPlayerDigging.java:56) [C07PacketPlayerDigging.class:?]
at net.minecraft.network.play.client.C07PacketPlayerDigging.processPacket(C07PacketPlayerDigging.java:12) [C07PacketPlayerDigging.class:?]
at net.minecraft.network.PacketThreadUtil$1.run(PacketThreadUtil.java:15) [PacketThreadUtil$1.class:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_60]
at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_60]
at net.minecraft.util.Util.runTask(Util.java:22) [util.class:?]
at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:736) [MinecraftServer.class:?]
at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:681) [MinecraftServer.class:?]
at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:159) [integratedServer.class:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:548) [MinecraftServer.class:?]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_60]
Caused by: java.lang.IllegalStateException: Entity is already tracked!
at net.minecraft.entity.EntityTracker.addEntityToTracker(EntityTracker.java:195) ~[EntityTracker.class:?]
... 23 more
[21:26:28] [server thread/ERROR]: "Silently" catching entity tracking error.
net.minecraft.util.ReportedException: Adding entity to track
at net.minecraft.entity.EntityTracker.addEntityToTracker(EntityTracker.java:228) [EntityTracker.class:?]
at net.minecraft.entity.EntityTracker.trackEntity(EntityTracker.java:120) [EntityTracker.class:?]
at net.minecraft.world.WorldManager.onEntityAdded(WorldManager.java:35) [WorldManager.class:?]
at net.minecraft.world.World.onEntityAdded(World.java:1233) [World.class:?]
at net.minecraft.world.WorldServer.onEntityAdded(WorldServer.java:990) [WorldServer.class:?]
at net.minecraft.world.World.spawnEntityInWorld(World.java:1224) [World.class:?]
at com.thvardhan.ytstuff.blocks.LuckyBlock.summonItemWithLoop(LuckyBlock.java:102) [LuckyBlock.class:?]
at com.thvardhan.ytstuff.blocks.LuckyBlock.onBlockDestroyedByPlayer(LuckyBlock.java:70) [LuckyBlock.class:?]
at net.minecraft.server.management.ItemInWorldManager.removeBlock(ItemInWorldManager.java:288) [itemInWorldManager.class:?]
at net.minecraft.server.management.ItemInWorldManager.removeBlock(ItemInWorldManager.java:278) [itemInWorldManager.class:?]
at net.minecraft.server.management.ItemInWorldManager.tryHarvestBlock(ItemInWorldManager.java:317) [itemInWorldManager.class:?]
at net.minecraft.server.management.ItemInWorldManager.onBlockClicked(ItemInWorldManager.java:164) [itemInWorldManager.class:?]
at net.minecraft.network.NetHandlerPlayServer.processPlayerDigging(NetHandlerPlayServer.java:551) [NetHandlerPlayServer.class:?]
at net.minecraft.network.play.client.C07PacketPlayerDigging.processPacket(C07PacketPlayerDigging.java:56) [C07PacketPlayerDigging.class:?]
at net.minecraft.network.play.client.C07PacketPlayerDigging.processPacket(C07PacketPlayerDigging.java:12) [C07PacketPlayerDigging.class:?]
at net.minecraft.network.PacketThreadUtil$1.run(PacketThreadUtil.java:15) [PacketThreadUtil$1.class:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_60]
at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_60]
at net.minecraft.util.Util.runTask(Util.java:22) [util.class:?]
at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:736) [MinecraftServer.class:?]
at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:681) [MinecraftServer.class:?]
at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:159) [integratedServer.class:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:548) [MinecraftServer.class:?]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_60]
Caused by: java.lang.IllegalStateException: Entity is already tracked!
at net.minecraft.entity.EntityTracker.addEntityToTracker(EntityTracker.java:195) ~[EntityTracker.class:?]
... 23 more
[21:26:28] [server thread/ERROR]: "Silently" catching entity tracking error.
net.minecraft.util.ReportedException: Adding entity to track
at net.minecraft.entity.EntityTracker.addEntityToTracker(EntityTracker.java:228) [EntityTracker.class:?]
at net.minecraft.entity.EntityTracker.trackEntity(EntityTracker.java:120) [EntityTracker.class:?]
at net.minecraft.world.WorldManager.onEntityAdded(WorldManager.java:35) [WorldManager.class:?]
at net.minecraft.world.World.onEntityAdded(World.java:1233) [World.class:?]
at net.minecraft.world.WorldServer.onEntityAdded(WorldServer.java:990) [WorldServer.class:?]
at net.minecraft.world.World.spawnEntityInWorld(World.java:1224) [World.class:?]
at com.thvardhan.ytstuff.blocks.LuckyBlock.summonItemWithLoop(LuckyBlock.java:102) [LuckyBlock.class:?]
at com.thvardhan.ytstuff.blocks.LuckyBlock.onBlockDestroyedByPlayer(LuckyBlock.java:70) [LuckyBlock.class:?]
at net.minecraft.server.management.ItemInWorldManager.removeBlock(ItemInWorldManager.java:288) [itemInWorldManager.class:?]
at net.minecraft.server.management.ItemInWorldManager.removeBlock(ItemInWorldManager.java:278) [itemInWorldManager.class:?]
at net.minecraft.server.management.ItemInWorldManager.tryHarvestBlock(ItemInWorldManager.java:317) [itemInWorldManager.class:?]
at net.minecraft.server.management.ItemInWorldManager.onBlockClicked(ItemInWorldManager.java:164) [itemInWorldManager.class:?]
at net.minecraft.network.NetHandlerPlayServer.processPlayerDigging(NetHandlerPlayServer.java:551) [NetHandlerPlayServer.class:?]
at net.minecraft.network.play.client.C07PacketPlayerDigging.processPacket(C07PacketPlayerDigging.java:56) [C07PacketPlayerDigging.class:?]
at net.minecraft.network.play.client.C07PacketPlayerDigging.processPacket(C07PacketPlayerDigging.java:12) [C07PacketPlayerDigging.class:?]
at net.minecraft.network.PacketThreadUtil$1.run(PacketThreadUtil.java:15) [PacketThreadUtil$1.class:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_60]
at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_60]
at net.minecraft.util.Util.runTask(Util.java:22) [util.class:?]
at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:736) [MinecraftServer.class:?]
at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:681) [MinecraftServer.class:?]
at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:159) [integratedServer.class:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:548) [MinecraftServer.class:?]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_60]
Caused by: java.lang.IllegalStateException: Entity is already tracked!
at net.minecraft.entity.EntityTracker.addEntityToTracker(EntityTracker.java:195) ~[EntityTracker.class:?]
... 23 more
[21:26:28] [server thread/ERROR]: "Silently" catching entity tracking error.
net.minecraft.util.ReportedException: Adding entity to track
at net.minecraft.entity.EntityTracker.addEntityToTracker(EntityTracker.java:228) [EntityTracker.class:?]
at net.minecraft.entity.EntityTracker.trackEntity(EntityTracker.java:120) [EntityTracker.class:?]
at net.minecraft.world.WorldManager.onEntityAdded(WorldManager.java:35) [WorldManager.class:?]
at net.minecraft.world.World.onEntityAdded(World.java:1233) [World.class:?]
at net.minecraft.world.WorldServer.onEntityAdded(WorldServer.java:990) [WorldServer.class:?]
at net.minecraft.world.World.spawnEntityInWorld(World.java:1224) [World.class:?]
at com.thvardhan.ytstuff.blocks.LuckyBlock.summonItemWithLoop(LuckyBlock.java:102) [LuckyBlock.class:?]
at com.thvardhan.ytstuff.blocks.LuckyBlock.onBlockDestroyedByPlayer(LuckyBlock.java:70) [LuckyBlock.class:?]
at net.minecraft.server.management.ItemInWorldManager.removeBlock(ItemInWorldManager.java:288) [itemInWorldManager.class:?]
at net.minecraft.server.management.ItemInWorldManager.removeBlock(ItemInWorldManager.java:278) [itemInWorldManager.class:?]
at net.minecraft.server.management.ItemInWorldManager.tryHarvestBlock(ItemInWorldManager.java:317) [itemInWorldManager.class:?]
at net.minecraft.server.management.ItemInWorldManager.onBlockClicked(ItemInWorldManager.java:164) [itemInWorldManager.class:?]
at net.minecraft.network.NetHandlerPlayServer.processPlayerDigging(NetHandlerPlayServer.java:551) [NetHandlerPlayServer.class:?]
at net.minecraft.network.play.client.C07PacketPlayerDigging.processPacket(C07PacketPlayerDigging.java:56) [C07PacketPlayerDigging.class:?]
at net.minecraft.network.play.client.C07PacketPlayerDigging.processPacket(C07PacketPlayerDigging.java:12) [C07PacketPlayerDigging.class:?]
at net.minecraft.network.PacketThreadUtil$1.run(PacketThreadUtil.java:15) [PacketThreadUtil$1.class:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_60]
at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_60]
at net.minecraft.util.Util.runTask(Util.java:22) [util.class:?]
at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:736) [MinecraftServer.class:?]
at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:681) [MinecraftServer.class:?]
at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:159) [integratedServer.class:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:548) [MinecraftServer.class:?]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_60]
Caused by: java.lang.IllegalStateException: Entity is already tracked!
at net.minecraft.entity.EntityTracker.addEntityToTracker(EntityTracker.java:195) ~[EntityTracker.class:?]
... 23 more
[21:26:28] [server thread/ERROR]: "Silently" catching entity tracking error.
net.minecraft.util.ReportedException: Adding entity to track
at net.minecraft.entity.EntityTracker.addEntityToTracker(EntityTracker.java:228) [EntityTracker.class:?]
at net.minecraft.entity.EntityTracker.trackEntity(EntityTracker.java:120) [EntityTracker.class:?]
at net.minecraft.world.WorldManager.onEntityAdded(WorldManager.java:35) [WorldManager.class:?]
at net.minecraft.world.World.onEntityAdded(World.java:1233) [World.class:?]
at net.minecraft.world.WorldServer.onEntityAdded(WorldServer.java:990) [WorldServer.class:?]
at net.minecraft.world.World.spawnEntityInWorld(World.java:1224) [World.class:?]
at com.thvardhan.ytstuff.blocks.LuckyBlock.summonItemWithLoop(LuckyBlock.java:102) [LuckyBlock.class:?]
at com.thvardhan.ytstuff.blocks.LuckyBlock.onBlockDestroyedByPlayer(LuckyBlock.java:70) [LuckyBlock.class:?]
at net.minecraft.server.management.ItemInWorldManager.removeBlock(ItemInWorldManager.java:288) [itemInWorldManager.class:?]
at net.minecraft.server.management.ItemInWorldManager.removeBlock(ItemInWorldManager.java:278) [itemInWorldManager.class:?]
at net.minecraft.server.management.ItemInWorldManager.tryHarvestBlock(ItemInWorldManager.java:317) [itemInWorldManager.class:?]
at net.minecraft.server.management.ItemInWorldManager.onBlockClicked(ItemInWorldManager.java:164) [itemInWorldManager.class:?]
at net.minecraft.network.NetHandlerPlayServer.processPlayerDigging(NetHandlerPlayServer.java:551) [NetHandlerPlayServer.class:?]
at net.minecraft.network.play.client.C07PacketPlayerDigging.processPacket(C07PacketPlayerDigging.java:56) [C07PacketPlayerDigging.class:?]
at net.minecraft.network.play.client.C07PacketPlayerDigging.processPacket(C07PacketPlayerDigging.java:12) [C07PacketPlayerDigging.class:?]
at net.minecraft.network.PacketThreadUtil$1.run(PacketThreadUtil.java:15) [PacketThreadUtil$1.class:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_60]
at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_60]
at net.minecraft.util.Util.runTask(Util.java:22) [util.class:?]
at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:736) [MinecraftServer.class:?]
at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:681) [MinecraftServer.class:?]
at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:159) [integratedServer.class:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:548) [MinecraftServer.class:?]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_60]
Caused by: java.lang.IllegalStateException: Entity is already tracked!
at net.minecraft.entity.EntityTracker.addEntityToTracker(EntityTracker.java:195) ~[EntityTracker.class:?]
... 23 more
[21:26:28] [server thread/ERROR]: "Silently" catching entity tracking error.
net.minecraft.util.ReportedException: Adding entity to track
at net.minecraft.entity.EntityTracker.addEntityToTracker(EntityTracker.java:228) [EntityTracker.class:?]
at net.minecraft.entity.EntityTracker.trackEntity(EntityTracker.java:120) [EntityTracker.class:?]
at net.minecraft.world.WorldManager.onEntityAdded(WorldManager.java:35) [WorldManager.class:?]
at net.minecraft.world.World.onEntityAdded(World.java:1233) [World.class:?]
at net.minecraft.world.WorldServer.onEntityAdded(WorldServer.java:990) [WorldServer.class:?]
at net.minecraft.world.World.spawnEntityInWorld(World.java:1224) [World.class:?]
at com.thvardhan.ytstuff.blocks.LuckyBlock.summonItemWithLoop(LuckyBlock.java:102) [LuckyBlock.class:?]
at com.thvardhan.ytstuff.blocks.LuckyBlock.onBlockDestroyedByPlayer(LuckyBlock.java:70) [LuckyBlock.class:?]
at net.minecraft.server.management.ItemInWorldManager.removeBlock(ItemInWorldManager.java:288) [itemInWorldManager.class:?]
at net.minecraft.server.management.ItemInWorldManager.removeBlock(ItemInWorldManager.java:278) [itemInWorldManager.class:?]
at net.minecraft.server.management.ItemInWorldManager.tryHarvestBlock(ItemInWorldManager.java:317) [itemInWorldManager.class:?]
at net.minecraft.server.management.ItemInWorldManager.onBlockClicked(ItemInWorldManager.java:164) [itemInWorldManager.class:?]
at net.minecraft.network.NetHandlerPlayServer.processPlayerDigging(NetHandlerPlayServer.java:551) [NetHandlerPlayServer.class:?]
at net.minecraft.network.play.client.C07PacketPlayerDigging.processPacket(C07PacketPlayerDigging.java:56) [C07PacketPlayerDigging.class:?]
at net.minecraft.network.play.client.C07PacketPlayerDigging.processPacket(C07PacketPlayerDigging.java:12) [C07PacketPlayerDigging.class:?]
at net.minecraft.network.PacketThreadUtil$1.run(PacketThreadUtil.java:15) [PacketThreadUtil$1.class:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_60]
at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_60]
at net.minecraft.util.Util.runTask(Util.java:22) [util.class:?]
at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:736) [MinecraftServer.class:?]
at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:681) [MinecraftServer.class:?]
at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:159) [integratedServer.class:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:548) [MinecraftServer.class:?]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_60]
Caused by: java.lang.IllegalStateException: Entity is already tracked!
at net.minecraft.entity.EntityTracker.addEntityToTracker(EntityTracker.java:195) ~[EntityTracker.class:?]
... 23 more
[21:26:28] [server thread/ERROR]: "Silently" catching entity tracking error.
net.minecraft.util.ReportedException: Adding entity to track
at net.minecraft.entity.EntityTracker.addEntityToTracker(EntityTracker.java:228) [EntityTracker.class:?]
at net.minecraft.entity.EntityTracker.trackEntity(EntityTracker.java:120) [EntityTracker.class:?]
at net.minecraft.world.WorldManager.onEntityAdded(WorldManager.java:35) [WorldManager.class:?]
at net.minecraft.world.World.onEntityAdded(World.java:1233) [World.class:?]
at net.minecraft.world.WorldServer.onEntityAdded(WorldServer.java:990) [WorldServer.class:?]
at net.minecraft.world.World.spawnEntityInWorld(World.java:1224) [World.class:?]
at com.thvardhan.ytstuff.blocks.LuckyBlock.summonItemWithLoop(LuckyBlock.java:102) [LuckyBlock.class:?]
at com.thvardhan.ytstuff.blocks.LuckyBlock.onBlockDestroyedByPlayer(LuckyBlock.java:70) [LuckyBlock.class:?]
at net.minecraft.server.management.ItemInWorldManager.removeBlock(ItemInWorldManager.java:288) [itemInWorldManager.class:?]
at net.minecraft.server.management.ItemInWorldManager.removeBlock(ItemInWorldManager.java:278) [itemInWorldManager.class:?]
at net.minecraft.server.management.ItemInWorldManager.tryHarvestBlock(ItemInWorldManager.java:317) [itemInWorldManager.class:?]
at net.minecraft.server.management.ItemInWorldManager.onBlockClicked(ItemInWorldManager.java:164) [itemInWorldManager.class:?]
at net.minecraft.network.NetHandlerPlayServer.processPlayerDigging(NetHandlerPlayServer.java:551) [NetHandlerPlayServer.class:?]
at net.minecraft.network.play.client.C07PacketPlayerDigging.processPacket(C07PacketPlayerDigging.java:56) [C07PacketPlayerDigging.class:?]
at net.minecraft.network.play.client.C07PacketPlayerDigging.processPacket(C07PacketPlayerDigging.java:12) [C07PacketPlayerDigging.class:?]
at net.minecraft.network.PacketThreadUtil$1.run(PacketThreadUtil.java:15) [PacketThreadUtil$1.class:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_60]
at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_60]
at net.minecraft.util.Util.runTask(Util.java:22) [util.class:?]
at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:736) [MinecraftServer.class:?]
at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:681) [MinecraftServer.class:?]
at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:159) [integratedServer.class:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:548) [MinecraftServer.class:?]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_60]
Caused by: java.lang.IllegalStateException: Entity is already tracked!
at net.minecraft.entity.EntityTracker.addEntityToTracker(EntityTracker.java:195) ~[EntityTracker.class:?]
... 23 more
[21:26:28] [server thread/ERROR]: "Silently" catching entity tracking error.
net.minecraft.util.ReportedException: Adding entity to track
at net.minecraft.entity.EntityTracker.addEntityToTracker(EntityTracker.java:228) [EntityTracker.class:?]
at net.minecraft.entity.EntityTracker.trackEntity(EntityTracker.java:120) [EntityTracker.class:?]
at net.minecraft.world.WorldManager.onEntityAdded(WorldManager.java:35) [WorldManager.class:?]
at net.minecraft.world.World.onEntityAdded(World.java:1233) [World.class:?]
at net.minecraft.world.WorldServer.onEntityAdded(WorldServer.java:990) [WorldServer.class:?]
at net.minecraft.world.World.spawnEntityInWorld(World.java:1224) [World.class:?]
at com.thvardhan.ytstuff.blocks.LuckyBlock.summonItemWithLoop(LuckyBlock.java:102) [LuckyBlock.class:?]
at com.thvardhan.ytstuff.blocks.LuckyBlock.onBlockDestroyedByPlayer(LuckyBlock.java:70) [LuckyBlock.class:?]
at net.minecraft.server.management.ItemInWorldManager.removeBlock(ItemInWorldManager.java:288) [itemInWorldManager.class:?]
at net.minecraft.server.management.ItemInWorldManager.removeBlock(ItemInWorldManager.java:278) [itemInWorldManager.class:?]
at net.minecraft.server.management.ItemInWorldManager.tryHarvestBlock(ItemInWorldManager.java:317) [itemInWorldManager.class:?]
at net.minecraft.server.management.ItemInWorldManager.onBlockClicked(ItemInWorldManager.java:164) [itemInWorldManager.class:?]
at net.minecraft.network.NetHandlerPlayServer.processPlayerDigging(NetHandlerPlayServer.java:551) [NetHandlerPlayServer.class:?]
at net.minecraft.network.play.client.C07PacketPlayerDigging.processPacket(C07PacketPlayerDigging.java:56) [C07PacketPlayerDigging.class:?]
at net.minecraft.network.play.client.C07PacketPlayerDigging.processPacket(C07PacketPlayerDigging.java:12) [C07PacketPlayerDigging.class:?]
at net.minecraft.network.PacketThreadUtil$1.run(PacketThreadUtil.java:15) [PacketThreadUtil$1.class:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_60]
at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_60]
at net.minecraft.util.Util.runTask(Util.java:22) [util.class:?]
at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:736) [MinecraftServer.class:?]
at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:681) [MinecraftServer.class:?]
at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:159) [integratedServer.class:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:548) [MinecraftServer.class:?]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_60]
Caused by: java.lang.IllegalStateException: Entity is already tracked!
at net.minecraft.entity.EntityTracker.addEntityToTracker(EntityTracker.java:195) ~[EntityTracker.class:?]
... 23 more
[21:26:28] [server thread/ERROR]: "Silently" catching entity tracking error.
net.minecraft.util.ReportedException: Adding entity to track
at net.minecraft.entity.EntityTracker.addEntityToTracker(EntityTracker.java:228) [EntityTracker.class:?]
at net.minecraft.entity.EntityTracker.trackEntity(EntityTracker.java:120) [EntityTracker.class:?]
at net.minecraft.world.WorldManager.onEntityAdded(WorldManager.java:35) [WorldManager.class:?]
at net.minecraft.world.World.onEntityAdded(World.java:1233) [World.class:?]
at net.minecraft.world.WorldServer.onEntityAdded(WorldServer.java:990) [WorldServer.class:?]
at net.minecraft.world.World.spawnEntityInWorld(World.java:1224) [World.class:?]
at com.thvardhan.ytstuff.blocks.LuckyBlock.summonItemWithLoop(LuckyBlock.java:102) [LuckyBlock.class:?]
at com.thvardhan.ytstuff.blocks.LuckyBlock.onBlockDestroyedByPlayer(LuckyBlock.java:70) [LuckyBlock.class:?]
at net.minecraft.server.management.ItemInWorldManager.removeBlock(ItemInWorldManager.java:288) [itemInWorldManager.class:?]
at net.minecraft.server.management.ItemInWorldManager.removeBlock(ItemInWorldManager.java:278) [itemInWorldManager.class:?]
at net.minecraft.server.management.ItemInWorldManager.tryHarvestBlock(ItemInWorldManager.java:317) [itemInWorldManager.class:?]
at net.minecraft.server.management.ItemInWorldManager.onBlockClicked(ItemInWorldManager.java:164) [itemInWorldManager.class:?]
at net.minecraft.network.NetHandlerPlayServer.processPlayerDigging(NetHandlerPlayServer.java:551) [NetHandlerPlayServer.class:?]
at net.minecraft.network.play.client.C07PacketPlayerDigging.processPacket(C07PacketPlayerDigging.java:56) [C07PacketPlayerDigging.class:?]
at net.minecraft.network.play.client.C07PacketPlayerDigging.processPacket(C07PacketPlayerDigging.java:12) [C07PacketPlayerDigging.class:?]
at net.minecraft.network.PacketThreadUtil$1.run(PacketThreadUtil.java:15) [PacketThreadUtil$1.class:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_60]
at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_60]
at net.minecraft.util.Util.runTask(Util.java:22) [util.class:?]
at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:736) [MinecraftServer.class:?]
at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:681) [MinecraftServer.class:?]
at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:159) [integratedServer.class:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:548) [MinecraftServer.class:?]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_60]
Caused by: java.lang.IllegalStateException: Entity is already tracked!
at net.minecraft.entity.EntityTracker.addEntityToTracker(EntityTracker.java:195) ~[EntityTracker.class:?]
... 23 more

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.