big tidying of startup scripts!
This commit is contained in:
parent
bda35f7f6c
commit
0916fd2e21
50 changed files with 2767 additions and 2841 deletions
429
kubejs/startup_scripts/tfg/primitive/blocks.supports.js
Normal file
429
kubejs/startup_scripts/tfg/primitive/blocks.supports.js
Normal file
|
|
@ -0,0 +1,429 @@
|
|||
"use strict";
|
||||
|
||||
function registerTFGSupportBlocks(event) {
|
||||
// Wood
|
||||
event.create(`tfg:aeronos_support`, 'tfc:support')
|
||||
.textureAll(`ad_astra:block/aeronos_cap`)
|
||||
.horizontal(horizontal => {
|
||||
horizontal.textureAll(`ad_astra:block/aeronos_stem`)
|
||||
horizontal.soundType('wood')
|
||||
horizontal.hardness(2)
|
||||
horizontal.resistance(2)
|
||||
horizontal.mapColor('terracotta_blue')
|
||||
horizontal.tagBlock('minecraft:mineable/axe')
|
||||
horizontal.requiresTool(false)
|
||||
})
|
||||
.soundType('wood')
|
||||
.hardness(2)
|
||||
.resistance(2)
|
||||
.mapColor('terracotta_blue')
|
||||
.tagBlock('minecraft:mineable/axe')
|
||||
.requiresTool(false)
|
||||
|
||||
event.create(`tfg:strophar_support`, 'tfc:support')
|
||||
.textureAll(`ad_astra:block/strophar_cap`)
|
||||
.horizontal(horizontal => {
|
||||
horizontal.textureAll(`ad_astra:block/strophar_stem`)
|
||||
horizontal.soundType('wood')
|
||||
horizontal.hardness(2)
|
||||
horizontal.resistance(2)
|
||||
horizontal.mapColor('color_white')
|
||||
horizontal.tagBlock('minecraft:mineable/axe')
|
||||
horizontal.requiresTool(false)
|
||||
})
|
||||
.soundType('wood')
|
||||
.hardness(2)
|
||||
.resistance(2)
|
||||
.mapColor('color_white')
|
||||
.tagBlock('minecraft:mineable/axe')
|
||||
.requiresTool(false)
|
||||
|
||||
event.create(`tfg:glacian_support`, 'tfc:support')
|
||||
.textureAll(`ad_astra:block/stripped_glacian_log`)
|
||||
.horizontal(horizontal => {
|
||||
horizontal.textureAll(`ad_astra:block/stripped_glacian_log`)
|
||||
horizontal.soundType('wood')
|
||||
horizontal.hardness(2)
|
||||
horizontal.resistance(2)
|
||||
horizontal.mapColor('crimson_stem')
|
||||
horizontal.tagBlock('minecraft:mineable/axe')
|
||||
horizontal.requiresTool(false)
|
||||
})
|
||||
.soundType('wood')
|
||||
.hardness(2)
|
||||
.resistance(2)
|
||||
.mapColor('crimson_stem')
|
||||
.tagBlock('minecraft:mineable/axe')
|
||||
.requiresTool(false)
|
||||
|
||||
// Stone
|
||||
global.TFC_STONE_TYPES.forEach(stone => {
|
||||
event.create(`tfg:${stone}_support`, 'tfc:support')
|
||||
.textureAll(`tfc:block/rock/raw/${stone}`)
|
||||
.horizontal(horizontal => {
|
||||
horizontal.textureAll(`tfc:block/rock/raw/${stone}`)
|
||||
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)
|
||||
})
|
||||
|
||||
event.create(`tfg:migmatite_support`, 'tfc:support')
|
||||
.textureAll('minecraft:block/deepslate')
|
||||
.horizontal(horizontal => {
|
||||
horizontal.textureAll('minecraft:block/deepslate')
|
||||
horizontal.soundType(global.STONE_CHARACS.deepslate.sound)
|
||||
horizontal.hardness(5)
|
||||
horizontal.resistance(8)
|
||||
horizontal.mapColor(global.STONE_CHARACS.deepslate.mapColor)
|
||||
horizontal.tagBlock('minecraft:mineable/pickaxe')
|
||||
horizontal.requiresTool(true)
|
||||
})
|
||||
.soundType(global.STONE_CHARACS.deepslate.sound)
|
||||
.hardness(5)
|
||||
.resistance(8)
|
||||
.mapColor(global.STONE_CHARACS.deepslate.mapColor)
|
||||
.tagBlock('minecraft:mineable/pickaxe')
|
||||
.requiresTool(true)
|
||||
|
||||
event.create(`tfg:pyroxenite_support`, 'tfc:support')
|
||||
.textureAll('minecraft:block/blackstone')
|
||||
.horizontal(horizontal => {
|
||||
horizontal.textureAll('minecraft:block/blackstone')
|
||||
horizontal.soundType(global.STONE_CHARACS.blackstone.sound)
|
||||
horizontal.hardness(5)
|
||||
horizontal.resistance(8)
|
||||
horizontal.mapColor(global.STONE_CHARACS.blackstone.mapColor)
|
||||
horizontal.tagBlock('minecraft:mineable/pickaxe')
|
||||
horizontal.requiresTool(true)
|
||||
})
|
||||
.soundType(global.STONE_CHARACS.blackstone.sound)
|
||||
.hardness(5)
|
||||
.resistance(8)
|
||||
.mapColor(global.STONE_CHARACS.blackstone.mapColor)
|
||||
.tagBlock('minecraft:mineable/pickaxe')
|
||||
.requiresTool(true)
|
||||
|
||||
event.create(`tfg:travertine_support`, 'tfc:support')
|
||||
.textureAll('minecraft:block/dripstone_block')
|
||||
.horizontal(horizontal => {
|
||||
horizontal.textureAll('minecraft:block/dripstone_block')
|
||||
horizontal.soundType(global.STONE_CHARACS.dripstone.sound)
|
||||
horizontal.hardness(5)
|
||||
horizontal.resistance(8)
|
||||
horizontal.mapColor(global.STONE_CHARACS.dripstone.mapColor)
|
||||
horizontal.tagBlock('minecraft:mineable/pickaxe')
|
||||
horizontal.requiresTool(true)
|
||||
})
|
||||
.soundType(global.STONE_CHARACS.dripstone.sound)
|
||||
.hardness(5)
|
||||
.resistance(8)
|
||||
.mapColor(global.STONE_CHARACS.dripstone.mapColor)
|
||||
.tagBlock('minecraft:mineable/pickaxe')
|
||||
.requiresTool(true)
|
||||
|
||||
event.create(`tfg:keratophyre_support`, 'tfc:support')
|
||||
.textureAll('beneath:block/crackrack')
|
||||
.horizontal(horizontal => {
|
||||
horizontal.textureAll('beneath:block/crackrack')
|
||||
horizontal.soundType(global.STONE_CHARACS.crackrack.sound)
|
||||
horizontal.hardness(5)
|
||||
horizontal.resistance(8)
|
||||
horizontal.mapColor(global.STONE_CHARACS.crackrack.mapColor)
|
||||
horizontal.tagBlock('minecraft:mineable/pickaxe')
|
||||
horizontal.requiresTool(true)
|
||||
})
|
||||
.soundType(global.STONE_CHARACS.crackrack.sound)
|
||||
.hardness(5)
|
||||
.resistance(8)
|
||||
.mapColor(global.STONE_CHARACS.crackrack.mapColor)
|
||||
.tagBlock('minecraft:mineable/pickaxe')
|
||||
.requiresTool(true)
|
||||
|
||||
event.create(`tfg:anorthosite_support`, 'tfc:support')
|
||||
.textureAll('ad_astra:block/moon_stone')
|
||||
.horizontal(horizontal => {
|
||||
horizontal.textureAll('ad_astra:block/moon_stone')
|
||||
horizontal.soundType(global.STONE_CHARACS.moon.sound)
|
||||
horizontal.hardness(5)
|
||||
horizontal.resistance(8)
|
||||
horizontal.mapColor(global.STONE_CHARACS.moon.mapColor)
|
||||
horizontal.tagBlock('minecraft:mineable/pickaxe')
|
||||
horizontal.requiresTool(true)
|
||||
})
|
||||
.soundType(global.STONE_CHARACS.moon.sound)
|
||||
.hardness(5)
|
||||
.resistance(8)
|
||||
.mapColor(global.STONE_CHARACS.moon.mapColor)
|
||||
.tagBlock('minecraft:mineable/pickaxe')
|
||||
.requiresTool(true)
|
||||
|
||||
event.create(`tfg:norite_support`, 'tfc:support')
|
||||
.textureAll('ad_astra:block/moon_deepslate')
|
||||
.horizontal(horizontal => {
|
||||
horizontal.textureAll('ad_astra:block/moon_deepslate')
|
||||
horizontal.soundType(global.STONE_CHARACS.moon_deepslate.sound)
|
||||
horizontal.hardness(5)
|
||||
horizontal.resistance(8)
|
||||
horizontal.mapColor(global.STONE_CHARACS.moon_deepslate.mapColor)
|
||||
horizontal.tagBlock('minecraft:mineable/pickaxe')
|
||||
horizontal.requiresTool(true)
|
||||
})
|
||||
.soundType(global.STONE_CHARACS.moon_deepslate.sound)
|
||||
.hardness(5)
|
||||
.resistance(8)
|
||||
.mapColor(global.STONE_CHARACS.moon_deepslate.mapColor)
|
||||
.tagBlock('minecraft:mineable/pickaxe')
|
||||
.requiresTool(true)
|
||||
|
||||
event.create(`tfg:argillite_support`, 'tfc:support')
|
||||
.textureAll('ad_astra:block/mars_stone')
|
||||
.horizontal(horizontal => {
|
||||
horizontal.textureAll('ad_astra:block/mars_stone')
|
||||
horizontal.soundType(global.STONE_CHARACS.mars.sound)
|
||||
horizontal.hardness(5)
|
||||
horizontal.resistance(8)
|
||||
horizontal.mapColor(global.STONE_CHARACS.mars.mapColor)
|
||||
horizontal.tagBlock('minecraft:mineable/pickaxe')
|
||||
horizontal.requiresTool(true)
|
||||
})
|
||||
.soundType(global.STONE_CHARACS.mars.sound)
|
||||
.hardness(5)
|
||||
.resistance(8)
|
||||
.mapColor(global.STONE_CHARACS.mars.mapColor)
|
||||
.tagBlock('minecraft:mineable/pickaxe')
|
||||
.requiresTool(true)
|
||||
|
||||
event.create(`tfg:trachyte_support`, 'tfc:support')
|
||||
.textureAll('ad_astra:block/venus_stone')
|
||||
.horizontal(horizontal => {
|
||||
horizontal.textureAll('ad_astra:block/venus_stone')
|
||||
horizontal.soundType(global.STONE_CHARACS.venus.sound)
|
||||
horizontal.hardness(5)
|
||||
horizontal.resistance(8)
|
||||
horizontal.mapColor(global.STONE_CHARACS.venus.mapColor)
|
||||
horizontal.tagBlock('minecraft:mineable/pickaxe')
|
||||
horizontal.requiresTool(true)
|
||||
})
|
||||
.soundType(global.STONE_CHARACS.venus.sound)
|
||||
.hardness(5)
|
||||
.resistance(8)
|
||||
.mapColor(global.STONE_CHARACS.venus.mapColor)
|
||||
.tagBlock('minecraft:mineable/pickaxe')
|
||||
.requiresTool(true)
|
||||
|
||||
event.create(`tfg:komatiite_support`, 'tfc:support')
|
||||
.textureAll('ad_astra:block/mercury_stone')
|
||||
.horizontal(horizontal => {
|
||||
horizontal.textureAll('ad_astra:block/mercury_stone')
|
||||
horizontal.soundType(global.STONE_CHARACS.mercury.sound)
|
||||
horizontal.hardness(5)
|
||||
horizontal.resistance(8)
|
||||
horizontal.mapColor(global.STONE_CHARACS.mercury.mapColor)
|
||||
horizontal.tagBlock('minecraft:mineable/pickaxe')
|
||||
horizontal.requiresTool(true)
|
||||
})
|
||||
.soundType(global.STONE_CHARACS.mercury.sound)
|
||||
.hardness(5)
|
||||
.resistance(8)
|
||||
.mapColor(global.STONE_CHARACS.mercury.mapColor)
|
||||
.tagBlock('minecraft:mineable/pickaxe')
|
||||
.requiresTool(true)
|
||||
|
||||
event.create(`tfg:phonolite_support`, 'tfc:support')
|
||||
.textureAll('ad_astra:block/glacio_stone')
|
||||
.horizontal(horizontal => {
|
||||
horizontal.textureAll('ad_astra:block/glacio_stone')
|
||||
horizontal.soundType(global.STONE_CHARACS.glacio.sound)
|
||||
horizontal.hardness(5)
|
||||
horizontal.resistance(8)
|
||||
horizontal.mapColor(global.STONE_CHARACS.glacio.mapColor)
|
||||
horizontal.tagBlock('minecraft:mineable/pickaxe')
|
||||
horizontal.requiresTool(true)
|
||||
})
|
||||
.soundType(global.STONE_CHARACS.glacio.sound)
|
||||
.hardness(5)
|
||||
.resistance(8)
|
||||
.mapColor(global.STONE_CHARACS.glacio.mapColor)
|
||||
.tagBlock('minecraft:mineable/pickaxe')
|
||||
.requiresTool(true)
|
||||
|
||||
event.create(`tfg:permafrost_support`, 'tfc:support')
|
||||
.textureAll('ad_astra:block/permafrost')
|
||||
.horizontal(horizontal => {
|
||||
horizontal.textureAll('ad_astra:block/permafrost')
|
||||
horizontal.soundType(global.STONE_CHARACS.permafrost.sound)
|
||||
horizontal.hardness(5)
|
||||
horizontal.resistance(8)
|
||||
horizontal.mapColor(global.STONE_CHARACS.permafrost.mapColor)
|
||||
horizontal.tagBlock('minecraft:mineable/pickaxe')
|
||||
horizontal.requiresTool(true)
|
||||
})
|
||||
.soundType(global.STONE_CHARACS.permafrost.sound)
|
||||
.hardness(5)
|
||||
.resistance(8)
|
||||
.mapColor(global.STONE_CHARACS.permafrost.mapColor)
|
||||
.tagBlock('minecraft:mineable/pickaxe')
|
||||
.requiresTool(true)
|
||||
|
||||
event.create(`tfg:red_granite_support`, 'tfc:support')
|
||||
.textureAll('gtceu:block/stones/red_granite/stone')
|
||||
.horizontal(horizontal => {
|
||||
horizontal.textureAll('gtceu:block/stones/red_granite/stone')
|
||||
horizontal.soundType(global.STONE_CHARACS.red_granite.sound)
|
||||
horizontal.hardness(5)
|
||||
horizontal.resistance(8)
|
||||
horizontal.mapColor(global.STONE_CHARACS.red_granite.mapColor)
|
||||
horizontal.tagBlock('minecraft:mineable/pickaxe')
|
||||
horizontal.requiresTool(true)
|
||||
})
|
||||
.soundType(global.STONE_CHARACS.red_granite.sound)
|
||||
.hardness(5)
|
||||
.resistance(8)
|
||||
.mapColor(global.STONE_CHARACS.red_granite.mapColor)
|
||||
.tagBlock('minecraft:mineable/pickaxe')
|
||||
.requiresTool(true)
|
||||
|
||||
event.create(`tfg:stone_support`, 'tfc:support')
|
||||
.textureAll('minecraft:block/stone')
|
||||
.horizontal(horizontal => {
|
||||
horizontal.textureAll('minecraft:block/stone')
|
||||
horizontal.soundType(global.STONE_CHARACS.reconstituted.sound)
|
||||
horizontal.hardness(5)
|
||||
horizontal.resistance(8)
|
||||
horizontal.mapColor(global.STONE_CHARACS.reconstituted.mapColor)
|
||||
horizontal.tagBlock('minecraft:mineable/pickaxe')
|
||||
horizontal.requiresTool(true)
|
||||
})
|
||||
.soundType(global.STONE_CHARACS.reconstituted.sound)
|
||||
.hardness(5)
|
||||
.resistance(8)
|
||||
.mapColor(global.STONE_CHARACS.reconstituted.mapColor)
|
||||
.tagBlock('minecraft:mineable/pickaxe')
|
||||
.requiresTool(true)
|
||||
|
||||
// Concrete
|
||||
event.create('tfg:light_concrete_support', 'tfc:support')
|
||||
.textureAll('gtceu:block/stones/light_concrete/stone')
|
||||
.horizontal(horizontal => {
|
||||
horizontal.textureAll('gtceu:block/stones/light_concrete/stone')
|
||||
horizontal.soundType(global.STONE_CHARACS.light_concrete.sound)
|
||||
horizontal.hardness(5)
|
||||
horizontal.resistance(16)
|
||||
horizontal.mapColor(global.STONE_CHARACS.light_concrete.mapColor)
|
||||
horizontal.tagBlock('minecraft:mineable/pickaxe')
|
||||
horizontal.requiresTool(true)
|
||||
})
|
||||
.soundType(global.STONE_CHARACS.light_concrete.sound)
|
||||
.hardness(5)
|
||||
.resistance(16)
|
||||
.mapColor(global.STONE_CHARACS.light_concrete.mapColor)
|
||||
.tagBlock('minecraft:mineable/pickaxe')
|
||||
.requiresTool(true)
|
||||
|
||||
event.create('tfg:reinforced_light_concrete_support', 'tfc:support')
|
||||
.textureAll('gtceu:block/stones/light_concrete/stone')
|
||||
.horizontal(horizontal => {
|
||||
horizontal.textureAll('gtceu:block/stones/light_concrete/stone')
|
||||
horizontal.soundType(global.STONE_CHARACS.light_concrete.sound)
|
||||
horizontal.hardness(5)
|
||||
horizontal.resistance(64)
|
||||
horizontal.mapColor(global.STONE_CHARACS.light_concrete.mapColor)
|
||||
horizontal.tagBlock('minecraft:mineable/pickaxe')
|
||||
horizontal.requiresTool(true)
|
||||
})
|
||||
.soundType(global.STONE_CHARACS.light_concrete.sound)
|
||||
.hardness(5)
|
||||
.resistance(64)
|
||||
.mapColor(global.STONE_CHARACS.light_concrete.mapColor)
|
||||
.tagBlock('minecraft:mineable/pickaxe')
|
||||
.requiresTool(true)
|
||||
|
||||
event.create('tfg:dark_concrete_support', 'tfc:support')
|
||||
.textureAll('gtceu:block/stones/dark_concrete/stone')
|
||||
.horizontal(horizontal => {
|
||||
horizontal.textureAll('gtceu:block/stones/dark_concrete/stone')
|
||||
horizontal.soundType(global.STONE_CHARACS.dark_concrete.sound)
|
||||
horizontal.hardness(5)
|
||||
horizontal.resistance(16)
|
||||
horizontal.mapColor(global.STONE_CHARACS.dark_concrete.mapColor)
|
||||
horizontal.tagBlock('minecraft:mineable/pickaxe')
|
||||
horizontal.requiresTool(true)
|
||||
})
|
||||
.soundType(global.STONE_CHARACS.dark_concrete.sound)
|
||||
.hardness(5)
|
||||
.resistance(16)
|
||||
.mapColor(global.STONE_CHARACS.dark_concrete.mapColor)
|
||||
.tagBlock('minecraft:mineable/pickaxe')
|
||||
.requiresTool(true)
|
||||
|
||||
event.create('tfg:reinforced_dark_concrete_support', 'tfc:support')
|
||||
.textureAll('gtceu:block/stones/dark_concrete/stone')
|
||||
.horizontal(horizontal => {
|
||||
horizontal.textureAll('gtceu:block/stones/dark_concrete/stone')
|
||||
horizontal.soundType(global.STONE_CHARACS.dark_concrete.sound)
|
||||
horizontal.hardness(5)
|
||||
horizontal.resistance(64)
|
||||
horizontal.mapColor(global.STONE_CHARACS.dark_concrete.mapColor)
|
||||
horizontal.tagBlock('minecraft:mineable/pickaxe')
|
||||
horizontal.requiresTool(true)
|
||||
})
|
||||
.soundType(global.STONE_CHARACS.dark_concrete.sound)
|
||||
.hardness(5)
|
||||
.resistance(64)
|
||||
.mapColor(global.STONE_CHARACS.dark_concrete.mapColor)
|
||||
.tagBlock('minecraft:mineable/pickaxe')
|
||||
.requiresTool(true)
|
||||
|
||||
// Metal
|
||||
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)
|
||||
}
|
||||
77
kubejs/startup_scripts/tfg/primitive/blocks.vases.js
Normal file
77
kubejs/startup_scripts/tfg/primitive/blocks.vases.js
Normal file
|
|
@ -0,0 +1,77 @@
|
|||
"use strict";
|
||||
|
||||
function registerTFGVaseBlocks(event) {
|
||||
|
||||
global.MINECRAFT_DYE_NAMES.forEach(color => {
|
||||
event.create(`tfg:decorative_vase/generated/${color}`, 'cardinal')
|
||||
.model(`tfg:block/decorative_vase/loot_vase_${color}`)
|
||||
.soundType('decorated_pot')
|
||||
.hardness(0.7)
|
||||
.tagBlock('minecraft:mineable/pickaxe')
|
||||
.mapColor(`color_${color}`)
|
||||
.box(2, 0, 2, 14, 20, 14)
|
||||
.fullBlock(false)
|
||||
.opaque(false)
|
||||
.renderType('cutout')
|
||||
|
||||
event.create(`tfg:decorative_vase/${color}`, 'cardinal')
|
||||
.model(`tfg:block/decorative_vase/vase_${color}`)
|
||||
.soundType('decorated_pot')
|
||||
.hardness(0.7)
|
||||
.tagBlock('minecraft:mineable/pickaxe')
|
||||
.mapColor(`color_${color}`)
|
||||
.box(2, 0, 2, 14, 20, 14)
|
||||
.fullBlock(false)
|
||||
.opaque(false)
|
||||
.renderType('cutout')
|
||||
.blockEntity(be => {
|
||||
be.attach('tfc:inventory', {
|
||||
width: 9,
|
||||
height: 1,
|
||||
size: size => size.isSmallerThan('large')
|
||||
})
|
||||
be.rightClickOpensInventory()
|
||||
})
|
||||
|
||||
event.create(`tfg:decorative_vase/unfired/${color}`, 'cardinal')
|
||||
.model(`tfg:block/decorative_vase/vase_unfired_${color}`)
|
||||
.soundType('decorated_pot')
|
||||
.hardness(0.7)
|
||||
.tagBlock('minecraft:mineable/pickaxe')
|
||||
.mapColor(`color_${color}`)
|
||||
.box(2, 0, 2, 14, 20, 14)
|
||||
.fullBlock(false)
|
||||
.opaque(false)
|
||||
.renderType('cutout')
|
||||
})
|
||||
event.create('tfg:decorative_vase', 'cardinal')
|
||||
.model('tfg:block/decorative_vase/vase')
|
||||
.soundType('decorated_pot')
|
||||
.hardness(0.7)
|
||||
.tagBlock('minecraft:mineable/pickaxe')
|
||||
.mapColor(`color_gray`)
|
||||
.box(2, 0, 2, 14, 20, 14)
|
||||
.fullBlock(false)
|
||||
.opaque(false)
|
||||
.renderType('cutout')
|
||||
.blockEntity(be => {
|
||||
be.attach('tfc:inventory', {
|
||||
width: 9,
|
||||
height: 1,
|
||||
size: size => size.isSmallerThan('large')
|
||||
})
|
||||
be.rightClickOpensInventory()
|
||||
})
|
||||
|
||||
event.create('tfg:decorative_vase/unfired', 'cardinal')
|
||||
.model('tfg:block/decorative_vase/vase_unfired')
|
||||
.soundType('decorated_pot')
|
||||
.hardness(0.7)
|
||||
.tagBlock('minecraft:mineable/pickaxe')
|
||||
.mapColor(`color_gray`)
|
||||
.box(2, 0, 2, 14, 20, 14)
|
||||
.fullBlock(false)
|
||||
.opaque(false)
|
||||
.renderType('cutout')
|
||||
|
||||
}
|
||||
139
kubejs/startup_scripts/tfg/primitive/items.primitive.js
Normal file
139
kubejs/startup_scripts/tfg/primitive/items.primitive.js
Normal file
|
|
@ -0,0 +1,139 @@
|
|||
"use strict";
|
||||
|
||||
function registerTFGPrimitiveItems(event) {
|
||||
|
||||
// Paper making
|
||||
event.create('tfg:hardwood_strip')
|
||||
event.create('tfg:soaked_hardwood_strip')
|
||||
event.create('tfg:soaked_unrefined_paper')
|
||||
|
||||
// Chalk
|
||||
event.create('tfg:unfired_chalk')
|
||||
|
||||
Color.DYE.forEach((dyeName, dye) => {
|
||||
event.create(`tfg:wet_${dyeName}_chalk`)
|
||||
.textureJson({
|
||||
layer0: 'tfg:item/unfired_chalk'
|
||||
})
|
||||
.color(0, dye.getHexJS());
|
||||
});
|
||||
|
||||
// Primitive rubber gloves
|
||||
event.create('tfg:prepared_leather_gloves')
|
||||
event.create('tfg:latex_soaked_gloves')
|
||||
|
||||
// Chipboard
|
||||
event.create('tfg:chipboard_composite')
|
||||
event.create('tfg:treated_chipboard_composite')
|
||||
event.create('tfg:high_density_treated_fiberboard')
|
||||
|
||||
// Wax
|
||||
event.create('tfg:paraffin_wax')
|
||||
event.create('tfg:conifer_rosin')
|
||||
|
||||
// Tools
|
||||
event.create('tfg:flint_club_head')
|
||||
|
||||
event.create('tfg:flint_arrow_head')
|
||||
event.create('tfg:fletching')
|
||||
|
||||
event.create('tfg:armor_stand_arms')
|
||||
|
||||
event.create('tfg:harvest_basket')
|
||||
.parentModel('tfg:item/harvest_basket')
|
||||
.maxDamage(128)
|
||||
|
||||
event.create('tfg:aluminium_harvest_basket')
|
||||
.parentModel('tfg:item/aluminium_harvest_basket')
|
||||
.unstackable()
|
||||
|
||||
// Carts
|
||||
event.create('tfg:cobalt_brass_wheel')
|
||||
|
||||
// Fishing Nets
|
||||
event.create('tfg:fishing_net/wood')
|
||||
.translationKey('item.tfg.fishing_net.wood')
|
||||
.parentModel('tfg:item/fishing_nets/wood_fishing_net')
|
||||
.texture('tfg:item/fishing_nets/wood_fishing_net')
|
||||
.maxDamage(112)
|
||||
|
||||
event.create('tfg:fishing_net/brass')
|
||||
.translationKey('item.tfg.fishing_net.brass')
|
||||
.parentModel('tfg:item/fishing_nets/brass_fishing_net')
|
||||
.texture('tfg:item/fishing_nets/brass_fishing_net')
|
||||
.maxDamage(326)
|
||||
|
||||
event.create('tfg:fishing_net/rose_gold')
|
||||
.translationKey('item.tfg.fishing_net.rose_gold')
|
||||
.parentModel('tfg:item/fishing_nets/rose_gold_fishing_net')
|
||||
.texture('tfg:item/fishing_nets/rose_gold_fishing_net')
|
||||
.maxDamage(380)
|
||||
|
||||
event.create('tfg:fishing_net/sterling_silver')
|
||||
.translationKey('item.tfg.fishing_net.sterling_silver')
|
||||
.parentModel('tfg:item/fishing_nets/sterling_silver_fishing_net')
|
||||
.texture('tfg:item/fishing_nets/sterling_silver_fishing_net')
|
||||
.maxDamage(380)
|
||||
|
||||
event.create('tfg:fishing_net/invar')
|
||||
.translationKey('item.tfg.fishing_net.invar')
|
||||
.parentModel('tfg:item/fishing_nets/invar_fishing_net')
|
||||
.texture('tfg:item/fishing_nets/invar_fishing_net')
|
||||
.maxDamage(740)
|
||||
|
||||
event.create('tfg:fishing_net/tin_alloy')
|
||||
.translationKey('item.tfg.fishing_net.tin_alloy')
|
||||
.parentModel('tfg:item/fishing_nets/tin_alloy_fishing_net')
|
||||
.texture('tfg:item/fishing_nets/tin_alloy_fishing_net')
|
||||
.maxDamage(710)
|
||||
|
||||
event.create('tfg:fishing_net/cupronickel')
|
||||
.translationKey('item.tfg.fishing_net.cupronickel')
|
||||
.parentModel('tfg:item/fishing_nets/cupronickel_fishing_net')
|
||||
.texture('tfg:item/fishing_nets/cupronickel_fishing_net')
|
||||
.maxDamage(560)
|
||||
|
||||
event.create('tfg:fishing_net/magnalium')
|
||||
.translationKey('item.tfg.fishing_net.magnalium')
|
||||
.parentModel('tfg:item/fishing_nets/magnalium_fishing_net')
|
||||
.texture('tfg:item/fishing_nets/magnalium_fishing_net')
|
||||
.maxDamage(1830)
|
||||
|
||||
// Universal compost items
|
||||
event.create('tfg:universal_compost_browns')
|
||||
.tag('tfc:compost_browns_low')
|
||||
|
||||
event.create('tfg:universal_compost_greens')
|
||||
.tag('tfc:compost_greens_low')
|
||||
|
||||
// Etched Diamond Etching Tip
|
||||
event.create('tfg:etching_diamond_tip')
|
||||
|
||||
// Cloth & String
|
||||
event.create('tfg:polycaprolactam_fabric')
|
||||
event.create('tfg:polycaprolactam_string')
|
||||
event.create('tfg:phantom_silk')
|
||||
event.create('tfg:phantom_thread')
|
||||
|
||||
// Flax Stuff
|
||||
event.create('tfg:flax_waste')
|
||||
.tag('tfc:scrapable')
|
||||
event.create('tfg:flax_tow')
|
||||
.tag('tfg:burlap_fiber')
|
||||
.tag('tfc:compost_browns')
|
||||
event.create('tfg:flax_line')
|
||||
.tag('tfc:compost_browns_low')
|
||||
event.create('tfg:linen_thread')
|
||||
.tag('forge:string')
|
||||
event.create('tfg:linen_cloth')
|
||||
.tag('forge:cloth')
|
||||
.tag('tfc:sewing_light_cloth')
|
||||
|
||||
event.create('tfg:flax_bundle')
|
||||
.tag('tfc:scrapable')
|
||||
.texture('tfg:item/flax_bundle')
|
||||
|
||||
event.create('tfg:bundled_scraped_flax')
|
||||
.tag('tfc:scrapable')
|
||||
.texture('tfg:item/bundled_scraped_flax')
|
||||
}
|
||||
91
kubejs/startup_scripts/tfg/primitive/materials.primitive.js
Normal file
91
kubejs/startup_scripts/tfg/primitive/materials.primitive.js
Normal file
|
|
@ -0,0 +1,91 @@
|
|||
"use strict";
|
||||
|
||||
function registerTFGPrimitiveMaterials(event) {
|
||||
|
||||
// Paper
|
||||
event.create('hardwood')
|
||||
.dust()
|
||||
.flags(GTMaterialFlags.FLAMMABLE)
|
||||
.iconSet(GTMaterialIconSet.WOOD)
|
||||
.color('0x7a5225')
|
||||
.secondaryColor('0x7a5225')
|
||||
|
||||
event.create('thermochemically_treated_hardwood')
|
||||
.dust()
|
||||
.flags(GTMaterialFlags.FLAMMABLE)
|
||||
.iconSet(GTMaterialIconSet.WOOD)
|
||||
.color('0x52482c')
|
||||
.secondaryColor('0x52482c')
|
||||
|
||||
// Tree tapping
|
||||
event.create('tfg:latex')
|
||||
.liquid()
|
||||
.color(0xFBB982)
|
||||
|
||||
event.create('tfg:vulcanized_latex')
|
||||
.liquid()
|
||||
.color(0xc79973)
|
||||
|
||||
event.create('tfg:conifer_pitch')
|
||||
.liquid()
|
||||
.color(0xfbdf82)
|
||||
.secondaryColor(0xff9d2e)
|
||||
|
||||
// Food/Cooking
|
||||
event.create('lactose')
|
||||
.dust()
|
||||
.iconSet(GTMaterialIconSet.FINE)
|
||||
.color('0xede8da')
|
||||
.secondaryColor('0xeddcad')
|
||||
.components('12x carbon', '22x hydrogen', '11x oxygen')
|
||||
|
||||
event.create('tfg:sodium_dihydrogen_citrate')
|
||||
.dust()
|
||||
.flags(GTMaterialFlags.DISABLE_DECOMPOSITION)
|
||||
.iconSet(GTMaterialIconSet.BRIGHT)
|
||||
.components('6x carbon', '7x hydrogen', '1x sodium', '7x oxygen')
|
||||
.color('0xE38818')
|
||||
|
||||
event.create('tfg:citric_acid')
|
||||
.dust()
|
||||
.flags(GTMaterialFlags.DISABLE_DECOMPOSITION)
|
||||
.iconSet(GTMaterialIconSet.SHINY)
|
||||
.components('6x carbon', '8x hydrogen', '7x oxygen')
|
||||
.color('0xE3AD18')
|
||||
|
||||
// I decided to make these materials because why not?
|
||||
event.create('tfg:rich_stock')
|
||||
.liquid(new GTFluidBuilder().customStill().state(GTFluidState.LIQUID).temperature(360));
|
||||
|
||||
event.create('tfg:light_stock')
|
||||
.liquid(new GTFluidBuilder().customStill().state(GTFluidState.LIQUID).temperature(360));
|
||||
|
||||
event.create('tfg:brown_gravy')
|
||||
.liquid(new GTFluidBuilder().customStill().state(GTFluidState.LIQUID).temperature(360));
|
||||
|
||||
// Ores -- these need to be in the gtceu namespace for the ore tool to work
|
||||
event.create('tarkianite')
|
||||
.ore()
|
||||
.components('1x copper', '1x iron', '4x rhenium', '4x molybdenum', '8x sulfur')
|
||||
.color(0x8bb054)
|
||||
.secondaryColor(0x3d8021)
|
||||
.iconSet(GTMaterialIconSet.getByName('tfc_emerald'))
|
||||
.addOreByproducts('sulfur', 'rhenium', 'molybdenum')
|
||||
|
||||
// Metals/minerals
|
||||
event.create('aluminium_silicate')
|
||||
.dust()
|
||||
.ingot()
|
||||
.liquid(new GTFluidBuilder().state(GTFluidState.LIQUID).temperature(1520))
|
||||
.components('2x aluminium', '1x silicon', '5x oxygen')
|
||||
.iconSet('metallic')
|
||||
.color(0xB6D3FF)
|
||||
.secondaryColor(0x6F4AB3)
|
||||
|
||||
event.create('tfg:kaolinite')
|
||||
.dust()
|
||||
.components('2x aluminium', '2x silicon', '9x oxygen', '4x hydrogen')
|
||||
.color(0xEEB9AD)
|
||||
.secondaryColor(0xF6A797)
|
||||
.formula("Al2Si2O5(OH)4")
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue