Skip to content

Commit 255d0c5

Browse files
committed
MaterialFlags
1 parent 5eda02c commit 255d0c5

File tree

1 file changed

+72
-0
lines changed

1 file changed

+72
-0
lines changed
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
---
2+
title: Material Flags
3+
---
4+
5+
6+
# Material Flags
7+
8+
Using material flags, you can specify specific properties for Materials, which
9+
can influence how it behaves, as well as items or recipes generated for it.
10+
11+
!!! example "Using Material Flags"
12+
```java title="ModMaterials.java"
13+
public static final Material MyMaterial = new Material.Builder(ExampleMod.id("my_material"))
14+
// ...
15+
.flags(GTMaterialFlags.FLAMMABLE)
16+
```
17+
18+
A full list of flags can be found in the [MaterialFlags](https://github.com/GregTechCEu/GregTech-Modern/blob/1.20.1/src/main/java/com/gregtechceu/gtceu/api/data/chemical/material/info/MaterialFlags.java) class
19+
20+
Note that some flags require other flags or properties in order to work.
21+
22+
## Generate Items
23+
24+
- `GENERATE_PLATE`
25+
- `GENERATE_DENSE`
26+
- `GENERATE_ROD`
27+
- `GENERATE_BOLT_SCREW`
28+
- `GENERATE_FRAME`
29+
- `GENERATE_GEAR`
30+
- `GENERATE_LONG_ROD`
31+
- `FORCE_GENERATE_BLOCK` -> Forces a block to be generated for the material. Useful if it doesn't have an ingot or gem item
32+
- `GENERATE_FOIL`
33+
- `GENERATE_RING`
34+
- `GENERATE_SPRING`
35+
- `GENERATE_SPRING_SMALL`
36+
- `GENERATE_SMALL_GEAR`
37+
- `GENERATE_FINE_WIRE`
38+
- `GENERATE_ROTOR`
39+
- `GENERATE_ROUND`
40+
- `GENERATE_LENS`
41+
42+
43+
## Other Flags
44+
45+
- `NO_UNIFICATION` -> Disables unification entirely
46+
- `DISABLE_MATERIAL_RECIPES`
47+
- `DECOMPOSITION_BY_ELECTROLYZING` -> Enables electrolyzer decomposition
48+
- `DECOMPOSITION_BY_CENTRIFUGING` -> Enables centrifuge decomposition
49+
- `DISABLE_DECOMPOSITION` -> Disables decomposition recipes
50+
- `EXPLOSIVE`
51+
- `FLAMMABLE`
52+
- `STICKY`
53+
- `PHOSPHORECENT`
54+
- `EXCLUDE_BLOCK_CRAFTING_RECIPES` -> Disables shapeless crafting, extruder, and alloy smelter recipes for dust to block and vice versa
55+
- `EXCLUDE_PLATE_COMPRESSOR_RECIPES` -> Disables recipes for compressing dusts into plates
56+
- `EXCLUDE_BLOCK_CRAFTING_BY_HAND_RECIPES` -> Disables shapeless crafting recipes only for dust to block and vice versa
57+
- `MORTAR_GRINDABLE` -> Enables grinding the material's ingot/gem into dust using a mortar
58+
- `NO_WORKING` -> Disable metalworking by any means, except smashing or smelting. This is used for coated materials.
59+
- `NO_SMASHING` -> Disable regular metalworking techniques, since the material cannot be bent
60+
- `NO_SMELTING` -> Disables smelting for the material
61+
- `NO_ORE_SMELTING` -> Disables smelting the material from an ore
62+
- `NO_ORE_PROCESSING_TAB` -> Disables the ore processing tab from being created for the material
63+
- `BLAST_FURNACE_CALCITE_DOUBLE` -> Enables ore + calcite heating in a blast furnace for extra output (eg. Iron, Pyrite, Wrought Iron)
64+
- `BLAST_FURNACE_CALCITE_TRIPLE`
65+
- `DISABLE_ALLOY_BLAST` -> Disables alloy blast recipes from being generated
66+
- `DISABLE_ALLOY_PROPERTY` -> Disables everything related to alloy blasting
67+
- `SOLDER_MATERIAL` -> NYI; used for soldering
68+
- `SOLDER_MATERIAL_BAD` -> NYI; used for soldering, requires more fluid than `SOLDER_MATERIAL` per recipe
69+
- `SOLDER_MATERIAL_GOOD` -> NYI; used for soldering, requires less fluid than `SOLDER_MATERIAL` per recipe
70+
- `IS_MAGNETIC` -> Enables polarizer and related magnetic recipes for the material. (eg. Magnetic Iron)
71+
- `CRYSTALLIZABLE` -> Enables dust to gem in autoclave and other crystallization-related recipes
72+
- `HIGH_SIFTER_OUTPUT` -> Increases chances of obtaining higher quality gems from sifting (eg. Ruby)

0 commit comments

Comments
 (0)