-
Notifications
You must be signed in to change notification settings - Fork 0
Add Ex Nihilo Creatio integration #15
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
Changes from all commits
90885fb
da57129
1e8eed2
4db3328
9adc8ec
07f5d65
6e0569d
7322b39
4376179
326c658
ac12238
2237e8f
b1454a3
c8525f9
ad64644
1acc435
98bd047
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,6 +9,7 @@ The table below shows current coverage: | |
| | Better Builder's Wands | — | No API yet | | ||
| | Chisel | — | No API yet | | ||
| | Storage Drawers | `integration.storagedrawers.api` | Available, but for mixin only | | ||
| | Ex Nihilo: Creatio | - | No API yet | | ||
|
|
||
| All registration calls must happen during your mod's `preInit` phase, | ||
| **before** GTMT's `registerBlocks`, unless stated otherwise. | ||
|
|
@@ -231,3 +232,47 @@ P X P | |
| - **X** = If _tier_ is -1, a `stickLong`; otherwise, a `Field Generator` of the specified tier | ||
|
|
||
| - _Storage Upgrade_ conversion recipes between StorageDrawers and GTMoreTools are always added for Obsidian / Iron / Gold / Diamond / Emerald. | ||
|
|
||
| --- | ||
|
|
||
| ## Ex Nihilo: Creatio Integration | ||
|
|
||
| No addon API is currently available. The following describes the internal logic for reference. | ||
|
|
||
| ### What is added | ||
|
|
||
| 1. **GT-style Crooks** — registered for every GT material with the `TOOL` property. | ||
| 2. **Hammer Conversion** - CEu Hard hammers can now be used as Ex Nihilo hammers. | ||
| 3. **Sieve Compatibility** — added Steam and Electric Sieves, GT pebbles and GT Ore chunk. | ||
|
|
||
| ### Tool crafting | ||
|
|
||
| | Config | Recipe shape | Materials | | ||
| |--------|----------------------|--------------| | ||
| | Always | `"SS" / " S" / " S"` | Rod (or Gem) | | ||
|
|
||
| The original Wood, Iron, Gold, Diamond Crook recipe is removed when `replaceCrook = true`. | ||
| Registered as `toolCrook`. | ||
|
|
||
| ### Electric Sieve Recipe | ||
|
|
||
| ``` | ||
| C P C | ||
| V H V | ||
| W S W | ||
| ``` | ||
|
|
||
| - **C** = Circuit (all tier-scaled), **P** = Piston | ||
| - **V** = Conveyer, **H** = Hull, **W** = `cableGTSingle` (LV = Tin, MV = Copper, ...) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win Correct the component name. Line 266 uses 🧰 Tools🪛 LanguageTool[grammar] ~266-~266: Ensure spelling is correct (QB_NEW_EN_ORTHOGRAPHY_ERROR_IDS_1) 🤖 Prompt for AI AgentsSource: Linters/SAST tools |
||
| - **S** = Sieve | ||
|
|
||
| ### Sieving Compatibility | ||
|
|
||
| :warning:**_WARNING_**:warning: This feature is temporary and will be removed once GTCEu supports it natively. | ||
| - Adds GT stone Pebbles and Rubber Saplings to the Dirt Sieve drop table. | ||
| - Allows GT Materials to be added to the Sieve drop tables for Sand, Gravel, Andesite, Granite, Diorite, Netherrack, and Endstone via the config. | ||
| - Format: `modid:materialName@chance*meshLevel` (`modid` is optional and defaults to `gregtech`.) | ||
| - When `outputVeinProbabilities` is set to `true`, all worldgen vein definitions under `config/gregtech/worldgen/vein/` are scanned, and the generation probability of each ore is written to the log. | ||
| > **Note:** GTMT only adds new entries and does not modify the default Sieve drop tables. | ||
|
|
||
| --- | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| The MIT License (MIT) | ||
|
|
||
| Copyright (c) 2015 MikeLydeamore (original Mod); | ||
| Copyright (c) 2017 Jacky1356400 (initial Port); | ||
| Copyright (c) 2017 BloodWorkXGaming (current Maintainer) | ||
| Copyright (c) 2017 SirLyle (current Maintainer) | ||
| Copyright (c) 2019 Wolforce (textures) | ||
|
|
||
| Permission is hereby granted, free of charge, to any person obtaining a copy | ||
| of this software and associated documentation files (the "Software"), to deal | ||
| in the Software without restriction, including without limitation the rights | ||
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
| copies of the Software, and to permit persons to whom the Software is | ||
| furnished to do so, subject to the following conditions: | ||
|
|
||
| The above copyright notice and this permission notice shall be included in all | ||
| copies or substantial portions of the Software. | ||
|
|
||
| THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
| LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
| OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
| SOFTWARE. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| MIT License | ||
|
|
||
| Copyright (c) 2022 GregTech CE Unofficial Team | ||
|
|
||
| Permission is hereby granted, free of charge, to any person obtaining a copy | ||
| of this software and associated documentation files (the "Software"), to deal | ||
| in the Software without restriction, including without limitation the rights | ||
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
| copies of the Software, and to permit persons to whom the Software is | ||
| furnished to do so, subject to the following conditions: | ||
|
|
||
| The above copyright notice and this permission notice shall be included in all | ||
| copies or substantial portions of the Software. | ||
|
|
||
| THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
| LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
| OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
| SOFTWARE. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| package com.github.gtexpert.gtmt.api.unification.material.info; | ||
|
|
||
| import gregtech.api.unification.material.info.MaterialIconType; | ||
|
|
||
| public class GTMTMaterialIconType { | ||
|
|
||
| // Ex Nihilo: Creatio | ||
| public static final MaterialIconType oreChunk = new MaterialIconType("oreChunk"); | ||
| public static final MaterialIconType oreEnderChunk = new MaterialIconType("oreEnderChunk"); | ||
| public static final MaterialIconType oreNetherChunk = new MaterialIconType("oreNetherChunk"); | ||
| public static final MaterialIconType oreSandyChunk = new MaterialIconType("oreSandyChunk"); | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| package com.github.gtexpert.gtmt.api.unification.material.ore; | ||
|
|
||
| import static gregtech.api.unification.ore.OrePrefix.Conditions.hasOreProperty; | ||
| import static gregtech.api.unification.ore.OrePrefix.Flags.ENABLE_UNIFICATION; | ||
|
|
||
| import gregtech.api.unification.ore.OrePrefix; | ||
|
|
||
| import com.github.gtexpert.gtmt.api.unification.material.info.GTMTMaterialIconType; | ||
|
|
||
| public class GTMTOrePrefix { | ||
|
|
||
| // Ex Nihilo: Creatio | ||
|
|
||
| public static final OrePrefix oreChunk = new OrePrefix("oreChunk", -1, null, GTMTMaterialIconType.oreChunk, | ||
| ENABLE_UNIFICATION, hasOreProperty); | ||
| public static final OrePrefix oreEnderChunk = new OrePrefix("oreEnderChunk", -1, null, | ||
| GTMTMaterialIconType.oreEnderChunk, ENABLE_UNIFICATION, hasOreProperty); | ||
| public static final OrePrefix oreNetherChunk = new OrePrefix("oreNetherChunk", -1, null, | ||
| GTMTMaterialIconType.oreNetherChunk, ENABLE_UNIFICATION, hasOreProperty); | ||
| public static final OrePrefix oreSandyChunk = new OrePrefix("oreSandyChunk", -1, null, | ||
| GTMTMaterialIconType.oreSandyChunk, ENABLE_UNIFICATION, hasOreProperty); | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
Correct the integration name.
Line 2 spells the mod name as
Ex Nihiro. UseEx Nihilo: Creatio.🧰 Tools
🪛 LanguageTool
[grammar] ~2-~2: Ensure spelling is correct
Context: # v1.5.0 ## Ex Nihiro: Creatio Integration - _Crooking Compati...
(QB_NEW_EN_ORTHOGRAPHY_ERROR_IDS_1)
🤖 Prompt for AI Agents
Source: Linters/SAST tools