Picking up an item the same tick the item spawns and the inventory is updated glitches the inventory
Steps to Reproduce
- Load the addon on to a world with the scripting experiment turned on
- Break a grass block using the custom stick item in survival mode
- Open your inventory and try to move the redstone dust in your inventory
- The slot it glitched and the only way to fix it is to close your inventory and drop it from the hotbar which updates the slot and gives you another redstone
Notes
- It has something to do with custom components changing the item because removing it fixes the bug
- If there is no redstone dust in your inventory when you do the bug the slot that it was supposed to be picked up in becomes glitched which doesn't allow you to put any item into it. I couldn't find a way to fix this other then restarting the world
Created Issue:
Picking up an item the same tick that it spawns glitches the inventory
- Spawn an item at your location using dimension.spawnItem() in a addon script or some other way
- The item should be picked up on the same tick but it won't show up in the inventory
- The slot it was supposed to be added to will become glitched and no items can be placed in it or taken out
Added Attachments:
Changed Description:
Spawn an item at your location using dimension.spawnItem() in a addon script or some other wayThe item should be picked up on the same tick but it won't show up in the inventoryThe slot it was supposed to be added to will become glitched and no items can be placed in it or taken out
- Load the addon on to a world with the scripting experiment turned on
- Break a grass block using the custom stick item in survival mode
- Open your inventory and try to move the redstone dust in your inventory
Changed Description:
- Load the addon on to a world with the scripting experiment turned on
- Break a grass block using the custom stick item in survival mode
- Open your inventory and try to move the redstone dust in your inventory
- The slot it glitched and the only way to fix it is to close your inventory and drop it from the hotbar which updates the slot and gives you another redstone
Changed Description:
Steps to Reproduce
- Load the addon on to a world with the scripting experiment turned on
- Break a grass block using the custom stick item in survival mode
- Open your inventory and try to move the redstone dust in your inventory
- The slot it glitched and the only way to fix it is to close your inventory and drop it from the hotbar which updates the slot and gives you another redstone
Notes
- It has something to do with custom components changing the item because removing it fixes the bug
Changed Summary:
Picking up an item the same tick that it spawns and the inventory is updated glitches the inventory
Changed Summary:
Picking up an item the same tick that it spawns andtheinventory is updated glitches the inventory
Changed Summary:
Picking up an item the same tick thatit spawns and inventory is updated glitches the inventoryPicking up an item the same tick the item spawns and the inventory is updated glitches the inventory
Changed Description:
Steps to Reproduce
- Load the addon on to a world with the scripting experiment turned on
- Break a grass block using the custom stick item in survival mode
- Open your inventory and try to move the redstone dust in your inventory
- The slot it glitched and the only way to fix it is to close your inventory and drop it from the hotbar which updates the slot and gives you another redstone
Notes
- It has something to do with custom components changing the item because removing it fixes the bug
- If there is no redstone dust in your inventory when you do the bug the slot that it was supposed to be picked up in becomes glitched which doesn't allow you to put any item into it. I couldn't find a way to fix this other then restarting the world
Added Attachments:
Removed Attachments:
Added ADO: 1358086
Please attach an add-on that can be used to reproduce the issue.
Can confirm.