Content: Slate Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate Marble
Background: Slate Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate Marble
Pattern: Blank Waves Notes Sharp Wood Rockface Leather Honey Vertical Triangles
Welcome to TerraFirmaCraft Forums

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.

  • Announcements

    • Dries007

      Server Move   09/13/18

      I (Dries007) have recently taken over as main developer and server admin. This involved moving servers to reduce cost. It's likely there will be some more downtime in the future but most  things should be sorted by now. This forum is in dire need of replacement as the software is quite old and can't be easily updated. If you wish to discuss or stay updated, join our discord: The forum will remain available to read, but will be locked in the future, when a new system is setup. The forum and wiki are now ad free. If you'd like to contribute to keeping it that way, you can do so via paypal or patreon.

Simple addition to split food

3 posts in this topic

This is an idea about how to split food in half with one click, very simply and intuitively, keeping with the vanilla mechanics.


Right click on piece of food: Check if knife is in inventory (already implemented with S and D), split food item in half, one half in slot where food was, one half on cursor.


This is the same mechanic as splitting a stack of blocks in half - right click on it - so it should be very intuitive.Also should not be very hard to code. [Please Confirm]


Share this post

Link to post
Share on other sites



Also, display weight, not as white bar, but as a number just as if it were a stack. Maybe color the number to indicate decay.


Share this post

Link to post
Share on other sites

Much easier said than done. This is not something that is very easy to code. It's possible, but not easy. The S and D key basically simulate shift clicking food. It's much harder for us to hook into Minecraft's right-click inside an inventory functionality.


Edit: To explain a bit more about this.


As it is, both the D and the S key are coded as somewhat of a hack. It is not a clean implementation, and it was not very easy to do. This is why the hotkeys only work when you are in your inventory with a crafting grid, and why they do not work in any other inventory such as a chest, or a vessel.


As for the argument of intuitive, in order for it to actually be intuitive, we would need to copy the full vanilla behavior of moving, splitting, and combining stacks.



Stacks can be grabbed by pressing left click on the stack, and split by pressing right click. If the stack is an odd quantity, then it will leave the smaller half (for example, a stack of 7 will leave 3 items in the slot and grab 4). Conversely, while holding a stack in the inventory, left click will place the full stack in the slot, and right click will place just one item. Double clicking an item will grab up to a full stack from all the items within the inventory.

Dragging items around with the left mouse button will equally divide the stack over the dragged-over slots, while dragging item stacks around with the right mouse button will place one of that stack in each dragged-over slot, in both cases only if the slot is empty or contains the same item being dragged.


The very first thing that I can see happening if this is implemented is bug reports from players who right click on their food, and think that they have duplicated it because now they have two pieces instead of one. Many players still do not understand the weight system, and I still get reports from players who think they duplicated their food because they crafted an undecayed piece with a knife, and got a bunch of pieces back.


It will also be very frustrating, and unintuitive if you can right-click to split a stack, but you cannot left-click to combine two stacks together. So there's another feature that is very difficult to code that would have to be added.


Many players also forget about the knife requirement. They are confused enough when trying to hit D and nothing happens. Imagine how confused they will be when they attempt to split a stack, but it does not work?


Just like the S and D keys, there would also be the dependency of the crafting grid, so many players would still be frustrated because they won't be able to split the stack in a small vessel or a barrel (which I'm guessing are the two primary places where you would want this to work). Players would be forced to first split the food in their inventory, and then open up the container to place it inside.


There's also the "place one item" vanilla functionality that has to be considered, which happens both when the player right clicks on a slot, or right-click drags across slots. What exactly would be considered "One Item" in TFC? IIRC, the smallest stack size for food when cutting it into pieces is 1.25 ounces. I strongly doubt that players want that small a piece of food when they accidentally right click to place instead of left click. And once again vanilla has the combining of stacks integrated into the system as well, so if player right clicks, are they expected to continue to right click, each time adding 1.25 ounces until they get the size of food that they want? If it did work that way, the durability of the knife would have to be used for every action, and it's likely you would start breaking your knives very very quickly.


@Munin - We chose to use a white bar rather than a number specifically because of how many decimal points the weight system uses. The number 160 covers up a good chunk of the slot already, let alone if it was a partial stack of say 123.45 ounces. You could argue that we could just round the weight even further to be whole numbers, but will likely just confuse players when they trim off decay and it doesn't remove as much, or more than they expected.


Posted Image


If you haven't already read these two threads regarding splitting food, I suggest you do so:


Share this post

Link to post
Share on other sites