EntityPrototype.picker_result = item_name (Q-key behavior addition)
Posted: Fri May 31, 2019 3:38 pm
What?
I'd like to specify what type of item a player gets into the cursor when using the Q key to "pick" an item for the selected entity.
Why?
I have an entity that is conditionally converted from a "placer entity". The player uses itemA to build entityA. EntityA is later converted to entityB via script. entityB can not be built directly. But i want the player to get a stack of itemA when they Q-key entityB.
I'd implement this manually, but i don't see a way to put an ItemStack from the main_inventory to the cursor_stack while reserving the slot with a "hand icon" like vanilla does. If that is possible (or was made possible) i'd also be quite happy.
I'd like to specify what type of item a player gets into the cursor when using the Q key to "pick" an item for the selected entity.
Why?
I have an entity that is conditionally converted from a "placer entity". The player uses itemA to build entityA. EntityA is later converted to entityB via script. entityB can not be built directly. But i want the player to get a stack of itemA when they Q-key entityB.
I'd implement this manually, but i don't see a way to put an ItemStack from the main_inventory to the cursor_stack while reserving the slot with a "hand icon" like vanilla does. If that is possible (or was made possible) i'd also be quite happy.