MFR Mining Laser

Need help with your script? Want to know how to do something? Want to post an example? Post it here!

MFR Mining Laser

Postby J_Malice » Thu Feb 19, 2015 11:45 pm

Hey, I am trying to modify the MFR Laser Drill slightly. I want to move some of the "white" type ores to the grey category. And then I am adding a few more ores that aren't detected automatically by the MFR config. But it isn't having any effect as far as I can tell. Script loads fine but when I do "/mt mfr laserores" it shows the list and it looks like nothing was changed. Am I doing something wrong here?



: [Select all] [/] [] (mfr.zs)
  1. import mods.mfr.MiningLaser;
  2.  
  3.  
  4. MiningLaser.addOre(<Xthuoth:PrysmalOre>.weight(80)); 0
  5. MiningLaser.addOre(<appliedenergistics2:tile.OreQuartzCharged>.weight(55)); 9
  6. MiningLaser.addOre(<HardcoreEnderExpansion:endium_ore>.weight(55)); 10
  7. MiningLaser.addOre(<magicalcrops:magicalcrops_EssenceOre>.weight(75)); 13
  8. MiningLaser.addOre(<magicalcrops:magicalcrops_EssenceOreNether>.weight(75)); 13
  9. MiningLaser.addOre(<arsmagica2:vinteumOre>.weight(60)); 9
  10. MiningLaser.addOre(<arsmagica2:vinteumOre:1>.weight(60)); 10
  11. MiningLaser.addOre(<arsmagica2:vinteumOre:2>.weight(40)); 9
  12. MiningLaser.addOre(<arsmagica2:vinteumOre:3>.weight(40)); 9
  13. MiningLaser.addOre(<arsmagica2:vinteumOre:4>.weight(40)); 1
  14.  
  15. MiningLaser.removeOre(<NetherOres:tile.netherores.ore.1:13>); 0
  16. MiningLaser.removeOre(<GalacticraftCore:tile.gcBlockCore:7>); 0
  17. MiningLaser.removeOre(<Railcraft:tile.railcraft.ore:1>); 0
  18. MiningLaser.removeOre(<NetherOres:tile.netherores.ore.1:14>); 0
  19.  
  20. MiningLaser.addOre(<NetherOres:tile.netherores.ore.1:13>.weight(50)); 7
  21. MiningLaser.addOre(<GalacticraftCore:tile.gcBlockCore:7>.weight(60)); 7
  22. MiningLaser.addOre(<Railcraft:tile.railcraft.ore:1>.weight(40)); 7
  23. MiningLaser.addOre(<NetherOres:tile.netherores.ore.1:14>.weight(20)); 7
  24.  
  25.  
GeSHi © Codebox Plus
J_Malice
 

Re: MFR Mining Laser

Postby J_Malice » Fri Feb 20, 2015 1:57 am

Edit: Got it. For anyone else who has this issue in the future I'll post it here. Basically you need to use "addOre" to add an ore to the laser drill in general. Then you use "AddPreferredOre" to move it into a colored lens. Weight and amount go in the initial code (addOre) and then the only thing that needs to be defined for the color is the hex code which correlates with minecrafts colored wool.

