Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
94 commits
Select commit Hold shift + click to select a range
1ba7892
dont log twice if flags are true
WaitingIdly Oct 10, 2025
f4a878d
use LoadStage enum for annotation
WaitingIdly Oct 10, 2025
aab6fc8
remove IFormat parameter from gen wiki
WaitingIdly Oct 10, 2025
e859841
add targetFile to generateExamples
WaitingIdly Oct 10, 2025
20c359f
move examples to "generated" subfolder
WaitingIdly Oct 10, 2025
6930f69
generate wiki in wiki/mods folder
WaitingIdly Oct 10, 2025
d56c49b
add IContainerDocumentation
WaitingIdly Oct 10, 2025
b31bea2
change vanilla wiki to generate in separate folder
WaitingIdly Oct 10, 2025
632c8fe
add the ability to export files directly
WaitingIdly Oct 10, 2025
4dc5404
add vanilla index file to export directly
WaitingIdly Oct 10, 2025
42dc005
log.info into log
WaitingIdly Oct 10, 2025
b937611
return boolean for IContainerDocumentation
WaitingIdly Oct 10, 2025
a393f04
use IGroovyContainer for doc
WaitingIdly Oct 10, 2025
3d5e0ea
rename parameter to loadStage
WaitingIdly Oct 10, 2025
c2e9a53
simplify Registry creation
WaitingIdly Oct 10, 2025
8424481
use list for inworldcrafting
WaitingIdly Oct 14, 2025
6ca35b6
allow a single annotation to target multiple methods
WaitingIdly Oct 14, 2025
0da636b
refactor recursive annotation fetching
WaitingIdly Oct 14, 2025
4fe71f0
gather recursive annotations for RBMD/RBRM
WaitingIdly Oct 14, 2025
4213ee5
extract try-catch IO in Documentation, simplify
WaitingIdly Oct 14, 2025
e6b1688
move VALUE method examples to first
WaitingIdly Oct 14, 2025
c02bd62
pass lang key into builder
WaitingIdly Oct 14, 2025
41d38b3
consolidate logic with IRegistryDocumentation
WaitingIdly Oct 16, 2025
f71ecce
make default reference use global binding if exists
WaitingIdly Oct 16, 2025
814c748
adjust vanilla logic with custom container
WaitingIdly Oct 16, 2025
302dc67
make vanilla register globals based on its aliases
WaitingIdly Oct 16, 2025
f935266
extract strings to constants
WaitingIdly Oct 16, 2025
af72fbd
apply change to vanilla minecraft postInit
WaitingIdly Oct 16, 2025
3e5ceca
generate mekanism infusion texture
WaitingIdly Oct 16, 2025
84a8d62
generate preInit ZorraAltar examples
WaitingIdly Oct 16, 2025
7d817ab
fix piston push validation incorrectly allowing 0
WaitingIdly Oct 16, 2025
46ee885
allow non-mod ContainerHolder headers
WaitingIdly Oct 16, 2025
5c4b4fc
add in-world crafting
WaitingIdly Oct 16, 2025
da64d3e
ensure trailing whitespace is the same in all examples
WaitingIdly Oct 16, 2025
0f3aadd
change carving sound to ADDITION
WaitingIdly Oct 16, 2025
f6c77f8
simplify documenting type method
WaitingIdly Oct 16, 2025
af8e7b4
streamline compare packages
WaitingIdly Oct 16, 2025
8ec95d5
convert example to use case insensitive
WaitingIdly Oct 16, 2025
5fcc8ea
sort example entries better
WaitingIdly Oct 16, 2025
d3f0787
the humble spotless apply
WaitingIdly Oct 16, 2025
7c01de3
delete old in_world_crafting examples
WaitingIdly Oct 16, 2025
10e7036
end index file with more line breaks
WaitingIdly Oct 16, 2025
53f4d6c
make minecraft use alias and have more of them
WaitingIdly Oct 16, 2025
bf53f48
rename minecraft wiki page to Vanilla Registries
WaitingIdly Oct 16, 2025
de5f9d0
rework package block to be clearer and less spammy
WaitingIdly Oct 16, 2025
c4fab4c
always admonition, but only collapse if too many
WaitingIdly Oct 16, 2025
0a1f606
switch admonition to quote
WaitingIdly Oct 16, 2025
38a767e
fix vararg method ties
WaitingIdly Oct 16, 2025
7af1042
rename generated files
WaitingIdly Oct 16, 2025
25a8c25
make inWorldCrafting have properties correctly
WaitingIdly Oct 17, 2025
10518b4
deduplicate sets in a different location
WaitingIdly Oct 17, 2025
cb385d8
add more inworldcrafting examples
WaitingIdly Oct 17, 2025
65271d2
add header control to markdown sections
WaitingIdly Oct 17, 2025
6e8bf59
rename subtitle to comment
WaitingIdly Oct 17, 2025
674bf7f
note header level
WaitingIdly Oct 17, 2025
3b53cca
remove random unused imports
WaitingIdly Oct 17, 2025
1e9e859
reduce some code complexity
WaitingIdly Nov 23, 2025
fa5c2ba
document containerholder better
WaitingIdly Nov 23, 2025
fbf869a
add LangHelper.fallback
WaitingIdly Nov 23, 2025
442e10f
replace all headers with MarkdownSection
WaitingIdly Nov 23, 2025
8528b8f
rename to Heading
WaitingIdly Nov 23, 2025
4da45eb
make header IFormat
WaitingIdly Nov 24, 2025
635fb6b
thats now how you make new lines
WaitingIdly Nov 24, 2025
d356266
add category header overrides
WaitingIdly Nov 24, 2025
b6198e7
make non-varargs translate method
WaitingIdly Nov 24, 2025
443ff17
rework lang key usage for category
WaitingIdly Nov 24, 2025
66137c4
adjust documenting methods
WaitingIdly Nov 24, 2025
808f6a1
surround mod in parentheses for title
WaitingIdly Nov 24, 2025
19d0c0d
extract tab indent whitespace
WaitingIdly Nov 24, 2025
66c68ca
document content creation
WaitingIdly Nov 24, 2025
69eb99a
gather overrides from class
WaitingIdly Nov 24, 2025
808db78
tulip typo
WaitingIdly Nov 25, 2025
1c7e535
fix error not logging desired info
WaitingIdly Nov 25, 2025
9d8c094
add description to recipe builder methods
WaitingIdly Nov 25, 2025
fb9269d
reduce complexity of some field doc code
WaitingIdly Nov 25, 2025
61565b2
ensure period in custom register description
WaitingIdly Nov 25, 2025
59e042c
document content builders
WaitingIdly Nov 25, 2025
cc455f5
remove trailing newlines on index files
WaitingIdly Nov 26, 2025
dc56f19
sort classes that skipped documentation
WaitingIdly Nov 26, 2025
0605e86
add method descriptions to more places
WaitingIdly Nov 26, 2025
45865f7
fix melting recipe builder
WaitingIdly Nov 26, 2025
0076686
spotless apply
WaitingIdly Nov 26, 2025
2ccd756
needs two percent symbols
WaitingIdly Nov 26, 2025
48acd0e
move heading to constructor, split link logic
WaitingIdly Nov 26, 2025
57f6ee1
add custom iwc description
WaitingIdly Nov 26, 2025
cc2637b
remove now-unused test file
WaitingIdly Nov 26, 2025
4de9098
add a single space to indent better
WaitingIdly Nov 27, 2025
5165b1a
use priority for wiki
WaitingIdly Nov 27, 2025
8479294
minor whitespace change
WaitingIdly Nov 27, 2025
522001b
remove useless distinct call
WaitingIdly Nov 27, 2025
9c8e4bc
add more content documentation
WaitingIdly Nov 27, 2025
a73c7c3
Merge branch 'master' into custom-docs
WaitingIdly Nov 27, 2025
7eb1c76
minor capitalization typo
WaitingIdly Nov 27, 2025
2567614
Merge branch 'master' into custom-docs
WaitingIdly Dec 10, 2025
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
38 changes: 0 additions & 38 deletions examples/postInit/custom/in_world_crafting.groovy

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Auto generated groovyscript example file
// MODS_LOADED: actuallyadditions

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

