Modular Machinery

Modular Machinery

12M Downloads

Question/Suggestion: Is it possible to have recipes activate commands?

Duc2k opened this issue ยท 1 comments

commented

As the title says, I'm asking if it is currently possible to have a recipe that's output is a command. For example, a machine that changes the weather or murders things. Is this already possible?

I'm especially focused on the "murders things" part as that is what I would like to do. If it's possible to have a machine kill things without using commands, that could also work. If it isn't, could some kind of support be added to commands if possible? (Like most, I don't know how coding works for mods and don't know how feasible this is).

commented

Looks like it's already possible, but the function isn't documented anywhere. Adding a "startCommands", "processingCommands" or "finishCommands" tag to the root recipe object with an array of commands should do it, though I haven't gotten it to work so far