Frinn38 / Custom-Machinery

A Minecraft Mod about creating cutom machines that works
GNU Lesser General Public License v3.0
45 stars 17 forks source link

[Suggestion] Add the ability to have choice of output #58

Open ChiefLogan3010 opened 2 years ago

ChiefLogan3010 commented 2 years ago

One of my favourite vanilla additions in recent years is the stonecutter, however it’s limited in its use cases due to only having one input and output slot. My suggestion is adding the ability to create recipes with a choice of output similar to the stonecutter, while also allowing all of the other recipe conditions that make this mod great.

As an example, a packdev could add an anvil “machine” which has input slots for ingots and a hammer, but gives the player the choice of creating a rod, plate, nuggets or some custom item like a pickaxe head, all of which consumes durability from the hammer. There could also be a second output slot for any leftover material in the form of nuggets.

Another use case could be a circuit assembly machine, which consumes energy and has input slots for things like redstone, wires and plastic sheets, with a fluid input for molten lead for soldering. The player could then choose to make different circuits that consume different resources, which then go on to be used as a crafting material in other machines.

Frinn38 commented 2 years ago

That would be an awesome feature, I planned to rewrite a good part of the crafting process anyway, will try to add it.

ChiefLogan3010 commented 2 years ago

Glad to hear you like the idea! I hope it’s not too difficult to add. What MC version are you planning the rewrite for?

Frinn38 commented 2 years ago

All new features are for 1.18 version.

ChiefLogan3010 commented 2 years ago

Ah good, I was worried it might be for 1.19

ChiefLogan3010 commented 9 months ago

Hi there @Frinn38, it's been a while and I have somewhat ironically moved on to 1.19.2, I was just wondering if this was still something you have planned for the mod or if I should look into alternate ways of achieving the same?

Frinn38 commented 9 months ago

It's kinda possible now, you can add buttons on the machine gui that requires to be pressed by the player to craft a recipe. I still plan to make a stonecutter like gui element with several buttons that allows only one of them to be pressed at a time but this still isn't implemented (that's why I didn't close this issue).

ChiefLogan3010 commented 9 months ago

I wondered about buttons, but am I right in thinking all buttons would be the same no matter what you input into the machine? Or can buttons change dynamically based on input?

Frinn38 commented 9 months ago

Nope indeed the buttons would always be the same