// Atomic Reconstructor:
// The Atomic Reconstructor is a block which uses energy to convert a block or item in front of it into other items.
Expand Down Expand Up @@ -120,8 +120,8 @@ mods.actuallyadditions.empowerer.recipeBuilder()
// A weighted oredict for the block obtained via firing a Mining Lens at a block of Netherrack. The oredict must have a
// block, or the world will hang.

mods.actuallyadditions.nether_mining_lens.removeByOre(ore('oreQuartz'))
mods.actuallyadditions.nether_mining_lens.removeByOre('oreQuartz')
mods.actuallyadditions.nether_mining_lens.removeByOre(ore('oreQuartz'))
// mods.actuallyadditions.nether_mining_lens.removeAll()

mods.actuallyadditions.nether_mining_lens.recipeBuilder()
Expand All @@ -139,8 +139,8 @@ mods.actuallyadditions.nether_mining_lens.recipeBuilder()
// Turns a fluid into power at a rate.

mods.actuallyadditions.oil_gen.removeByInput(fluid('canolaoil').getFluid())
mods.actuallyadditions.oil_gen.removeByInput(fluid('canolaoil'))
mods.actuallyadditions.oil_gen.removeByInput('refinedcanolaoil')
mods.actuallyadditions.oil_gen.removeByInput(fluid('canolaoil'))
// mods.actuallyadditions.oil_gen.removeAll()

