Posted September 5, 201510 yr So I'm trying to spawn a EntityFallingSand, but when I spawn it, it shows me for 1 milisec and then it instant despawns, so I have no idea why if(nbt.getString("EntityID") != ""){ if(!world.isRemote){ WorldServer serverWorld = (WorldServer) world; entity = serverWorld.getEntityFromUuid(UUID.fromString(nbt.getString("EntityID"))); if(entity != null){ if(entity instanceof EntityNotFallingBlock){ EntityFallingBlock efb = new EntityFallingBlock(world, (double)entity.posX + 0.5D, (double)entity.posY, (double)entity.posZ + 0.5D, ((EntityNotFallingBlock) entity).theBlock); efb.getEntityData().setInteger("Time", 1); world.spawnEntityInWorld(efb); } entity.setDead(); stack.setTagCompound(new NBTTagCompound()); } } } Creator of Extra Shoes Watch out, I'm total jerk, and I'll troll anybody if it feels like its necessary. Pls report me then
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.