Help "Building an own smeltery block for moditems"

Started by ExAm on

Topic category: Help with Minecraft modding (Java Edition)

Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Help "Building an own smeltery block for moditems"

Hi guys.

 

I am working atm on my own modification and started with the first items.

Now i have the problem that i want to add a machine that smelt me the item into an ingot.

I could figure out something but now my knowledge is at the end :(

Here is the logic procedure i want:

---

WHILE <In Slot "IDInput" of machine is item "IDspecified"> AND <In Slot "IDOutput" stack NOT 64> THEN

- <Change front and back texture of machine>

- <wait 20 ticks>

- <Remove item from "IDInput" 1 time>

- <Add Ingot in "IDOutput" 1 time>

END OF WHILE

- <Change front and back texture>

---

My problem are the parts "change texture" and "wait 20 ticks"

I hope there is anybody out there who can help me :)

When this problems are solved i can make all finish up to upload the mod as an alphaversion.

Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i think that not possible…
Sat, 03/28/2020 - 11:57

i think that not possible because if you want the block to change texture you either need animated texture or blockstate like change form unlit custom furnace to lit custom furnace and that completely delete the block but i think you can do like check for the number of item and then set new block with the same amount of item texture part done.now the procedure for smelting https://www.youtube.com/watch?v=0vnkebRDZfY please note that you need to change the setting to alter your gui because the template set the get number on slot id 16 you need to change that

Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
also if you want any help…
Sat, 03/28/2020 - 12:21

also if you want any help just ask me(thought im in s.e)

Joined Feb 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You can use the procedure: …
Sun, 03/29/2020 - 00:42

You can use the procedure: (replace the block at: <x, y, z> with <block> and keep the state, keep nbt / inventory) to "change" the texture of the block, in fact it will replace the block with another one with the desired texture and with the same function, maintaining the inventory, the status of the block and the nbts tags of the previous block.

And to do things every 20 ticks, just set the tick rate of the blocks to 20, that is, if the code is placed in (Update Tick)

Another thing ... I'm afraid that using your logic the game will get stuck in the While, I would use one (break out of the loop) after doing the action

Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
yes the template get some…
Sun, 04/05/2020 - 09:18

yes the template get some bug so it crash

Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I could handle it with…
Mon, 04/06/2020 - 15:36

I could handle it with tickrate of the block and block-changing. Thx guys