mods.actuallyadditions.oil_gen.recipeBuilder()
Expand All @@ -160,8 +160,8 @@ mods.actuallyadditions.oil_gen.recipeBuilder()
// A weighted oredict for the block obtained via firing a Mining Lens at a block of Stone. The oredict must have a block,
// or the world will hang.

mods.actuallyadditions.stone_mining_lens.removeByOre(ore('oreCoal'))
mods.actuallyadditions.stone_mining_lens.removeByOre('oreLapis')
mods.actuallyadditions.stone_mining_lens.removeByOre(ore('oreCoal'))
// mods.actuallyadditions.stone_mining_lens.removeAll()

mods.actuallyadditions.stone_mining_lens.recipeBuilder()
Expand All @@ -188,5 +188,3 @@ mods.actuallyadditions.treasure_chest.recipeBuilder()
.min(16)
.max(32)
.register()


Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Auto generated groovyscript example file
// MODS_LOADED: advancedmortars

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

// Mortar:
// Uses any number of specific types of Mortars to convert multiple items into a single output with a possible chance
Expand Down Expand Up @@ -32,7 +32,6 @@ mods.advancedmortars.mortar.recipeBuilder()
.register()


mods.advancedmortars.mortar.add(['iron', 'wood'], item('minecraft:tnt') * 5, 4, item('minecraft:tnt'), 0.7, [ore('ingotIron'), ore('ingotIron'), ore('ingotIron'), ore('ingotIron'),ore('ingotIron'), ore('ingotIron'), ore('ingotIron'), ore('ingotIron')])
mods.advancedmortars.mortar.add(['stone'], item('minecraft:tnt'), 4, [ore('ingotGold')])
mods.advancedmortars.mortar.add(['stone'], item('minecraft:diamond') * 4, 4, [ore('ingotGold')])

mods.advancedmortars.mortar.add(['iron', 'wood'], item('minecraft:tnt') * 5, 4, item('minecraft:tnt'), 0.7, [ore('ingotIron'), ore('ingotIron'), ore('ingotIron'), ore('ingotIron'),ore('ingotIron'), ore('ingotIron'), ore('ingotIron'), ore('ingotIron')])
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Auto generated groovyscript example file
// MODS_LOADED: advancedrocketry

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

// Centrifuge:
// Converts an input fluid into up to 12 output items and up to 4 output fluids, consuming RF.
Expand Down Expand Up @@ -169,5 +169,3 @@ mods.advancedrocketry.small_plate_presser.recipeBuilder()
.input(item('minecraft:cobblestone'))
.output(item('minecraft:diamond'))
.register()


Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Auto generated groovyscript example file
// MODS_LOADED: aether_legacy

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

// Accessory:
// The Aether Accessory system.
Expand Down Expand Up @@ -57,4 +57,3 @@ mods.aether_legacy.freezer_fuel.removeByItem(item('aether_legacy:icestone'))
// mods.aether_legacy.freezer_fuel.removeAll()

mods.aether_legacy.freezer_fuel.add(item('minecraft:packed_ice'), 1000)

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Auto generated groovyscript example file
// MODS_LOADED: alchemistry

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

// Atomizer:
// Converts a non-element into its component elements.
Expand Down Expand Up @@ -125,5 +125,3 @@ mods.alchemistry.liquifier.recipeBuilder()
.input(item('minecraft:magma'))
.fluidOutput(fluid('lava') * 750)
.register()


Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,21 @@

import appeng.capabilities.Capabilities

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

// P2P Attunement:
// Controls using specific items, any items from a mod, or any items with a Capability to convert a P2P into a specific
// tunnel type.

