Programatically run MineTweaker script?

  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

OreCruncher

Well-Known Member
Mod Developer
May 22, 2013
312
217
73
My Chair
Hey all!

I was wondering if there was a way to run a MineTweaker script from a mod? What I want to do is have a script embedded in the mod file, and execute it during mod initialization. I looked at the MineTweaker API and did not see anything like this, but I am hoping I overlooked an entry point.

Thanks!
 
Couldn't you let the mod write the script in the appropriate path (and if needed delete it when closing the game)

Sent from my SM-G925F using Tapatalk
 
  • Like
Reactions: SatanicSanta
Couldn't you let the mod write the script in the appropriate path (and if needed delete it when closing the game)

It's a possibility, though I would have to take into account scripts being upgraded inside the jar when a new version of the mod is deployed. Concern would be if someone goes in and tweaks the scripts rather than creating their own. Also, I would want the scripts inside the mod to run first before external scripts and that would be hard to control.
 
  • Like
Reactions: Type1Ninja