How to create a single input single output furnace like block?

Started by Kenneth48482019 on Wed, 01/09/2019 - 12:57

Topic category: Advanced modding

Last seen on 21:16, 21. Jan 2019
Joined Jan 2019
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
How to create a single input single output furnace like block?
Wed, 01/09/2019 - 12:57

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?

Last seen on 14:59, 1. Mar 2019
Joined Dec 2018
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
you need an event when an…
Wed, 01/09/2019 - 20:18

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...).

Last seen on 21:16, 21. Jan 2019
Joined Jan 2019
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
They need to add a wait…
Wed, 01/09/2019 - 21:34

They need to add a wait block :(

Last seen on 21:16, 21. Jan 2019
Joined Jan 2019
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Ok so how would I do the…
Thu, 01/10/2019 - 13:16

Ok so how would I do the summon thing?

Last seen on 13:05, 21. Jun 2019
Joined Feb 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
No, not at all. You see,…
Tue, 02/12/2019 - 13:38

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.