Topic category: Help with Minecraft modding (Java Edition)
Good evening everyone, I'm trying to make a Dr. Stone based mode. Currently I'm making an "ash collector" and a "boiling pot" that I can quite figure how to make them work:
Ash Collector: I made this one so that whenever it is placed bellow a lit furnace, it collects 1 bag of wood ash by tick, and it supposedly goes to place them in groups of 64 in each slot, and whenever one is full, it jumps to the next. This last step is the problem, it doesn't jump. I have managed to get it to fill the second, third and fifth slot in several attempts and configurations, but right now it is back to just filling the first slot.
Boiling Pot: This one is placed above a lit furnace, and it boils things whenever they are placed alongside a bucket of water. I wanted to make it so the water in the bucket is consumed after 10 or so uses, but this isn't working.
Any help will be appreciated.
for your second issue local variables only store during that instance of the procedure. i recommend using nbt on the block to count how many uses of water it has used then when its ten set the nbt to 0 and clear the water. for the first I'll get back to you.
could you write out exactly what you want the ash collector to do like do you want it to add to the lowest slot with ash then if there is no slot with ash or if they are all full to start from slot 0 or the lowest non filled slot.
if so you would first want to check if a slot has the item below the max stack you could do this by using a while or repeat loop thath chechks a local var#1 slot for if it has less then 64 and item = ash then add to it break out of loop else if it is empty and local var != max number of slots or if it is full then add 1 to the local var#1 then check if local var#1 = max slots and it is an empty then add 1
and if you don't understand what just said then use this
https://imgur.com/VxOCMzW
Hey, thanks for replying, and sorry for taking so long to answer, I didn't checked this forum until today. I managed to get the Ash collector working with something similar to what you said, and I modified the Boiling Pot so it used the water before the process started, but I messed it somehow and it gives 10 of the output item even it there were less than 10 in the input. I'll see if I can make it work in other way with the NBT tags.