Фикс бага с тэгами инструментов после тфк 3.2.1
This commit is contained in:
parent
312c91e4f1
commit
d863d6daf8
2 changed files with 26 additions and 23 deletions
|
|
@ -22,4 +22,16 @@ global.GTCEU_ANVIL_TOOL_TYPES = [
|
|||
GTToolType.KNIFE,
|
||||
GTToolType.BUTCHERY_KNIFE,
|
||||
// GTToolType.PLUNGER
|
||||
];
|
||||
];
|
||||
|
||||
global.GTCEU_TOOLTYPES_WHICH_HAS_TFC_DUPS = {
|
||||
"tfc:swords" : GTToolType.SWORD,
|
||||
"tfc:pickaxes" : GTToolType.PICKAXE,
|
||||
"tfc:axes" : GTToolType.AXE,
|
||||
"tfc:shovels" : GTToolType.SHOVEL,
|
||||
"tfc:hoes" : GTToolType.HOE,
|
||||
"tfc:hammers" : GTToolType.MINING_HAMMER,
|
||||
"tfc:knives" : GTToolType.KNIFE,
|
||||
"tfc:saws" : GTToolType.SAW,
|
||||
"tfc:scythes" : GTToolType.SCYTHE
|
||||
};
|
||||
|
|
@ -2,26 +2,17 @@
|
|||
|
||||
const registerTFCItemTags = (event) => {
|
||||
// Теги для соответствия инструментов TFC и GT
|
||||
event.add('tfc:swords', '#minecraft:swords')
|
||||
event.add('tfc:pickaxes', '#minecraft:pickaxes')
|
||||
event.add('tfc:axes', '#minecraft:axes')
|
||||
event.add('tfc:shovels', '#minecraft:shovels')
|
||||
event.add('tfc:hoes', '#minecraft:hoes')
|
||||
|
||||
event.add('tfc:hammers', '#forge:tools/hammers')
|
||||
event.add('tfc:knives', '#forge:tools/knives')
|
||||
event.add('tfc:saws', '#forge:tools/saws')
|
||||
event.add('tfc:scythes', '#forge:tools/scythes')
|
||||
|
||||
event.add('tfc:usable_on_tool_rack', '#tfc:axes')
|
||||
event.add('tfc:usable_on_tool_rack', '#tfc:hammers')
|
||||
event.add('tfc:usable_on_tool_rack', '#tfc:hoes')
|
||||
event.add('tfc:usable_on_tool_rack', '#tfc:knives')
|
||||
event.add('tfc:usable_on_tool_rack', '#tfc:pickaxes')
|
||||
event.add('tfc:usable_on_tool_rack', '#tfc:saws')
|
||||
event.add('tfc:usable_on_tool_rack', '#tfc:scythes')
|
||||
event.add('tfc:usable_on_tool_rack', '#tfc:shovels')
|
||||
event.add('tfc:usable_on_tool_rack', '#tfc:swords')
|
||||
GTMaterialRegistry.getRegisteredMaterials().forEach(material => {
|
||||
if (material.hasProperty(PropertyKey.TOOL)) {
|
||||
for (let [key, value] of Object.entries(global.GTCEU_TOOLTYPES_WHICH_HAS_TFC_DUPS)) {
|
||||
var tool = $ToolHelper.get(value, material)
|
||||
if (!tool.isEmpty()) event.add(key, tool.getId())
|
||||
|
||||
event.add('tfc:usable_on_tool_rack', `#${key}`)
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
event.add('tfc:usable_on_tool_rack', '#forge:tools/mining_hammers')
|
||||
event.add('tfc:usable_on_tool_rack', '#forge:tools/wrenches')
|
||||
|
|
@ -48,15 +39,15 @@ const registerTFCItemTags = (event) => {
|
|||
// Мечи
|
||||
event.add('tfc:mob_mainhand_weapons', 'gtceu:bismuth_bronze_sword')
|
||||
event.add('tfc:mob_mainhand_weapons', 'gtceu:bronze_sword')
|
||||
event.add('tfc:mob_mainhand_weapons', 'gtceu:bronze_bronze_sword')
|
||||
event.add('tfc:mob_mainhand_weapons', 'gtceu:black_bronze_sword')
|
||||
// Топоры
|
||||
event.add('tfc:mob_mainhand_weapons', 'gtceu:bismuth_bronze_axe')
|
||||
event.add('tfc:mob_mainhand_weapons', 'gtceu:bronze_axe')
|
||||
event.add('tfc:mob_mainhand_weapons', 'gtceu:bronze_bronze_axe')
|
||||
event.add('tfc:mob_mainhand_weapons', 'gtceu:black_bronze_axe')
|
||||
// Косы
|
||||
event.add('tfc:mob_mainhand_weapons', 'gtceu:bismuth_bronze_scythe')
|
||||
event.add('tfc:mob_mainhand_weapons', 'gtceu:bronze_scythe')
|
||||
event.add('tfc:mob_mainhand_weapons', 'gtceu:bronze_bronze_scythe')
|
||||
event.add('tfc:mob_mainhand_weapons', 'gtceu:black_bronze_scythe')
|
||||
|
||||
// Тэги для возможности использования разных углей в кузне
|
||||
event.add('tfc:forge_fuel', 'minecraft:coal')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue