
[Suggestion] Inventory Spawning For Wildberries
ChloeDawn opened this issue ยท 2 comments
It would be nice if it tried to place the picked wildberries in the player's inventory slots before falling back to spawning it as an entity in the world.
Suggested implementation:
if (!player.addItemStackToInventory(stack)) {
Block.spawnAsEntity(world, pos.offset(player.getHorizontalFacing().getOpposite()), stack);
}
Alternatively, player.inventory.addItemStackToInventory(stack)
will perform the same action, but without an equipping sound.