Refactor & update to gt7
* gt7 removed credits/coins * port gregtech additions to java * add eslint locally * add style linting * switch target ECMA standard * run linter * clean up a bunch of linter errors * remove outdated greate API calls * forgot about the TFC multi compat issue * reverted greate recipe removals * some more linting stuff * fix some issues with greenhouse recipes * fix up some material stuff * fix recipe types * - Fixed single block machine rendering (#1465) * minor fixes and changes --------- Signed-off-by: Pyritie <pyritie@gmail.com> Co-authored-by: Pyritie <pyritie@gmail.com> Co-authored-by: Redeix <59435925+Redeix@users.noreply.github.com>
This commit is contained in:
parent
d0af2cd96f
commit
f3dfa471ec
249 changed files with 2359 additions and 792 deletions
|
|
@ -168,19 +168,14 @@ const registerGTCEULoots = (event) => {
|
|||
|
||||
// I LOVE LOOTJS I LOVE LOOTJS I LOVE LOOTJS
|
||||
let rawOreBlock = `:${ChemicalHelper.get(TagPrefix.rawOreBlock, material, 1).getItem()}`;
|
||||
if (material == GTMaterials.Copper || material == GTMaterials.Gold || material == GTMaterials.Iron)
|
||||
{
|
||||
rawOreBlock = "minecraft" + rawOreBlock;
|
||||
}
|
||||
else if (material == TFGHelpers.getMaterial('desh')
|
||||
|| material == TFGHelpers.getMaterial('ostrum')
|
||||
|| material == TFGHelpers.getMaterial('calorite'))
|
||||
{
|
||||
rawOreBlock = "ad_astra" + rawOreBlock;
|
||||
}
|
||||
else
|
||||
{
|
||||
rawOreBlock = "gtceu" + rawOreBlock;
|
||||
if (material === GTMaterials.Copper || material === GTMaterials.Gold || material === GTMaterials.Iron) {
|
||||
rawOreBlock = `minecraft${ rawOreBlock}`;
|
||||
} else if (material === TFGHelpers.getMaterial('desh')
|
||||
|| material === TFGHelpers.getMaterial('ostrum')
|
||||
|| material === TFGHelpers.getMaterial('calorite')) {
|
||||
rawOreBlock = `ad_astra${ rawOreBlock}`;
|
||||
} else {
|
||||
rawOreBlock = `gtceu${ rawOreBlock}`;
|
||||
}
|
||||
|
||||
event.addBlockLootModifier(rawOreBlock)
|
||||
|
|
@ -198,10 +193,10 @@ const registerGTCEULoots = (event) => {
|
|||
let stoneTypeMaterial = TFGHelpers.getMaterial(stoneType)
|
||||
|
||||
// Material doesn't work here because of reasons
|
||||
if (stoneTypeMaterial == null) {
|
||||
if (stoneType == "pyroxenite")
|
||||
if (stoneTypeMaterial === null) {
|
||||
if (stoneType === "pyroxenite")
|
||||
stoneTypeMaterial = GTMaterials.Blackstone;
|
||||
else if (stoneType == "deepslate")
|
||||
else if (stoneType === "deepslate")
|
||||
stoneTypeMaterial = GTMaterials.Deepslate;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue