Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-5948

EntityDropItemEvent does not fire when piglins drop an item.

XMLWordPrintable

    • 05.07 18:17:49 [Server] Server thread/INFO This server is running CraftBukkit version git-Spigot-ccb012a-4309566 (MC: 1.16.1) (Implementing API version 1.16.1-R0.1-SNAPSHOT)
    • Yes

      When piglins toss out an item The EntityDropItemEvent is not fired.

       

      Example code in a listener:

      @EventHandler
      	public void onEntityDrop(EntityDropItemEvent e) {
      		System.out.println("Drop fired: " + e.getEntity().getType().name());
      		if(e.getEntity() instanceof Piglin) {
      			Item item = e.getItemDrop();
      			System.out.println("Barter drop? " + item.getType().name());
      		}
      	}
      

      Neither debug message fires when a piglin tosses out an item.

            Unassigned Unassigned
            whoolieshop Shane Martin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: