Skip to content

Commit b5e9783

Browse files
committed
Merge branch 'refs/heads/master' into fix/classes
2 parents 2811a38 + 3881890 commit b5e9783

File tree

108 files changed

+5409
-676
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

108 files changed

+5409
-676
lines changed

dependencies.gradle

Lines changed: 44 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
// Sorted by alphabetical name of the `project.debug_[this]` value
2929
final def mod_dependencies = [
3030
'actually-additions-228404:3117927' : [project.debug_actually_additions],
31+
'additionalenchantedminer-282837:3851282' : [project.debug_additional_enchanted_miner],
3132
'advancedmortars-283777:2780626' : [project.debug_adv_mortars],
3233
'advanced-rocketry-236542:4671856' : [project.debug_advanced_rocketry],
3334
'libvulpes-236541:3801015' : [project.debug_advanced_rocketry],
@@ -39,15 +40,19 @@ final def mod_dependencies = [
3940
'arcane-archives-311357:3057332' : [project.debug_arcane_archives],
4041
'guidebook-253874:2989594' : [project.debug_arcane_archives],
4142
'mystical_lib-277064:3483816' : [project.debug_arcane_archives, project.debug_roots],
43+
'lemonlib-306926:2639879' : [project.debug_arcane_world],
44+
'arcane-world-302852:2972860' : [project.debug_arcane_world],
4245
'astralsorcery-sorcery-241721:3044416' : [project.debug_astral],
43-
'baubles-227083:2518667' : [project.debug_astral, project.debug_botania, project.debug_botania_tweaks, project.debug_botanic_additions, project.debug_essentialcraft_4, project.debug_extra_botany, project.debug_thaum],
46+
'baubles-227083:2518667' : [project.debug_blood_arsenal, project.debug_astral, project.debug_botania, project.debug_botania_tweaks, project.debug_botanic_additions, project.debug_essentialcraft_4, project.debug_extra_botany, project.debug_thaum],
4447
'the-aurorian-352137:4981736' : [project.debug_aurorian],
4548
'avaritia_1_10-261348:3143349' : [project.debug_avaritia],
4649
'atum-2-59621:3116599' : [project.debug_atum],
47-
'bwm-core-294335:2624990' : [project.debug_better_with_mods],
48-
'bwm-suite-246760:3289033' : [project.debug_better_with_mods],
49-
'blood-magic-224791:2822288' : [project.debug_blood_magic],
50-
'guide-api-228832:2645992' : [project.debug_blood_magic, project.debug_woot],
50+
'better-with-addons-268326:2899407' : [project.debug_better_with_addons],
51+
'bwm-core-294335:2624990' : [project.debug_better_with_addons, project.debug_better_with_mods],
52+
'bwm-suite-246760:3289033' : [project.debug_better_with_addons, project.debug_better_with_mods],
53+
'blood-arsenal-228823:2904183' : [project.debug_blood_arsenal],
54+
'blood-magic-224791:2822288' : [project.debug_blood_arsenal, project.debug_blood_magic],
55+
'guide-api-228832:2645992' : [project.debug_blood_arsenal, project.debug_blood_magic, project.debug_woot],
5156
'botania-225643:3330934' : [project.debug_botania, project.debug_botania_tweaks, project.debug_botanic_additions, project.debug_extra_botany],
5257
'botania-tweaks-295114:3092102' : [project.debug_botania_tweaks],
5358
'botanic-additions-310637:2939405' : [project.debug_botanic_additions],
@@ -116,6 +121,22 @@ final def mod_dependencies = [
116121
'woot-244049:2712670' : [project.debug_woot],
117122
]
118123

124+
// Maps mods from CurseMaven to the properties that enable the mod.
125+
// These mods will be enabled at runtime, but will not be compiled.
126+
// Sorted alphabetically.
127+
final Map<String, List<String>> runtime_dependencies = [
128+
'com.cleanroommc:configanytime:3.0' : [project.debug_universal_tweaks],
129+
'curse.maven:aainfo-573154:3627065' : [project.debug_actually_advanced_info],
130+
'curse.maven:dropt-284973:3758733' : [project.debug_pyrotech],
131+
'curse.maven:jei-bees-248370:2490058' : [project.debug_forestry],
132+
'curse.maven:just-enough-petroleum-291727:2549332' : [project.debug_immersive_petroleum],
133+
'curse.maven:mouse-tweaks-unofficial-461660:5876158': [project.debug_mouse_tweaks_unofficial],
134+
'curse.maven:reid-629017:5502915' : [project.debug_roughly_enough_ids],
135+
'curse.maven:thaumic_jei-285492:2705304' : [project.debug_thaum],
136+
'curse.maven:universal-tweaks-705000:5860191' : [project.debug_universal_tweaks],
137+
'curse.maven:vintagefix-871198:5536276' : [project.debug_vintagefix],
138+
]
139+
119140
dependencies {
120141
embed "org.apache.groovy:groovy:${project.groovy_version}"
121142

@@ -145,8 +166,24 @@ dependencies {
145166
}
146167
}
147168

148-
if (project.debug_thaum.toBoolean()) {
149-
runtimeOnly 'curse.maven:thaumic_jei-285492:2705304'
169+
// enables mods for runtime
170+
runtime_dependencies.each { k, v ->
171+
if (v.any { it.toBoolean() }) {
172+
runtimeOnly k
173+
}
174+
}
175+
176+
compileOnly rfg.deobf('curse.maven:angry-pixel-the-betweenlands-mod-243363:4479688')
177+
if (project.debug_betweenlands.toBoolean()) {
178+
// TODO: allow development toggling of the coremod
179+
// until this is resolved, download and install the jar from
180+
// https://www.curseforge.com/minecraft/mc-mods/angry-pixel-the-betweenlands-mod/files/4479688
181+
// runtimeOnly rfg.deobf('curse.maven:angry-pixel-the-betweenlands-mod-243363:4479688')
182+
}
183+
184+
compileOnly rfg.deobf('curse.maven:better-with-everything-896908:5202745')
185+
if (!(project.debug_better_with_addons.toBoolean() || project.debug_better_with_mods.toBoolean()) && project.debug_better_with_everything.toBoolean()) {
186+
runtimeOnly rfg.deobf('curse.maven:better-with-everything-896908:5202745')
150187
}
151188

152189
compileOnly 'com.enderio:endercore:0.5.78'
@@ -174,24 +211,9 @@ dependencies {
174211
runtimeOnly rfg.deobf('curse.maven:industrialcraft_classic-242942:3093607')
175212
}
176213

177-
178-
if (project.debug_forestry.toBoolean()) {
179-
runtimeOnly rfg.deobf('curse.maven:jei-bees-248370:2490058')
180-
}
181-
182-
if (project.debug_immersive_petroleum.toBoolean()) {
183-
runtimeOnly rfg.deobf('curse.maven:just-enough-petroleum-291727:2549332')
184-
}
185-
186-
if (project.debug_pyrotech.toBoolean()) {
187-
runtimeOnly rfg.deobf("curse.maven:dropt-284973:3758733")
188-
}
189-
190214
compileOnly rfg.deobf('TechReborn:TechReborn-ModCompatibility-1.12.2:1.4.0.76:universal')
191215
if (project.debug_tech_reborn.toBoolean()) {
192216
runtimeOnly rfg.deobf('TechReborn:TechReborn-ModCompatibility-1.12.2:1.4.0.76:universal')
193217
}
194218

195-
runtimeOnly 'com.cleanroommc:strip-latest-forge-requirements:1.0'
196-
197219
}
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
2+
// Auto generated groovyscript example file
3+
// MODS_LOADED: arcaneworld
4+
5+
log.info 'mod \'arcaneworld\' detected, running script'
6+
7+
// Ritual:
8+
// Converts up to 5 input itemstacks into a wide number of possible effects, including spawning entities, opening a portal
9+
// to a dungeon dimension to fight a mob, awarding an output itemstack, running commands, and even entirely customized
10+
// effects.
11+
12+
mods.arcaneworld.ritual.removeByInput(item('minecraft:gold_nugget'))
13+
mods.arcaneworld.ritual.removeByOutput(item('arcaneworld:biome_crystal'))
14+
// mods.arcaneworld.ritual.removeAll()
15+
16+
mods.arcaneworld.ritual.recipeBuilder()
17+
.ritualCreateItem()
18+
.input(item('minecraft:stone') * 5, item('minecraft:diamond'), item('minecraft:clay'))
19+
.output(item('minecraft:clay'))
20+
.translationKey('groovyscript.demo_output')
21+
.name('groovyscript:custom_name')
22+
.register()
23+
24+
mods.arcaneworld.ritual.recipeBuilderArena()
25+
.input(item('minecraft:stone'), item('minecraft:stone'), item('minecraft:clay'))
26+
.translationKey('groovyscript.demo_arena')
27+
.entity(entity('minecraft:chicken'))
28+
.register()
29+
30+
mods.arcaneworld.ritual.recipeBuilderCommand()
31+
.input(item('minecraft:diamond'), item('minecraft:diamond'), item('minecraft:clay'))
32+
.translationKey('groovyscript.demo_command')
33+
.command('say hi',
34+
'give @p minecraft:coal 5')
35+
.register()
36+
37+
mods.arcaneworld.ritual.recipeBuilderCreateItem()
38+
.input(item('minecraft:diamond'), item('minecraft:diamond'), item('minecraft:diamond'))
39+
.translationKey('groovyscript.demo_create_item')
40+
.output(item('minecraft:diamond'))
41+
.register()
42+
43+
mods.arcaneworld.ritual.recipeBuilderCustom()
44+
.input(item('minecraft:diamond'), item('minecraft:diamond'), item('minecraft:clay'), item('minecraft:clay'))
45+
.translationKey('groovyscript.demo_custom')
46+
.onActivate({ World world, BlockPos blockPos, EntityPlayer player, ItemStack... itemStacks -> { log.info blockPos } })
47+
.register()
48+
49+
mods.arcaneworld.ritual.recipeBuilderDragonBreath()
50+
.input(item('minecraft:clay'), item('minecraft:clay'), item('minecraft:clay'), item('minecraft:clay'), item('minecraft:clay'))
51+
.translationKey('groovyscript.demo_dragon_breath')
52+
.register()
53+
54+
mods.arcaneworld.ritual.recipeBuilderDungeon()
55+
.input(item('minecraft:diamond'), item('minecraft:clay'), item('minecraft:clay'))
56+
.translationKey('groovyscript.demo_dungeon')
57+
.register()
58+
59+
mods.arcaneworld.ritual.recipeBuilderSummon()
60+
.input(item('minecraft:stone'), item('minecraft:clay'), item('minecraft:clay'))
61+
.translationKey('groovyscript.demo_summon')
62+
.entity(entity('minecraft:chicken'))
63+
.register()
64+
65+
mods.arcaneworld.ritual.recipeBuilderTime()
66+
.input(item('minecraft:diamond'), item('minecraft:clay'), item('minecraft:clay'), item('minecraft:clay'))
67+
.translationKey('groovyscript.demo_time')
68+
.time(5000)
69+
.register()
70+
71+
mods.arcaneworld.ritual.recipeBuilderWeather()
72+
.input(item('minecraft:diamond'), item('minecraft:gold_ingot'), item('minecraft:clay'))
73+
.translationKey('groovyscript.demo_weather_clear')
74+
.weatherClear()
75+
.register()
76+
77+
mods.arcaneworld.ritual.recipeBuilderWeather()
78+
.input(item('minecraft:gold_ingot'), item('minecraft:diamond'), item('minecraft:clay'))
79+
.translationKey('groovyscript.demo_weather_rain')
80+
.weatherRain()
81+
.register()
82+
83+
mods.arcaneworld.ritual.recipeBuilderWeather()
84+
.input(item('minecraft:diamond'), item('minecraft:diamond'), item('minecraft:gold_ingot'))
85+
.translationKey('groovyscript.demo_weather_thunder')
86+
.weatherThunder()
87+
.register()
88+
89+

0 commit comments

Comments
 (0)