Pacca
- Pacca
- JIRAUSER514612
- America/Los_Angeles
- Yes
- No
If your gamemode is switched between survival and creative via a datapack when you pick up an item in your inventory with your cursor, that item will be unexpectedly deleted. This makes it difficult to create datapacks or gamemodes that involve switching between the two, especially if important items are involved, or if those items are supposed to trigger the gamemode change themselves.
Specific timing seems to be involved; it occasionally drops the item on the ground like you'd expect if a clock randomly changes your gamemode when holding items. It only deletes the item 100% of the time if you make it switch gamemodes in response to the item not being in your inventory.
Steps to reproduce:
- obtain an item in survival
- Make a datapack that changes your gamemode when a specific item is in your inventory
- Attempt to move that item in your inventory
What I'd expect to happen: The item remains under my cursor, or is dropped in front of me
What actually happens: The item disappears.
If your gamemode is switched between survival and creative via a datapack when you pick up an item in your inventory with your cursor, that item will be unexpectedly deleted. This makes it difficult to create datapacks or gamemodes that involve switching between the two, especially if important items are involved, or if those items are supposed to trigger the gamemode change themselves.
Steps to reproduce:
- obtain an item in survival
- Make a datapack that changes your gamemode wh
en a specific item is in your inventory- Attempt to move that item in your inventory
What I'd expect to happen: The item remains under my cursor, or is dropped in front of me
What actually happens: The item disappears.
If your gamemode is switched between survival and creative via a datapack when you pick up an item in your inventory with your cursor, that item will be unexpectedly deleted. This makes it difficult to create datapacks or gamemodes that involve switching between the two, especially if important items are involved, or if those items are supposed to trigger the gamemode change themselves.
Steps to reproduce:
- obtain an item in survival
- Make a datapack that changes your gamemode while your in your inventory screen (on an interval, triggered by another player, etc.)
- Attempt to move that item in your inventory, and hold it as your gamemode changes
What I'd expect to happen: The item remains under my cursor, or is dropped in front of me
What actually happens: The item disappears.