Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow wildcards in recipe ingredients. #944

Open
IntegratedQuantum opened this issue Jan 17, 2025 · 6 comments
Open

Allow wildcards in recipe ingredients. #944

IntegratedQuantum opened this issue Jan 17, 2025 · 6 comments

Comments

@IntegratedQuantum
Copy link
Member

e.g.

	.{
		.inputs = .{"cubyz:*_planks", "cubyz:iron_ingot"},
		.output = "cubyz:chisel",
	},

Would create one recipe for each different plank type.

@OneAvargeCoder193
Copy link
Contributor

i think tags would be better, as for this if you had an addon that would add new planks, it wouldn't show up because it is searching for cubyz:*_planks

@IntegratedQuantum
Copy link
Member Author

Yeah, that's a good point.

Then it would be

	.{
		.inputs = .{.planks, "cubyz:iron_ingot"},
		.output = "cubyz:chisel",
	},

As long as the tag has no : it should be easy to distinguish from the actual block ids.

@OneAvargeCoder193
Copy link
Contributor

should the tags be custom so that addons can make their own?

@IntegratedQuantum
Copy link
Member Author

Yes, and ideally it would automatically create the tag when its first defined in an item.

@OneAvargeCoder193
Copy link
Contributor

Yeah, that's a good point.

Then it would be

.{
.inputs = .{.planks, "cubyz:iron_ingot"},
.output = "cubyz:chisel",
},
As long as the tag has no : it should be easy to distinguish from the actual block ids.

The issue with this is that you can't specify an amount

@IntegratedQuantum
Copy link
Member Author

The issue with this is that you can't specify an amount

Well since .planks is the same as "planks" to our zon parser, you can always just do "4 planks"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants