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

    • Crysyn

      Only help if you can be helpful

      Hey All, A topic has come up of late in the IRC channel in regards to the general feel of the forums and the community that supports them. Things have progressed further than I would have liked with out this being addressed more publicly because I would much rather have snubbed this out sooner rather than later.. but I have been busy. Here is the general rule I would like people to follow: Wheaton's Law "Don't be a dick." Those of you from the IRC channel know that this is the only rule I ask people in there to follow and we generally have a good and lively time chatting about all manner of things. This is basic rule that just about everyone understands and I am going to expand it to the forums from here moving forward. If you can not help people in a helpful and polite manner then I simply ask you to stop. Now I generally take a back seat to moderating the forums as I like to participate in the suggestions forum fairly heavily at times and would rather do so as a forums user than a moderator. But I am also fairly well known for being the person who constantly puts their foot down and so I am stepping up and doing so on here. If you find yourself unable to respond to a message politely then I ask that you do not respond. This mostly focuses on the increasing level of hostility found within the Suggestion forum as well as the Server forum. I do not care if this is the 30th some odd time you have seen someone make the same suggestion. Or even if the new post on an older topic is one entry above the old one. I expect the members of this forum to respond politely to the user, new or old, and point to the older topic if it applies and even go the extra step to suggest they either add in new information or to summarize the outcome of the previous discussion based upon the new post's entry into it. That is what we are here for, that is why I close most topics instead of deleting them, so that they can be found and referenced down the road. The next topic is the slew of derailment attempts I have seen as of late. If you want to have fun and joke around that is what the off topic forum is for and pretty much anything goes there. I do not expect to read a suggestion thread and have to go through 3 pages of image memes people have shot back and forth. Quite simply this is a waste of my time to read and then have to clean up. Now for the summary. I am going to start taking a more active role, especially in policing the suggestion forum, and handing out warn levels to people whom I see doing this. These will be indiscriminate and applied not to just the first person who derails or is impolite on a topic or response, but to everyone whom follows the lead of that person. As I do not like doing things with out giving you all warning this post shall serve as that warning. If you have a desire to bring this topic up with me then I invite you to do so on the IRC channel. Lets raise the level of quality and grow the community. Let us not descend into the quality often found on the minecraft or league of legend forums. There is simply no need for that here. Be passionate about things, just do not be abusive.
    • Kittychanley

      Offline Servers

      Recently I've seen a few server listings showing up on the first page of the Servers forum that have been closed for an extended period of time, but have recently gotten a reply from a new member who didn't realize the server is offline. To help prevent this from happening in the future, it would be greatly appreciated if you could use the report function on the original post of any servers that have been confirmed as offline, so that the topic may be locked. If you are the admin of a server and plan on taking the server offline, please use the report function on the original post of your topic to let the TFC Staff know that the topic should be locked. If you are the admin of a server that has a locked topic, and would wish to bring the server back online, please use the report function on the original post of the topic to let the TFC Staff know that the topic should be unlocked. As always, please remember to follow rule #3 of the servers forum and update your topic title to contain the version of TFC that the server is currently running. You can do so by editing the OP, and then clicking on "Use Full Editor."

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