Add stack splitting

This commit is contained in:
2026-05-17 11:47:44 -07:00
parent b48595f70d
commit 555ad6df25
7 changed files with 155 additions and 1 deletions
+4 -1
View File
@@ -497,7 +497,10 @@ Target deliverable: A small group can join a server, spawn into one biome, gathe
- [x] Add item drop. Added server-authoritative `AgrarianDropItem ItemId
Quantity`, inventory stack extraction that preserves dropped stack metadata,
pickup spawning in front of the player, and restore-on-spawn-failure handling.
- [ ] Add stack splitting.
- [x] Add stack splitting. Added server-authoritative
`SplitStackByIndex`/`AgrarianSplitStack StackIndex SplitQuantity` support that
validates source slot, quantity, and free slot capacity, preserves stack
metadata, creates a separate stack slot, and avoids immediate re-merge.
- [ ] Add item use.
- [ ] Add equipment slots if needed.
- [ ] Add weight or carry capacity placeholder.