Jump to content

EntityFallingBlock wont fall/spawn


Kloonder

Recommended Posts

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

Link to comment
Share on other sites

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.

Announcements



×
×
  • Create New...

Important Information

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