Skip to content

Player Simulator with click item config spawn Air ItemEntity every tick #348

@pharuxtan

Description

@pharuxtan

Issue type:

  • 🐛 Bug

Short description:

When using the Player Simulator with a Variable Card in the Click Item slot to right click a block with an item, it spawn an ItemEntity with minecraft:air every tick.

Steps to reproduce the problem:

  1. Place a block that need to be right clicked with a non stackable item to work
  2. Place a Logic Cable at a side of it
  3. Connect a Player Simulator faced to the block
  4. Add the Variable Card configured with the item needed for the right click interaction
  5. Add a Chest at a side of the Logic Cable with your item needed in it
  6. Add an Item Interface facing the chest from the Logic Cable
  7. Check the nearest item entity tag with /data get entity @e[type=item,limit=1,sort=nearest], you should see an "Air" ItemEntity

Expected behaviour:

Player Simulator right clicking the block without any empty ItemEntity spawned in the world


Versions:

  • This mod: Integrated Tunnels 1.9.0
  • Minecraft: 1.21.1
  • Mod loader version: NeoForge 21.1.209

Log file:

With KJS implementation to gather the stack trace of the spawned ItemEntity it gives this: https://hastebin.com/share/nolotugasi.bash

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions