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

Given Items/Blocks Appearing As Invisible In Inventory.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 1.19.4, 1.20 Pre-release 1
    • Windows 11, Java OpenJDK 8u151 platform binary
    • Unconfirmed
    • Survival
    • (Unassigned)

      I set up a command chain that would run commands to give the player a block (the same type they placed) if they placed that block at a certain coordinate. After they received the block, the next command in the chain would fill the block that they had just placed with air, essentially returning the block that the player had placed into their inventory without them having break it first. However, when the player received the block it didn't show up in the inventory. The item was still technically there, but there was zero visual indication that they did indeed have the same type of block in their inventory that they had placed at those specific coordinates (other than the command block output in chat verifying that the play had been given the block). 

      The commands I used are as follows:

      • /execute if block -13 219 -9 dirt run give @a dirt - This is typed into a Repeating Command Block that is set to Unconditional, and Always Active. This is being pointed into a Chain Command Block 
      • /execute if block -13 219 -9 dirt run fill -13 219 -9 -13 219 -9 air - This is typed into the Chain Command Block that is interfacing with the Repeating Command Block and it is set to Conditional, and Always Active.  

      I provided a short clip of this bug in the attachments section. 

       

            Unassigned Unassigned
            KnotXackly KnotXackly
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: