feature: Add create casings, shadow and radiance (#2256)

* feature: Add create casings, shadow and radiance

Added recipes for create:
- shadow steel casing
- refined radiance casing

closes #2224

* fix: radiant casing recipe

- Fixed and changed radiant casing recipe
- Moved adding to create tab logic to a dedicated file for organization
- Added constants.js for tab names to prevent typos and improve maintainability

* Changed radiant casing recipe to glowstone plate

---------

Co-authored-by: Redeix <brayden.j.m.ford@gmail.com>
This commit is contained in:
Ujhik 2025-11-22 21:09:58 +01:00 committed by GitHub
parent 73f09834bb
commit 00a61f8f0d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 41 additions and 2 deletions

View file

@ -680,6 +680,30 @@ const registerCreateRecipes = (event) => {
.EUt(4)
.addMaterialInfo(true)
// Shadow steel casing
event.recipes.createItemApplication(['create:shadow_steel_casing'], ['#forge:stripped_logs', '#forge:plates/black_steel'])
.id('tfg:create/item_application/shadow_steel_casing')
event.recipes.gtceu.assembler('tfg:create/shadow_steel_casing')
.itemInputs('#forge:stripped_logs', '#forge:plates/black_steel')
.circuit(11)
.itemOutputs('create:shadow_steel_casing')
.duration(50)
.EUt(4)
.addMaterialInfo(true)
// Refined radiance casing
event.recipes.createItemApplication(['create:refined_radiance_casing'], ['#forge:stripped_logs', 'gtceu:glowstone_plate'])
.id('tfg:create/item_application/refined_radiance_casing')
event.recipes.gtceu.assembler('tfg:create/refined_radiance_casing')
.itemInputs('#forge:stripped_logs', 'gtceu:glowstone_plate')
.circuit(11)
.itemOutputs('create:refined_radiance_casing')
.duration(50)
.EUt(4)
.addMaterialInfo(true)
// Корпус поезда
event.recipes.createItemApplication(['create:railway_casing'], ['create:brass_casing', '#forge:plates/black_steel'])
.id('tfg:create/item_application/railway_casing')

View file

@ -0,0 +1,6 @@
// priority: 0
"use strict";
global.TAB_IDS = Object.freeze({
CREATE_BASE: 'create:base'
})

View file

@ -68,8 +68,6 @@ global.CREATE_DISABLED_ITEMS = [
'create:creative_fluid_tank',
'create:unprocessed_obsidian_sheet',
'create:creative_motor',
'create:refined_radiance_casing',
'create:shadow_steel_casing',
'create:wooden_bracket',
'create:red_sand_paper',
'create:empty_blaze_burner',

View file

@ -0,0 +1,7 @@
// priority: 0
"use strict";
function modifyCreateCreativeTab(event) {
event.add('create:shadow_steel_casing')
event.add('create:refined_radiance_casing')
}

View file

@ -84,6 +84,10 @@ GTCEuStartupEvents.craftingComponents(event => {
registerTFGCraftingComponents(event)
})
StartupEvents.modifyCreativeTab(global.TAB_IDS.CREATE_BASE, event => {
modifyCreateCreativeTab(event)
})
Platform.mods.primitive_creatures.name = "Primitive Creatures";
Platform.mods.tfg.name = "TerraFirmaGreg";
Platform.mods.kubejs.name = "TerraFirmaGreg";