GUI with multiple output options

Started by KingBugz on

Topic category: Help with modding (Java Edition)

Last seen on 05:06, 6. Jul 2023
Joined Sep 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
GUI with multiple output options

I will try and put this the best I can. What I want to know how to make is a block that can take another kind of block, and when put into the input slot, display the output options. I want the item needed for the specific output option that is selected to be pulled from the player's inventory. But I want the output options of the input block to be displayed even if the player does not have the item need to create it.

I will leave examples to try and show more what I'm going for.

Layout             Example

You can place items in…
Mon, 08/26/2019 - 16:31

You can place items in multiple slots with one procedure. But the issue is that you need to remove all items from all slots when the item is taken from the output slot. Output slots do not have events yet, but they will do in 1.9.1 so you will be able to make such inventory in 1.9.1

https://twitter.com/PyloDEV/status/1163808653918363648

Last seen on 19:18, 21. Dec 2021
Joined Dec 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yeah i have a similar…
Tue, 05/25/2021 - 15:31

Yeah i have a similar problem. I want to make that, but the different output slots use different amounts of items from the input slot.
Say in the input slot there is stone.

in the output slots there are:
Iron, Coal, Redstone, Diamond, Netherite, Gold, Lapis, And Emeralds.
Pricing:
1 Coal = 2 Stone
1 Iron = 5 Stone
1 Redstone = 3 Stone
1 Gold = 6 Stone
1 Lapis = 4 Stone
1 Emerald = 40 Stone
1 Diamond = 32 Stone
1 Netherite = 64 Stone

I also want to create a system that tells you the price by hovering over the items in the output slots.
Or at least puts the unaffordable items in a red box and the affordable ones in plain boxes.

Last seen on 19:18, 21. Dec 2021
Joined Dec 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
@Klemen                     …
Fri, 05/28/2021 - 12:52

@Klemen                             help?

Last seen on 19:18, 21. Dec 2021
Joined Dec 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
@Klemen   Yeah i have a…
Wed, 06/02/2021 - 14:48

@Klemen
 

Yeah i have a similar problem. I want to make that, but the different output slots use different amounts of items from the input slot.
Say in the input slot there is stone.

in the output slots there are:
Iron, Coal, Redstone, Diamond, Netherite, Gold, Lapis, And Emeralds.
Pricing:
1 Coal = 2 Stone
1 Iron = 5 Stone
1 Redstone = 3 Stone
1 Gold = 6 Stone
1 Lapis = 4 Stone
1 Emerald = 40 Stone
1 Diamond = 32 Stone
1 Netherite = 64 Stone

I also want to create a system that tells you the price by hovering over the items in the output slots.
Or at least puts the unaffordable items in a red box and the affordable ones in plain boxes.