generated from CleanroomMC/ForgeDevEnv
-
Notifications
You must be signed in to change notification settings - Fork 30
add Bewitchment compat #307
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
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
b417620
Start Bewitchment support (again)
mcadventurecity 8ee8a10
update registries
WaitingIdly 2dc293f
import PotionEffect by default
WaitingIdly 0acdca5
add forge registry documentation
WaitingIdly a86e7ba
add entityentry to code converter
WaitingIdly f578ffb
skip documenting methods already documented
WaitingIdly d33ffed
update bewitchment
WaitingIdly ad49b75
implement bewitchment compat
WaitingIdly da5503d
debug properties are false
WaitingIdly 05e58aa
sort properties container
WaitingIdly c6bf33a
run spotless
WaitingIdly a83f014
remove import for potioneffect from examples
WaitingIdly c3e01ee
add bewitchment to curseforge deps
WaitingIdly 67ecb93
Merge branch 'master' into bewitchment
WaitingIdly 9ed4ee1
use EnumHelper in RecipeBuilder enums
WaitingIdly 96b5ccc
fix typo in comment
WaitingIdly File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,223 @@ | ||
|
|
||
| // Auto generated groovyscript example file | ||
| // MODS_LOADED: bewitchment | ||
|
|
||
| log.info 'mod \'bewitchment\' detected, running script' | ||
|
|
||
| // Altar Upgrades: | ||
| // Controls the valid upgrades placed atop the Witches' Altar, a multiblock that gain Magic Power from nearby plants and | ||
| // logs based on their uniqueness. The upgrades modify the amount gained per second and the maximum Magic Power the Altar | ||
| // can hold. | ||
|
|
||
| mods.bewitchment.altar_upgrade.remove(blockstate('bewitchment:goblet')) | ||
| mods.bewitchment.altar_upgrade.remove(item('bewitchment:garnet')) | ||
| mods.bewitchment.altar_upgrade.removeByType(com.bewitchment.api.registry.AltarUpgrade.Type.WAND) | ||
| // mods.bewitchment.altar_upgrade.removeAll() | ||
|
|
||
| mods.bewitchment.altar_upgrade.recipeBuilder() | ||
| .cup() | ||
| .predicate(blockstate('minecraft:clay')) | ||
| .gain(-10) | ||
| .multiplier(500) | ||
| .register() | ||
|
|
||
| mods.bewitchment.altar_upgrade.recipeBuilder() | ||
| .pentacle() | ||
| .predicate(item('minecraft:gold_ingot')) | ||
| .gain(1000) | ||
| .register() | ||
|
|
||
| mods.bewitchment.altar_upgrade.recipeBuilder() | ||
| .sword() | ||
| .predicate(blockstate('minecraft:gold_block')) | ||
| .multiplier(50) | ||
| .register() | ||
|
|
||
| mods.bewitchment.altar_upgrade.recipeBuilder() | ||
| .wand() | ||
| .predicate(item('minecraft:iron_ingot')) | ||
| .multiplier(0.5) | ||
| .register() | ||
|
|
||
|
|
||
| // Athame Loot: | ||
| // When killing a mob with the Athame in the main hand, drops a random amount between `0` and `stackSize + lootingLevel` of | ||
| // each item that the entity passes the predicate of. | ||
|
|
||
| mods.bewitchment.athame_loot.removeByOutput(item('bewitchment:spectral_dust')) | ||
| // mods.bewitchment.athame_loot.removeAll() | ||
|
|
||
| mods.bewitchment.athame_loot.add(entity('minecraft:pig'), item('minecraft:gold_ingot')) | ||
| mods.bewitchment.athame_loot.add(entity('minecraft:cow'), item('minecraft:clay') * 5, item('minecraft:iron_sword')) | ||
|
|
||
| // Witches' Cauldron Brew: | ||
| // After throwing a `bewitchment:mandrake_root` in the Witches' Cauldron while Magic Power is provided, all items thrown in | ||
| // will add their potion effects when extracted via a `minecraft:glass_bottle`. Each fill of the Cauldron can create 3 | ||
| // bottles. An ingredient can also refund an itemstack. | ||
|
|
||
| mods.bewitchment.brew.removeByInput(item('bewitchment:dragons_blood_resin')) | ||
| mods.bewitchment.brew.removeByOutput(item('minecraft:bowl')) | ||
| mods.bewitchment.brew.removeByPotion(potion('minecraft:instant_health')) | ||
| // mods.bewitchment.brew.removeAll() | ||
|
|
||
| mods.bewitchment.brew.recipeBuilder() | ||
| .input(ore('netherStar')) | ||
| .outputCheck(item('minecraft:nether_star')) | ||
| .effect(new PotionEffect(potion('minecraft:strength'), 1800, 3)) | ||
| .output(item('bewitchment:catechu_brown')) | ||
| .register() | ||
|
|
||
| mods.bewitchment.brew.recipeBuilder() | ||
| .input(item('minecraft:gold_ingot')) | ||
| .effect(new PotionEffect(potion('minecraft:instant_health'), 1, 3)) | ||
| .output(item('minecraft:clay')) | ||
| .register() | ||
|
|
||
| mods.bewitchment.brew.recipeBuilder() | ||
| .input(item('minecraft:deadbush')) | ||
| .effect(new PotionEffect(potion('minecraft:resistance'), 1800, 3)) | ||
| .register() | ||
|
|
||
|
|
||
| // Witches' Cauldron: | ||
| // Converts up to 10 input ingredients into up to 3 output itemstacks in the Witches' Cauldron while Magic Power is | ||
| // provided. | ||
|
|
||
| mods.bewitchment.cauldron.remove(resource('bewitchment:catechu_brown')) | ||
| mods.bewitchment.cauldron.removeByInput(item('bewitchment:tongue_of_dog')) | ||
| mods.bewitchment.cauldron.removeByOutput(item('bewitchment:iron_gall_ink')) | ||
| // mods.bewitchment.cauldron.removeAll() | ||
|
|
||
| mods.bewitchment.cauldron.recipeBuilder() | ||
| .input(ore('logWood')) | ||
| .input(item('minecraft:deadbush')) | ||
| .input(item('minecraft:dye', 3)) | ||
| .output(item('bewitchment:catechu_brown')) | ||
| .register() | ||
|
|
||
|
|
||
| // Curses: | ||
| // Allows applying curses to a player to cause unique effects in the Brazier with a `bewitchment:taglock` targeting the | ||
| // desired player. | ||
|
|
||
| mods.bewitchment.curse.remove(resource('bewitchment:berserker')) | ||
| mods.bewitchment.curse.removeByInput(item('minecraft:blaze_rod')) | ||
| // mods.bewitchment.curse.removeAll() | ||
|
|
||
| // Distillery: | ||
| // Converts up to 6 input ingredients into up to 6 output itemstacks in the Distillery at the cost of 1 Magic Power per | ||
| // tick. Takes 10 seconds. | ||
|
|
||
| mods.bewitchment.distillery.remove(resource('bewitchment:bottled_frostfire')) | ||
| mods.bewitchment.distillery.removeByInput(item('bewitchment:perpetual_ice')) | ||
| mods.bewitchment.distillery.removeByOutput(item('bewitchment:demonic_elixir')) | ||
| // mods.bewitchment.distillery.removeAll() | ||
|
|
||
| mods.bewitchment.distillery.recipeBuilder() | ||
| .input(item('minecraft:glass_bottle')) | ||
| .input(item('minecraft:snow')) | ||
| .input(item('bewitchment:cleansing_balm')) | ||
| .input(item('bewitchment:fiery_unguent')) | ||
| .output(item('bewitchment:bottled_frostfire')) | ||
| .output(item('bewitchment:empty_jar') * 2) | ||
| .register() | ||
|
|
||
|
|
||
| // Fortune: | ||
| // Modifies potential Fortunes, with a random one being selected from the list when interacting with a Crystal Ball. Some | ||
| // amount of time will pass before the Fortune occurs, whereupon a customizable effect will happen. | ||
|
|
||
| mods.bewitchment.fortune.remove(resource('bewitchment:cornucopia')) | ||
| // mods.bewitchment.fortune.removeAll() | ||
|
|
||
| // Frostfire: | ||
| // Converts an input ingredient into an output itemstack once a second while inside a Frostfire block. | ||
|
|
||
| mods.bewitchment.frostfire.removeByInput(item('minecraft:iron_ore')) | ||
| // mods.bewitchment.frostfire.removeByOutput(item('bewitchment:cold_iron_ingot')) | ||
| // mods.bewitchment.frostfire.removeAll() | ||
|
|
||
| mods.bewitchment.frostfire.recipeBuilder() | ||
| .input(item('minecraft:water_bucket')) | ||
| .output(item('minecraft:ice')) | ||
| .register() | ||
|
|
||
|
|
||
| // Incense: | ||
| // Converts up to 8 input ingredients in the Brazier when activated by a Flint and Steel for any number of potion effects | ||
| // that apply whenever a player wakes up nearby. | ||
|
|
||
| mods.bewitchment.incense.removeByInput(item('bewitchment:essence_of_vitality')) | ||
| mods.bewitchment.incense.removeByPotion(potion('minecraft:haste')) | ||
| // mods.bewitchment.incense.removeAll() | ||
|
|
||
| mods.bewitchment.incense.recipeBuilder() | ||
| .input(item('minecraft:clay'), item('minecraft:gold_ingot') * 5, item('minecraft:iron_ingot')) | ||
| .potion(potion('minecraft:strength'), potion('minecraft:resistance')) | ||
| .time(10000) | ||
| .register() | ||
|
|
||
|
|
||
| // Oven: | ||
| // Converts an input itemstack into an output itemstack, with the ability to have a chance to produce an optional | ||
| // itemstack, and if producing the optional itemstack will consume a `bewitchment:empty_jar`. Requires furnace fuel to run | ||
| // and takes 10 seconds per recipe. | ||
|
|
||
| mods.bewitchment.oven.removeByInput(item('minecraft:sapling')) | ||
| mods.bewitchment.oven.removeByOutput(item('bewitchment:tallow')) | ||
| mods.bewitchment.oven.removeByOutput(item('bewitchment:garlic_grilled')) | ||
| // mods.bewitchment.oven.removeAll() | ||
|
|
||
| mods.bewitchment.oven.recipeBuilder() | ||
| .input(item('minecraft:clay')) | ||
| .output(item('minecraft:diamond')) | ||
| .requiresJar(false) | ||
| .byproduct(item('minecraft:gold_nugget')) | ||
| .byproductChance(0.2f) | ||
| .register() | ||
|
|
||
|
|
||
| // Pets: | ||
| // Sets what animals are valid for summoning via the `FortuneMeetPet` effect. | ||
|
|
||
| mods.bewitchment.pet.remove(entity('minecraft:ocelot')) | ||
| // mods.bewitchment.pet.removeAll() | ||
|
|
||
| mods.bewitchment.pet.add(entity('minecraft:cow')) | ||
|
|
||
| // Rituals: | ||
| // Converts up to 10 input ingredients into a ritual. The ritual can output up to 5 items, can require specific small, | ||
| // medium, and large circle sizes, can require a specific type for each circle, can require a specific entity nearby as a | ||
| // sacrifice, can set the time the ritual takes, and can set the Magic Power consumed to start and run the ritual. | ||
|
|
||
| mods.bewitchment.ritual.removeByInput(item('minecraft:poisonous_potato')) | ||
| mods.bewitchment.ritual.removeByOutput(item('bewitchment:purifying_earth')) | ||
| // mods.bewitchment.ritual.removeAll() | ||
|
|
||
|
|
||
|
|
||
| // Sigils: | ||
| // Converts up to 25 itemstacks into a single output itemstack. | ||
|
|
||
| mods.bewitchment.sigil.remove(resource('bewitchment:mending')) | ||
| mods.bewitchment.sigil.removeByInput(item('bewitchment:bottle_of_blood')) | ||
| mods.bewitchment.sigil.removeByOutput(item('bewitchment:sigil_disorientation')) | ||
| // mods.bewitchment.sigil.removeAll() | ||
|
|
||
|
|
||
|
|
||
| // Spinning Wheel: | ||
| // Converts up to 4 itemstacks into up to 2 output itemstacks in the Spinning Wheel at the cost of 1 Magic Power per tick. | ||
| // Takes 10 seconds. | ||
|
|
||
| mods.bewitchment.spinning_wheel.remove(resource('bewitchment:cobweb')) | ||
| mods.bewitchment.spinning_wheel.removeByInput(item('minecraft:string')) | ||
| mods.bewitchment.spinning_wheel.removeByOutput(item('bewitchment:spirit_string')) | ||
| // mods.bewitchment.spinning_wheel.removeAll() | ||
|
|
||
| mods.bewitchment.spinning_wheel.recipeBuilder() | ||
| .input(item('minecraft:string'), item('minecraft:string'), item('minecraft:string'), item('minecraft:string')) | ||
| .output(item('minecraft:gold_ingot') * 4, item('minecraft:web')) | ||
| .register() | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.