mods.appliedenergistics2.attunement.remove(Capabilities.FORGE_ENERGY, tunnel('fe_power'))
mods.appliedenergistics2.attunement.remove(item('minecraft:lever'), tunnel('redstone'))
mods.appliedenergistics2.attunement.remove('thermaldynamics', tunnel('fe_power'))
mods.appliedenergistics2.attunement.remove(item('minecraft:lever'), tunnel('redstone'))
mods.appliedenergistics2.attunement.remove(Capabilities.FORGE_ENERGY, tunnel('fe_power'))
mods.appliedenergistics2.attunement.removeByTunnel(tunnel('item'))
// mods.appliedenergistics2.attunement.removeAll()

mods.appliedenergistics2.attunement.add(Capabilities.FORGE_ENERGY, tunnel('item'))
mods.appliedenergistics2.attunement.add(item('minecraft:clay'), tunnel('item'))
mods.appliedenergistics2.attunement.add('thermaldynamics', tunnel('redstone'))
mods.appliedenergistics2.attunement.add(item('minecraft:clay'), tunnel('item'))
mods.appliedenergistics2.attunement.add(Capabilities.FORGE_ENERGY, tunnel('item'))

// Cannon Ammo:
// Item and weight, where weight is a factor in how much damage is dealt.
Expand Down Expand Up @@ -78,4 +78,3 @@ mods.appliedenergistics2.spatial.remove('net.minecraft.tileentity.TileEntityChes
// mods.appliedenergistics2.spatial.removeAll()

mods.appliedenergistics2.spatial.add('net.minecraft.tileentity.TileEntityStructure')

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Auto generated groovyscript example file
// MODS_LOADED: arcanearchives

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

// Gem Cutting Table:
// Converts any number of itemstacks into a single output itemstack via selecting the desired output itemstack in the GUI.
Expand All @@ -21,5 +21,3 @@ mods.arcanearchives.gem_cutting_table.recipeBuilder()
.input(item('minecraft:stone'),item('minecraft:gold_ingot'),item('minecraft:gold_nugget'))
.output(item('minecraft:clay') * 4)
.register()


Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Auto generated groovyscript example file
// MODS_LOADED: arcaneworld

log.info 'mod \'arcaneworld\' detected, running script'
log '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
Expand All @@ -21,51 +21,40 @@ mods.arcaneworld.ritual.recipeBuilder()
.name('groovyscript:custom_name')
.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.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)
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.recipeBuilderDungeon()
.input(item('minecraft:diamond'), item('minecraft:clay'), item('minecraft:clay'))
.translationKey('groovyscript.demo_dungeon')
.register()

mods.arcaneworld.ritual.recipeBuilderWeather()
Expand All @@ -86,4 +75,13 @@ mods.arcaneworld.ritual.recipeBuilderWeather()
.weatherThunder()
.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.recipeBuilderDragonBreath()
.input(item('minecraft:clay'), item('minecraft:clay'), item('minecraft:clay'), item('minecraft:clay'), item('minecraft:clay'))
.translationKey('groovyscript.demo_dragon_breath')
.register()
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Auto generated groovyscript example file
// MODS_LOADED: armorplus

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

// Champion Bench:
// A normal crafting recipe, but with a 9x9 grid and in the Champion Bench.
Expand Down Expand Up @@ -41,8 +41,8 @@ mods.armorplus.high_tech_bench.removeByOutput(item('armorplus:emerald_helmet'))
mods.armorplus.high_tech_bench.shapedBuilder()
.output(item('minecraft:diamond') * 32)
.matrix([[item('minecraft:gold_ingot'), item('minecraft:gold_ingot'), item('minecraft:gold_ingot')],
[item('minecraft:gold_ingot'), item('minecraft:gold_ingot'), item('minecraft:gold_ingot')],
[item('minecraft:gold_ingot'), item('minecraft:gold_ingot'), item('minecraft:gold_ingot')]])
[item('minecraft:gold_ingot'), item('minecraft:gold_ingot'), item('minecraft:gold_ingot')],
[item('minecraft:gold_ingot'), item('minecraft:gold_ingot'), item('minecraft:gold_ingot')]])
.register()


Expand Down Expand Up @@ -114,5 +114,3 @@ mods.armorplus.work_bench.shapelessBuilder()
.output(item('minecraft:clay') * 8)
.input(item('minecraft:stone'), item('minecraft:stone'), item('minecraft:stone'))
.register()


Loading