Skip to content

Commit bd75153

Browse files
authored
Preprocessors (#86)
* preprocessors * add debug only preprocessor * use preprocessors in example files
1 parent 494dfdf commit bd75153

25 files changed

+144
-36
lines changed

examples/postInit/actuallyadditions.groovy

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11

2-
if (!isLoaded('actuallyadditions')) return
2+
// MODS_LOADED: actuallyadditions
3+
34
println 'mod \'actuallyadditions\' detected, running script'
45

56

examples/postInit/advancedmortars.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
if (!isLoaded('advancedmortars')) return
2+
// MODS_LOADED: advancedmortars
33
println 'mod \'advancedmortars\' detected, running script'
44

55
// Mortar

examples/postInit/appliedenergistics2.groovy

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
1-
2-
if (!isLoaded('appliedenergistics2')) return
1+
/*
2+
NO_RUN
3+
NO_RELOAD
4+
MODS_LOADED: appliedenergistics2
5+
SIDE: client
6+
*/
7+
8+
// MODS_LOADED: appliedenergistics2
39
println 'mod \'appliedenergistics2\' detected, running script'
410

511
// Can be access via either `appliedenergistics2` or `ae2`

examples/postInit/astral.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import net.minecraft.util.math.MathHelper
21

3-
if (!isLoaded('astralsorcery')) return
2+
// MODS_LOADED: astralsorcery
43
println 'mod \'astralsorcery\' detected, running script'
54

5+
import net.minecraft.util.math.MathHelper
66

77
// Constellation bracket handler:
88
// Major (Bright) Constellations:

examples/postInit/avaritia.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
if (!isLoaded('avaritia')) return
2+
// MODS_LOADED: avaritia
33
println 'mod \'avaritia\' detected, running script'
44

55
// extreme crafting

examples/postInit/bloodmagic.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
if (!isLoaded('bloodmagic')) return
2+
// MODS_LOADED: bloodmagic
33
println 'mod \'bloodmagic\' detected, running script'
44

55

examples/postInit/botania.groovy

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import net.minecraft.potion.PotionEffect
2-
import net.minecraft.util.text.TextFormatting
31

4-
if (!isLoaded('botania')) return
2+
// MODS_LOADED: botania
53
println 'mod \'botania\' detected, running script'
64

5+
import net.minecraft.potion.PotionEffect
6+
import net.minecraft.util.text.TextFormatting
77

88
// Bracket Handlers
99
// Brew:

examples/postInit/chisel.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
if (!isLoaded('chisel')) return
2+
// MODS_LOADED: chisel
33
println 'mod \'chisel\' detected, running script'
44

55
// Carving

examples/postInit/compactmachines.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
if (!isLoaded('compactmachines3')) return
2+
// MODS_LOADED: compactmachines3
33
println 'mod \'compactmachines3\' detected, running script'
44

55
// Miniaturization:

examples/postInit/draconicevolution.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
if (!isLoaded('draconicevolution')) return
2+
// MODS_LOADED: draconicevolution
33
println 'mod \'draconicevolution\' detected, running script'
44

55
// Fusion:

0 commit comments

Comments
 (0)