Archive eaglerforge-injector (tool, 1.8.8, clean-with-notes)

This commit is contained in:
2026-11-27 22:15:15 -06:00
parent 5f406cdc02
commit 606dab7e6e
91 changed files with 9667 additions and 0 deletions
@@ -0,0 +1,14 @@
## ModAPI.keygen
ModAPI.keygen contains the API for getting numerical item, block and entity IDs from a string. It looks at registries to derive the IDs, so IDs will not be automatically reserved until a block/item is actually registered into the game. Ideally, you'd want to call a keygen method just before registering your block.
Methods:
- `ModAPI.keygen.item(itemId: String) : number`
- Example usage is: `var id = ModAPI.keygen.item("my_example_item");`
- `ModAPI.keygen.block(blockId: String) : number`
- Example usage is: `var id = ModAPI.keygen.block("my_example_block");`
- `ModAPI.keygen.entity(entityId: String) : number`
- Example usage is: `var id = ModAPI.keygen.entity("my_example_entity");`
- `ModAPI.keygen.sound(soundId: String) : number`
- Example usage is: `var id = ModAPI.keygen.sound("my.example.sound");`
- `ModAPI.keygen.enchantment(enchantmentId: String) : number`
- Example usage is: `var id = ModAPI.keygen.enchantment("sharpness_v2");`