neuralgia/kubejs/startup_scripts/tfg/blocks.supports.js
Redeix 31b6da9f1c
Integrated Ad Astra wood & and added wood recipe utility (#1346)
* - Yeast recipe conflict fix

* - Fixed seed oil voiding in barrels. And item weight inconsistency.

* - Reduced loading screen logo size by 4MB

* - Update Changelog

* - Compressed loading screen images to maybe help with ram

* - Added default gui scale to make the main menu look better on first launch

* - Update Changelog

* - Added utility script for adding circuits to existing recipes

* fixed changelog conflict

Signed-off-by: Redeix <59435925+Redeix@users.noreply.github.com>

* - Added harvest baskets

* - Fixed baked potato recipe mixing from oven

* - Allowed elytras to be repaired regardless of damage

* - Fixed sea water barrel recipe

* - Gave plants tags to bushes so they can have other uses

* - Pushed stubborn models

* - updated Changelog

* - Changelog typo

* - Integrated Ad Astra wood

* - Updated changelog

---------

Signed-off-by: Redeix <59435925+Redeix@users.noreply.github.com>
2025-07-15 17:41:08 +01:00

161 lines
No EOL
5 KiB
JavaScript

function registerTFGSupportBlocks(event) {
event.create('tfg:light_concrete_support', 'tfc:support')
.textureAll('tfg:block/support/light_concrete_support')
.horizontal(horizontal => {
horizontal.textureAll('tfg:block/support/light_concrete_support')
horizontal.soundType('stone')
horizontal.hardness(5)
horizontal.resistance(16)
horizontal.mapColor('color_light_gray')
horizontal.tagBlock('minecraft:mineable/pickaxe')
horizontal.requiresTool(true)
})
.soundType('stone')
.hardness(5)
.resistance(16)
.mapColor('color_light_gray')
.tagBlock('minecraft:mineable/pickaxe')
.requiresTool(true)
event.create('tfg:dark_concrete_support', 'tfc:support')
.textureAll('tfg:block/support/dark_concrete_support')
.horizontal(horizontal => {
horizontal.textureAll('tfg:block/support/dark_concrete_support')
horizontal.soundType('stone')
horizontal.hardness(5)
horizontal.resistance(16)
horizontal.mapColor('color_gray')
horizontal.tagBlock('minecraft:mineable/pickaxe')
horizontal.requiresTool(true)
})
.soundType('stone')
.hardness(5)
.resistance(16)
.mapColor('color_gray')
.tagBlock('minecraft:mineable/pickaxe')
.requiresTool(true)
event.create('tfg:reinforced_light_concrete_support', 'tfc:support')
.textureAll('tfg:block/support/reinforced_light_concrete_support')
.horizontal(horizontal => {
horizontal.textureAll('tfg:block/support/reinforced_light_concrete_support')
horizontal.soundType('stone')
horizontal.hardness(5)
horizontal.resistance(64)
horizontal.mapColor('color_light_gray')
horizontal.tagBlock('minecraft:mineable/pickaxe')
horizontal.requiresTool(true)
})
.soundType('stone')
.hardness(5)
.resistance(64)
.mapColor('color_light_gray')
.tagBlock('minecraft:mineable/pickaxe')
.requiresTool(true)
event.create('tfg:reinforced_dark_concrete_support', 'tfc:support')
.textureAll('tfg:block/support/reinforced_dark_concrete_support')
.horizontal(horizontal => {
horizontal.textureAll('tfg:block/support/reinforced_dark_concrete_support')
horizontal.soundType('stone')
horizontal.hardness(5)
horizontal.resistance(64)
horizontal.mapColor('color_gray')
horizontal.tagBlock('minecraft:mineable/pickaxe')
horizontal.requiresTool(true)
})
.soundType('stone')
.hardness(5)
.resistance(64)
.mapColor('color_gray')
.tagBlock('minecraft:mineable/pickaxe')
.requiresTool(true)
event.create('tfg:rebar_support', 'tfc:support')
.textureAll('tfg:block/support/rebar_support')
.horizontal(horizontal => {
horizontal.textureAll('tfg:block/support/rebar_support')
horizontal.soundType('chain')
horizontal.hardness(3)
horizontal.resistance(16)
horizontal.mapColor('color_orange')
horizontal.tagBlock('minecraft:mineable/pickaxe')
horizontal.tagBlock('minecraft:climbable')
horizontal.requiresTool(true)
horizontal.renderType('cutout')
horizontal.opaque(false)
})
.soundType('chain')
.hardness(3)
.resistance(16)
.mapColor('color_orange')
.tagBlock('minecraft:mineable/pickaxe')
.tagBlock('minecraft:climbable')
.requiresTool(true)
.renderType('cutout')
.opaque(false)
event.create('tfg:steel_support', 'tfc:support')
.textureAll('tfg:block/support/steel_support')
.horizontal(horizontal => {
horizontal.textureAll('tfg:block/support/steel_support')
horizontal.soundType('metal')
horizontal.hardness(5)
horizontal.resistance(64)
horizontal.mapColor('color_gray')
horizontal.tagBlock('minecraft:mineable/pickaxe')
horizontal.requiresTool(true)
})
.soundType('metal')
.hardness(5)
.resistance(64)
.mapColor('color_gray')
.tagBlock('minecraft:mineable/pickaxe')
.requiresTool(true)
const other_stone = ['pyroxenite', 'migmatite', 'travertine']
const stone_types = global.TFC_STONE_TYPES.concat(other_stone)
stone_types.forEach(stone => {
event.create(`tfg:${stone}_support`, 'tfc:support')
.textureAll(`tfg:block/support/${stone}_support`)
.horizontal(horizontal => {
horizontal.textureAll(`tfg:block/support/${stone}_support`)
horizontal.soundType('stone')
horizontal.hardness(5)
horizontal.resistance(8)
horizontal.mapColor('color_gray')
horizontal.tagBlock('minecraft:mineable/pickaxe')
horizontal.requiresTool(true)
})
.soundType('stone')
.hardness(5)
.resistance(8)
.mapColor('color_gray')
.tagBlock('minecraft:mineable/pickaxe')
.requiresTool(true)
})
global.AD_ASTRA_WOOD.forEach(wood => {
event.create(`tfg:${wood.name}_support`, 'tfc:support')
.textureAll(`tfg:block/support/${wood.name}_support`)
.horizontal(horizontal => {
horizontal.textureAll(`tfg:block/support/${wood.name}_support`)
horizontal.soundType('wood')
horizontal.hardness(2)
horizontal.resistance(2)
horizontal.mapColor('color_orange')
horizontal.tagBlock('minecraft:mineable/axe')
horizontal.requiresTool(false)
})
.soundType('wood')
.hardness(2)
.resistance(2)
.mapColor('color_orange')
.tagBlock('minecraft:mineable/axe')
.requiresTool(false)
})
}