Rustic

Rustic

47M Downloads

[Suggestion] Inventory Spawning For Wildberries

ChloeDawn opened this issue ยท 2 comments

commented

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.

commented

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.

commented

About to release an update with this included.