: [Select all] [/] [] (mfr.zs)
  1. import mods.mfr.MiningLaser;
  2.  
  3. MiningLaser.removePreferredOre(0, <NetherOres:tile.netherores.ore.1:13>);
  4. MiningLaser.removePreferredOre(0, <GalacticraftCore:tile.gcBlockCore:7>);
  5. MiningLaser.removePreferredOre(0, <Railcraft:tile.railcraft.ore:1>);
  6. MiningLaser.removePreferredOre(0, <NetherOres:tile.netherores.ore.1:14>);
  7.  
  8. MiningLaser.addOre((<Xthuoth:PrysmalOre>*1).weight(55)); #
  9. MiningLaser.addPreferredOre(0, <Xthuoth:PrysmalOre>); #
  10.  
  11. MiningLaser.addOre((<appliedenergistics2:tile.OreQuartzCharged>*1).weight(50)); #
  12. MiningLaser.addPreferredOre(9, <appliedenergistics2:tile.OreQuartzCharged>); #
  13.  
  14. MiningLaser.addOre((<HardcoreEnderExpansion:endium_ore>*1).weight(55)); #
  15. MiningLaser.addPreferredOre(10, <HardcoreEnderExpansion:endium_ore>); #
  16.  
  17. MiningLaser.addOre((<magicalcrops:magicalcrops_EssenceOre>*1).weight(75)); #
  18. MiningLaser.addPreferredOre(13, <magicalcrops:magicalcrops_EssenceOre>); #
  19.  
  20. MiningLaser.addOre((<magicalcrops:magicalcrops_EssenceOreNether>*1).weight(75)); #
  21. MiningLaser.addPreferredOre(13, <magicalcrops:magicalcrops_EssenceOreNether>); #
  22.  
  23. MiningLaser.addOre((<arsmagica2:vinteumOre>*1).weight(60)); #
  24. MiningLaser.addPreferredOre(9, <arsmagica2:vinteumOre>); #
  25.  
  26. MiningLaser.addOre((<arsmagica2:vinteumOre:1>*1).weight(40)); #
  27. MiningLaser.addPreferredOre(10, <arsmagica2:vinteumOre:1>); #
  28.  
  29. MiningLaser.addOre((<arsmagica2:vinteumOre:2>*1).weight(40)); #
  30. MiningLaser.addPreferredOre(9, <arsmagica2:vinteumOre:2>); #
  31.  
  32. MiningLaser.addOre((<arsmagica2:vinteumOre:3>*1).weight(40)); #
  33. MiningLaser.addPreferredOre(9, <arsmagica2:vinteumOre:3>); #
  34.  
  35. MiningLaser.addOre((<arsmagica2:vinteumOre:4>*1).weight(60)); #
  36. MiningLaser.addPreferredOre(1, <arsmagica2:vinteumOre:4>); #
  37.  
  38. MiningLaser.addOre((<Thaumcraft:blockCustomOre:1>*1).weight(45)); #
  39. MiningLaser.addPreferredOre(4, <Thaumcraft:blockCustomOre:1>); #
  40.  
  41. MiningLaser.addOre((<Thaumcraft:blockCustomOre:2>*1).weight(45)); #
  42. MiningLaser.addPreferredOre(14, <Thaumcraft:blockCustomOre:2>); #
  43.  
  44. MiningLaser.addOre((<Thaumcraft:blockCustomOre:3>*1).weight(45)); #
  45. MiningLaser.addPreferredOre(11, <Thaumcraft:blockCustomOre:3>); #
  46.  
  47. MiningLaser.addOre((<Thaumcraft:blockCustomOre:4>*1).weight(45)); #
  48. MiningLaser.addPreferredOre(12, <Thaumcraft:blockCustomOre:4>); #
  49.  
  50. MiningLaser.addOre((<Thaumcraft:blockCustomOre:5>*1).weight(45)); #
  51. MiningLaser.addPreferredOre(0, <Thaumcraft:blockCustomOre:5>); #
  52.  
  53. MiningLaser.addOre((<Thaumcraft:blockCustomOre:6>*1).weight(45)); #
  54. MiningLaser.addPreferredOre(15, <Thaumcraft:blockCustomOre:6>); #
  55.  
  56. MiningLaser.addPreferredOre(7, <NetherOres:tile.netherores.ore.1:13>); #
  57. MiningLaser.addPreferredOre(7, <GalacticraftCore:tile.gcBlockCore:7>); #
  58. MiningLaser.addPreferredOre(7, <Railcraft:tile.railcraft.ore:1>); #
  59. MiningLaser.addPreferredOre(7, <NetherOres:tile.netherores.ore.1:14>); #
  60.  
GeSHi © Codebox Plus
J_Malice
 
Posts: 1
Joined: Fri Feb 20, 2015 1:53 am

Re: MFR Mining Laser

Postby Timeslice » Sun Mar 29, 2015 7:17 am

A) In the first post, why did you have a number after each line of code? That would cause a syntax error.
B) In the second post, why do you have a comment indicator (#) at the end of each line? That's unneccessary.
Timeslice
 
Posts: 24
Joined: Fri Mar 27, 2015 4:51 am

Re: MFR Mining Laser

Postby MaxGerald » Mon Oct 28, 2019 12:00 pm

thanks for this post
From the help of this medium you can grab the attention towards the new ways. Likewise you can have ukessays this link that is formulating much to present more emphasis that are good to know.
MaxGerald
 
Posts: 1
Joined: Mon Oct 28, 2019 11:58 am


Return to Scripting Help

Who is online

Users browsing this forum: No registered users and 3 guests

cron