Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add Arcane World compat #278

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ final def mod_dependencies = [
'arcane-archives-311357:3057332' : [project.debug_arcane_archives],
'guidebook-253874:2989594' : [project.debug_arcane_archives],
'mystical_lib-277064:3483816' : [project.debug_arcane_archives, project.debug_roots],
'lemonlib-306926:2639879' : [project.debug_arcane_world],
'arcane-world-302852:2972860' : [project.debug_arcane_world],
'astralsorcery-sorcery-241721:3044416' : [project.debug_astral],
'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],
'the-aurorian-352137:4981736' : [project.debug_aurorian],
Expand Down
89 changes: 89 additions & 0 deletions examples/postInit/arcaneworld.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@

// Auto generated groovyscript example file
// MODS_LOADED: arcaneworld

log.info 'mod \'arcaneworld\' detected, running script'

// Ritual:
// Converts up to 5 input itemstacks into a wide number of possible effects, including spawning entities, opening a portal
// to a dungeon dimension to fight a mob, awarding an output itemstack, running commands, and even entirely customized
// effects.

mods.arcaneworld.ritual.removeByInput(item('minecraft:gold_nugget'))
mods.arcaneworld.ritual.removeByOutput(item('arcaneworld:biome_crystal'))
// mods.arcaneworld.ritual.removeAll()

mods.arcaneworld.ritual.recipeBuilder()
.ritualCreateItem()
.input(item('minecraft:stone') * 5, item('minecraft:diamond'), item('minecraft:clay'))
.output(item('minecraft:clay'))
.translationKey('groovyscript.demo_output')
.name('groovyscript:custom_name')
.register()

mods.arcaneworld.ritual.recipeBuilderArena()
.input(item('minecraft:stone'), item('minecraft:stone'), item('minecraft:clay'))
.translationKey('groovyscript.demo_arena')
.entity(entity('minecraft:chicken'))
.register()

mods.arcaneworld.ritual.recipeBuilderCommand()
.input(item('minecraft:diamond'), item('minecraft:diamond'), item('minecraft:clay'))
.translationKey('groovyscript.demo_command')
.command('say hi',
'give @p minecraft:coal 5')
.register()

mods.arcaneworld.ritual.recipeBuilderCreateItem()
.input(item('minecraft:diamond'), item('minecraft:diamond'), item('minecraft:diamond'))
.translationKey('groovyscript.demo_create_item')
.output(item('minecraft:diamond'))
.register()

mods.arcaneworld.ritual.recipeBuilderCustom()
.input(item('minecraft:diamond'), item('minecraft:diamond'), item('minecraft:clay'), item('minecraft:clay'))
.translationKey('groovyscript.demo_custom')
.onActivate({ World world, BlockPos blockPos, EntityPlayer player, ItemStack... itemStacks -> { log.info blockPos } })
.register()

mods.arcaneworld.ritual.recipeBuilderDragonBreath()
.input(item('minecraft:clay'), item('minecraft:clay'), item('minecraft:clay'), item('minecraft:clay'), item('minecraft:clay'))
.translationKey('groovyscript.demo_dragon_breath')
.register()

mods.arcaneworld.ritual.recipeBuilderDungeon()
.input(item('minecraft:diamond'), item('minecraft:clay'), item('minecraft:clay'))
.translationKey('groovyscript.demo_dungeon')
.register()

mods.arcaneworld.ritual.recipeBuilderSummon()
.input(item('minecraft:stone'), item('minecraft:clay'), item('minecraft:clay'))
.translationKey('groovyscript.demo_summon')
.entity(entity('minecraft:chicken'))
.register()

mods.arcaneworld.ritual.recipeBuilderTime()
.input(item('minecraft:diamond'), item('minecraft:clay'), item('minecraft:clay'), item('minecraft:clay'))
.translationKey('groovyscript.demo_time')
.time(5000)
.register()

mods.arcaneworld.ritual.recipeBuilderWeather()
.input(item('minecraft:diamond'), item('minecraft:gold_ingot'), item('minecraft:clay'))
.translationKey('groovyscript.demo_weather_clear')
.weatherClear()
.register()

mods.arcaneworld.ritual.recipeBuilderWeather()
.input(item('minecraft:gold_ingot'), item('minecraft:diamond'), item('minecraft:clay'))
.translationKey('groovyscript.demo_weather_rain')
.weatherRain()
.register()

mods.arcaneworld.ritual.recipeBuilderWeather()
.input(item('minecraft:diamond'), item('minecraft:diamond'), item('minecraft:gold_ingot'))
.translationKey('groovyscript.demo_weather_thunder')
.weatherThunder()
.register()


1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ debug_aether = false
debug_alchemistry = false
debug_applied_energistics_2 = false
debug_arcane_archives = false
debug_arcane_world = false
debug_astral = false
debug_atum = false
debug_aurorian = false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import com.cleanroommc.groovyscript.compat.mods.alchemistry.Alchemistry;
import com.cleanroommc.groovyscript.compat.mods.appliedenergistics2.AppliedEnergistics2;
import com.cleanroommc.groovyscript.compat.mods.arcanearchives.ArcaneArchives;
import com.cleanroommc.groovyscript.compat.mods.arcaneworld.ArcaneWorld;
import com.cleanroommc.groovyscript.compat.mods.astralsorcery.AstralSorcery;
import com.cleanroommc.groovyscript.compat.mods.atum.Atum;
import com.cleanroommc.groovyscript.compat.mods.avaritia.Avaritia;
Expand Down Expand Up @@ -88,6 +89,7 @@ public class ModSupport {
public static final GroovyContainer<Alchemistry> ALCHEMISTRY = new InternalModContainer<>("alchemistry", "Alchemistry", Alchemistry::new);
public static final GroovyContainer<AppliedEnergistics2> APPLIED_ENERGISTICS_2 = new InternalModContainer<>("appliedenergistics2", "Applied Energistics 2", AppliedEnergistics2::new, "ae2");
public static final GroovyContainer<ArcaneArchives> ARCANE_ARCHIVES = new InternalModContainer<>("arcanearchives", "Arcane Archives", ArcaneArchives::new);
public static final GroovyContainer<ArcaneWorld> ARCANE_WORLD = new InternalModContainer<>("arcaneworld", "Arcane World", ArcaneWorld::new);
public static final GroovyContainer<AstralSorcery> ASTRAL_SORCERY = new InternalModContainer<>("astralsorcery", "Astral Sorcery", AstralSorcery::new, "astral");
public static final GroovyContainer<Atum> ATUM = new InternalModContainer<>("atum", "Atum 2", Atum::new);
public static final GroovyContainer<Avaritia> AVARITIA = new InternalModContainer<>("avaritia", "Avaritia", Avaritia::new);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package com.cleanroommc.groovyscript.compat.mods.arcaneworld;

import com.cleanroommc.groovyscript.compat.mods.GroovyPropertyContainer;

public class ArcaneWorld extends GroovyPropertyContainer {

public final RitualWrapper ritual = new RitualWrapper();
}
Loading