<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://minetweaker3.aizistral.com/index.php?action=history&amp;feed=atom&amp;title=Mod_Script_Execution</id>
		<title>Mod Script Execution - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://minetweaker3.aizistral.com/index.php?action=history&amp;feed=atom&amp;title=Mod_Script_Execution"/>
		<link rel="alternate" type="text/html" href="https://minetweaker3.aizistral.com/index.php?title=Mod_Script_Execution&amp;action=history"/>
		<updated>2026-05-08T12:54:43Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.24.0</generator>

	<entry>
		<id>https://minetweaker3.aizistral.com/index.php?title=Mod_Script_Execution&amp;diff=701&amp;oldid=prev</id>
		<title>Aizistral: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://minetweaker3.aizistral.com/index.php?title=Mod_Script_Execution&amp;diff=701&amp;oldid=prev"/>
				<updated>2025-08-21T00:17:29Z</updated>
		
		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 00:17, 21 August 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan='2' style='text-align: center;'&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Aizistral</name></author>	</entry>

	<entry>
		<id>https://minetweaker3.aizistral.com/index.php?title=Mod_Script_Execution&amp;diff=700&amp;oldid=prev</id>
		<title>Stan: Created page with &quot;Since version 3.0.8, it is now possible for Forge mods to send IMC messages to execute scripts in MineTweaker:   NBTTagCompound nbtData = new NBTTagCompound();  nbtData.setStr...&quot;</title>
		<link rel="alternate" type="text/html" href="https://minetweaker3.aizistral.com/index.php?title=Mod_Script_Execution&amp;diff=700&amp;oldid=prev"/>
				<updated>2014-08-31T18:09:23Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;Since version 3.0.8, it is now possible for Forge mods to send IMC messages to execute scripts in MineTweaker:   NBTTagCompound nbtData = new NBTTagCompound();  nbtData.setStr...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Since version 3.0.8, it is now possible for Forge mods to send IMC messages to execute scripts in MineTweaker:&lt;br /&gt;
&lt;br /&gt;
 NBTTagCompound nbtData = new NBTTagCompound();&lt;br /&gt;
 nbtData.setString(&amp;quot;name&amp;quot;, &amp;quot;virtualscript.zs&amp;quot;);&lt;br /&gt;
 nbtData.setString(&amp;quot;content&amp;quot;, &amp;quot;print(\&amp;quot;Hello World\&amp;quot;)&amp;quot;);&lt;br /&gt;
 FMLInterModComms.sendMessage(&amp;quot;MineTweaker3&amp;quot;, &amp;quot;addMineTweakerScript&amp;quot;, nbtData);&lt;br /&gt;
&lt;br /&gt;
The name parameter provides the script name. Take care with the script name you give it - MineTweaker scripts can override your script if it has an equal name. This can be handy to make it possible for servers or modpacks to override the content of your script - for instance to make recipes modifyable.&lt;br /&gt;
&lt;br /&gt;
With a short piece of code, you can load a file from your mod to be executed. A more practical example:&lt;br /&gt;
&lt;br /&gt;
 if (Loader.isModLoaded(&amp;quot;MineTweaker3&amp;quot;)) {&lt;br /&gt;
     try {&lt;br /&gt;
         String data = Resources.toString(Resources.getResource(ExampleMod.class, &amp;quot;/minetweaker/myscript.zs&amp;quot;), Charsets.UTF_8);&lt;br /&gt;
         NBTTagCompound nbtData = new NBTTagCompound();&lt;br /&gt;
         nbtData.setString(&amp;quot;name&amp;quot;, &amp;quot;mymod_recipes.zs&amp;quot;);&lt;br /&gt;
         nbtData.setString(&amp;quot;content&amp;quot;, data);&lt;br /&gt;
         FMLInterModComms.sendMessage(&amp;quot;MineTweaker3&amp;quot;, &amp;quot;addMineTweakerScript&amp;quot;, nbtData);&lt;br /&gt;
     } catch (IOException ex) {&lt;br /&gt;
         ex.printStackTrace();&lt;br /&gt;
     }&lt;br /&gt;
 }&lt;/div&gt;</summary>
		<author><name>Stan</name></author>	</entry>

	</feed>