@@ -8,9 +8,9 @@ title: Modifying Existing Materials
88All periodic table elements are present in GT, but some of them don't have any properties attached. You can also add a BlastProperty for EBF autogenerated recipes. You can also do this for other materials such as Obsidian. Here is how you can add them:
99
1010``` js title="periodic_table_elements.js"
11- const $IngotProperty = Java .loadClass (' com.gregtechceu.gtceu.api.material .material.properties.IngotProperty' );
12- const $DustProperty = Java .loadClass (' com.gregtechceu.gtceu.api.material .material.properties.DustProperty' );
13- const $BlastProperty = Java .loadClass (' com.gregtechceu.gtceu.api.material .material.properties.BlastProperty' );
11+ const $IngotProperty = Java .loadClass (' com.gregtechceu.gtceu.api.data.chemical .material.properties.IngotProperty' );
12+ const $DustProperty = Java .loadClass (' com.gregtechceu.gtceu.api.data.chemical .material.properties.DustProperty' );
13+ const $BlastProperty = Java .loadClass (' com.gregtechceu.gtceu.api.data.chemical .material.properties.BlastProperty' );
1414
1515 GTCEuStartupEvents .registry (' gtceu:material' , event => {
1616
@@ -31,9 +31,9 @@ Adding fluids to existing materials requires a bit of work with the new FluidSto
3131
3232``` js title="fluid_property.js"
3333
34- const $FluidProperty = Java .loadClass (' com.gregtechceu.gtceu.api.material .material.properties.FluidProperty' );
35- const $FluidBuilder = Java .loadClass (' com.gregtechceu.gtceu.api.fluid .FluidBuilder' );
36- const $FluidStorageKeys = Java .loadClass (' com.gregtechceu.gtceu.api.fluid .store.FluidStorageKeys' );
34+ const $FluidProperty = Java .loadClass (' com.gregtechceu.gtceu.api.data.chemical .material.properties.FluidProperty' );
35+ const $FluidBuilder = Java .loadClass (' com.gregtechceu.gtceu.api.fluids .FluidBuilder' );
36+ const $FluidStorageKeys = Java .loadClass (' com.gregtechceu.gtceu.api.fluids .store.FluidStorageKeys' );
3737
3838GTCEuStartupEvents .registry (' gtceu:material' , event => {
3939 addFluid (GTMaterials .Iodine , $FluidStorageKeys .LIQUID ); // Can be LIQUID, GAS, PLASMA or MOLTEN
@@ -53,7 +53,7 @@ You can even add an ore to existing materials:
5353` ` ` js title= " ore_property.js"
5454 GTCEuStartupEvents .registry (' gtceu:material' , event => {
5555
56- const $OreProperty = Java .loadClass (' com.gregtechceu.gtceu.api.material .material.properties.OreProperty' );
56+ const $OreProperty = Java .loadClass (' com.gregtechceu.gtceu.api.data.chemical .material.properties.OreProperty' );
5757
5858 // Zinc Ore
5959 GTMaterials .Zinc .setProperty (PropertyKey .ORE , new $OreProperty ());
0 commit comments