Programatically run MineTweaker script?

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!
 

Querdenker_9

New Member
Jul 29, 2019
5
0
0
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

OreCruncher

Well-Known Member
Mod Developer
May 22, 2013
312
217
73
My Chair
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