Topic category: User side tutorials
Hey, first quick tutorial. Here's how to make a crafting block with a timer for your recipe. It can be extended for different items too, let me know if you would like me to show you how. It's pretty straighforward though.
Let's take a look at my workspace elements:
you can see I've got my:
- gui element
- 13 simple true/false checks for progress pictures in gui
- crafting block
- 2 procedures, one for crafting and one for gui progress picture swapping
let's look at my GUI:
as you can see it's very simple. one slot in, one slot out, some text, some decoration and a progress bar
progress bar is simply made of 13 pictures below:
ok, let's go. first you need to make a crafting block, make it look however you want, but make sure to tick those settings - i use 20 tick rate because 20 ticks = 1 second. default setting for blocks is 10 ticks.
this below is the most important. set slot numbers etc. depending on how your GUI looks.
now make a new procedure in this trigger:
this is the procedure you want to replicate in your workspace. picture should explain everything, if you will have questions, ask in comment.
now go back to your GUI and look in left bottom corner. make a new procedure here:
its really simple - it tells your GUI which progress bar picture to use :)
save everything, now make a new, separate procedure - this is a procedure that you will use to display a progress bar picture.. duplicate it for every progress bar picture you have, so for example my progress bar is made of 13 pictures, because i've set up my crafting to be 12 seconds long (20 update tick = 1 second) so i use 13 pictures (0 progress, 1-11 working, 12 finished)
remember to set up craftTimer number correctly to corresponding procedure name
for example:
gui1.png = 0 (no progress)
gui2.png = 1 (timer is ticking)
etc. etc.
now go back to your GUI mod element and double click every progress picture you have and connect your procedures, example below:
save everything.. and result should look like this https://i.imgur.com/TarH5rb.mp4 :)
if you have any questions ask here or on discord, my nick is Van, i'm on the mctoolkit / nwtg / mchub servers.
Nice tutorial!
Can you leave a sample workspace.
This is great. Thank you!
Chew