mojira.dev
MC-79870

Falling block entity above Y 320 drops as item after 100 ticks

When you have FallingSand above Y 320 it drops really quick.

It appears that according to the wiki, this behavior is the case for y < 0 however I am not sure if this makes sense for y > 320

When Time goes above 600, or above 100 while the block is below Y=0, the entity is deleted.

Source

Code of /Client/src/net/minecraft/entity/item/EntityFallingBlock.java (MCP 1.8 name)

if (this.worldObj.getBlockState(var2).getBlock() != Blocks.piston_extension)
{
	//...
}
else if (this.fallTime > 100 && !this.worldObj.isRemote && (var2.getY() < 1 || var2.getY() > 256) || this.fallTime > 600)
{
	if (this.shouldDropItem && this.worldObj.getGameRules().getGameRuleBooleanValue("doTileDrops"))
	{
		this.entityDropItem(new ItemStack(var1, 1, var1.damageDropped(this.field_175132_d)), 0.0F);
	}

	this.setDead();
}

Linked issues

Attachments

Comments 6

Is this still an issue in the latest snapshot 16w44a? If so please update the affected versions.

This is an automated comment on any open or reopened issue with out-of-date affected versions.

Confirmed for 1.13.1.

Confirmed in 1.15.2 and 1.16 Pre-release 5.

Confirmed for 20w06a. Now it is 320 instead of 256 since the build hight limit was changed.

For easier reproduction, put this command into a command block to sumon the falling sand block:

/summon armor_stand ~ ~ ~ {NoGravity:1b,Invisible:1b,ArmorItems:[{},{},{},{id:"minecraft:air",Count:1b}],Passengers:[{id:"falling_block",BlockState:{Name:"minecraft:sand"},Time:1}]}

marcono1234

(Unassigned)

Confirmed

Platform

Low

Entities

drop, entity, falling_block, item

Minecraft 1.8.4, Minecraft 15w44b, Minecraft 16w36a, Minecraft 1.11.2, Minecraft 1.13.1, 1.15.2, 1.16 Pre-release 5, 1.21.1

Retrieved