I need help with two procedures (Boiling water and Gathering ash)

Started by James Sylar on Sun, 05/31/2020 - 22:37

Topic category: Help with modding (Java Edition)

Last seen on 05:23, 7. Jul 2021
Joined Feb 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I need help with two procedures (Boiling water and Gathering ash)
Sun, 05/31/2020 - 22:40 (edited)

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. 

https://imgur.com/pksrUHV

https://imgur.com/o0yhcYr

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.

https://imgur.com/NJ8YiKj

https://imgur.com/yK6aht7

Any help will be appreciated. 

Edited by James Sylar on Sun, 05/31/2020 - 22:40
Last seen on 00:51, 3. Nov 2020
Joined Apr 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
for your second issue local…
Sun, 06/14/2020 - 13:01

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.

 

Last seen on 00:51, 3. Nov 2020
Joined Apr 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
could you write out exactly…
Sun, 06/14/2020 - 13:41

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

Last seen on 05:23, 7. Jul 2021
Joined Feb 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Hey, thanks for replying,…
Sun, 06/21/2020 - 01:19

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.