Started by
KingBugz
on
Topic category: Help with Minecraft modding (Java Edition)
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.
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
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.
@Klemen help?
@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.