Started by
Kenneth48482019
on
Topic category: Advanced modding
Hi, I am trying to make a block called a sawmill. It requires no fuel, but when someone places a log in the input slot, like a furnace it begins to smelt (or in this case saw) the log into a plank. The GUI has only one input and one output. Does anyone know what I can do to begin making this?
you need an event when an item is put in the input slot, which first detects what item it is, and then summons a custom invisible mob (there are no wait blocks so you have to use mob's ticks...) and when the mob dies, it activates an event that sets the obtained item in the output slot (sorry, I'm very bad at explaining...).
They need to add a wait block :(
Ok so how would I do the summon thing?
No, not at all. You see, only blocks have a tick function (20 ticks : 1 second.) So, if you want your sawmill to saw, then make it check if there are any logs every "x" ticks and make it turn "x" logs into "x" planks.
"x" : random number of your choice
Btw, how did you even reach the conclusion of using mob ticks? These don't even have advanced tick functions to begin with. All they do and are able to do is simply count every tick in the game.