Help With Minetweaker and Laser Drill

  • 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

Flexico

Well-Known Member
Dec 15, 2012
328
39
53
I'm trying to add Draconium Ore to what the Laser Drill can dig up, and my research so far has led me to the following code:
Code:
107 import mods.mfr.MiningLaser;
108 MiningLaser.addOre(<DraconicEvolution:draconiumOre>.weight(40));
109 MiningLaser.addPreferredOre(2, <DraconicEvolution:draconiumOre>);
However, when I run it, I get the following error:
Code:
Error parsing misc.zs:107 -- Invalid expression, last token: import
I typed that command in exactly as I saw it in three different places. What's going on? I'm using Minecraft 1.7.10 and Minetweaker 3.0.9C.
 

SevenMass

Well-Known Member
Jan 2, 2013
283
137
69
The Netherlands
The imports need to be at the start of a script file.

You can put empty lines and comments before the import, but not any actual script. (except for other import lines)

Now, I don't know how many lines of comments you like to put at the start of a script, but I can't imagine its over a 100. (or even anywhere near a 100) So I'm guessing you put script there.