Skip to content

Instantly share code, notes, and snippets.

@mrtopf
Created November 16, 2016 09:15
Show Gist options
  • Save mrtopf/88f57b9baab147d3dc4d880361c20dc0 to your computer and use it in GitHub Desktop.
Save mrtopf/88f57b9baab147d3dc4d880361c20dc0 to your computer and use it in GitHub Desktop.
Example BASE config file in config/ACRONYM/BASE/
import com.acronym.base.IMaterialType;
var bs = mods.base.Materials.getOrRegister("Bullshit", 20, 875321, false);
var bsblock = mods.base.Materials.getOrRegister("Bullshit Block", 25, 875321, false);
var bsingot = mods.base.Materials.getOrRegister("Bullshit Ingot", 21, 875321, false);
var bsdust = mods.base.Materials.getOrRegister("Bullshit Dust", 22, 875321, false);
var bsnugget = mods.base.Materials.getOrRegister("Bullshit Nugget", 23, 875321, false);
var bsgear = mods.base.Materials.getOrRegister("Bullshit Gear", 24, 875321, false);
var bsplate = mods.base.Materials.getOrRegister("Bullshit Plate", 0, 875321, false);
bs.registerOre(3,5,"pickaxe", 3);
bsblock.registerBlock(3,7,"pickaxe", 3);
bsingot.registerIngot();
bsdust.registerDust();
bsnugget.registerNugget();
bsgear.registerGear();
bsplate.registerPlate();
# import com.acronym.base.IMaterialType;
# var type = mods.base.Materials.getOrRegister("name", metaNum, int color, Should It Glow True/False);
# type.registerNugget();
# type.registerIngot();
# type.registerDust();
# type.registerGear();
# type.registerPlate();
# type.registerOre(float, float, "toolString", Int);
# type.registerBlock(float, float, "toolString", Int);
# hardness, resistance, toolclass, tooltier
@mrtopf
Copy link
Author

mrtopf commented Nov 16, 2016

Result: http://prnt.sc/d7wqq0

(plate missing for some reason)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment