Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-83838

ShulkerBullet NBT gets corrupted when (Owner,) Target and Pos position are equal

XMLWordPrintable

    • Unconfirmed

      When two Shulkers are at the same spot (it seems like this can happen in normal Survival as well) and shoot, they hit each other. This causes the ShulkerBullets to have for Pos, Target and Owner the same coordinates which leads to NaN values for the Motion, TXD, TYD and TZD.

      ShulkerBullet corrupted NBT data
      {
      	Air:300s,
      	Dimension:1,
      	FallDistance:0.0f,
      	Fire:0s,
      	id:"ShulkerBullet",
      	Invulnerable:0b,
      	Motion:[
      		nand,
      		nand,
      		nand
      	],
      	OnGround:0b,
      	Owner:{
      		L:-6230630263625411092l,
      		M:4101266032947511938l,
      		X:3938,
      		Y:158,
      		Z:1033
      	},
      	PortalCooldown:0,
      	Pos:[
      		3938.5d,
      		158.5d,
      		1033.5d
      	],
      	Rotation:[
      		0.0f,
      		0.0f
      	],
      	Steps:24,
      	Target:{
      		L:-6230630263625411092l,
      		M:4101266032947511938l,
      		X:3938,
      		Y:158,
      		Z:1033
      	},
      	TXD:nand,
      	TYD:nand,
      	TZD:nand,
      	UUIDLeast:-7612984393156428520l,
      	UUIDMost:-6786694156896809923l
      }
      

      Possible reason

      Probably because somewhere it divides the distance by the distance to the Owner maybe, because 0/0 = NaN

            grum [Mojang] Grum (Erik Broes)
            marcono1234 [Mod] Marcono1234
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: