Is there any kind of "community recipe book" for CraftTweaker with examples to learn from?
Essentially, while exploring some of the advanced CraftTweaker features, I found it may be an ideal method of cheating my way past the chore of writing custom mods, but I'm having difficulty understanding how to apply certain features just from the documentation alone. I remember back with MineTweaker there were various repos/pages which had lots of example scripts for common tasks, and it was super helpful. Is there currently anything like that for CraftTweaker currently?
As far as the actual script I'm trying to write goes, essentially I'm trying to modify the drops returned when a player with a specific game stage unlocked harvests a specific block. I got as far as creating a handler for the event and checking for the game stage when I realized I have no idea how to compare the IBlock object returned by the event with the one I'm looking for. The docs say something about checking if one IBlockPattern contains another using the "in" keyword, but I have no idea what that looks like syntax-wise.
Thanks for your time, and any help you fine gents might be able to provide.
Posted Jun 17, 2018, 6:05 PM UTC
The craft tweaker wiki should have examples for advanced features https://crafttweaker.readthedocs.io/en/latest/# Click the dropdown menu at the top, then advanced functions. im not a pack developer and have no experience using the mod; so i cant help help much beyond that
You could also open some scripts from popular modpacks like sevtech, hes probably done most of what you're looking for for his recipes
I've been going through the documentation, but I was hoping for something more like a code cookbook like what Minecraft By Example does for proper mods. On the other hand, going through the scripts folder of an existing modpack is definitely a good idea that I hadn't considered.
SevTech has some pretty extensive scripts. That's where I would look for examples.