9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2025-12-27 02:49:15 +00:00

refactor items

This commit is contained in:
XiaoMoMi
2025-04-04 05:18:50 +08:00
parent 83af689268
commit f8fd3f7743
11 changed files with 196 additions and 133 deletions

View File

@@ -38,11 +38,11 @@ argument.parse.failure.aggregate.missing: "<red>Missing component '<arg:0>'</red
argument.parse.failure.aggregate.failure: "<red>Invalid component '<arg:0>': <arg:1></red>"
argument.parse.failure.either: "<red>Could not resolve <arg:1> or <arg:2> from '<arg:0>'</red>"
argument.parse.failure.namedtextcolor: "<red>'<arg:0>' is not a named text color</red>"
command.reload.config.success: "<white>Configs reloaded in <green><arg:0></green> ms.</white>"
command.reload.config.success: "<white>Configs reloaded in <green><arg:0></green> ms.</white> <gray>(Async: <arg:1>ms | Sync: <arg:2>ms)</gray>"
command.reload.config.failure: "<red>Config reload failed. Check console logs.</red>"
command.reload.pack.success: "<white>Resource pack reloaded in <green><arg:0></green> ms.</white>"
command.reload.pack.failure: "<red>Resource pack reload failed. Check console logs.</red>"
command.reload.all.success: "<white>Reload completed in <green><arg:0></green> ms.</white>"
command.reload.all.success: "<white>Reload completed in <green><arg:0></green> ms.</white> <gray>(Async: <arg:1>ms | Sync: <arg:2>ms | Pack: <arg:3>ms)</gray>"
command.reload.all.failure: "<red>Reload failed. Check console logs.</red>"
command.item.get.success: "<white>Got <arg:0> <arg:1></white>"
command.item.get.failure.not_exist: "<red><lang:argument.item.id.invalid:'<arg:0>'></red>"
@@ -54,6 +54,7 @@ command.search_usage.not_found: "<red>No usage found for this item</red>"
command.search_recipe.no_item: "<red>Please hold an item before running this command</red>"
command.search_usage.no_item: "<red>Please hold an item before running this command</red>"
command.totem.not_totem: "<red>'<arg:0>' is not type of totem_of_undying</red>"
warning.config.image.duplicated: "<yellow>Issue found in file <arg:0> - Duplicated image '<arg:1>'.</yellow>"
warning.config.image.lack_height: "<yellow>Issue found in file <arg:0> - The image '<arg:1>' is missing the required 'height' argument.</yellow>"
warning.config.image.height_smaller_than_ascent: "<yellow>Issue found in file <arg:0> - The image '<arg:1>' violates the bitmap image rule: 'height' should be no lower than 'ascent'.</yellow>"
warning.config.image.no_file: "<yellow>Issue found in file <arg:0> - The image '<arg:1>' is missing the required 'file' argument.</yellow>"
@@ -78,4 +79,13 @@ warning.config.item.lack_material: "<yellow>Issue found in file <arg:0> - The it
warning.config.item.invalid_material: "<yellow>Issue found in file <arg:0> - The item '<arg:1>' is using an invalid material type '<arg:2>'.</yellow>"
warning.config.item.bad_custom_model_data_value: "<yellow>Issue found in file <arg:0> - The item '<arg:1>' is using a custom model data [<arg:2>] that is too large. It's recommended to use a value lower than 16,777,216.</yellow>"
warning.config.item.custom_model_data_conflict: "<yellow>Issue found in file <arg:0> - The item '<arg:1>' is using a custom model data [<arg:2>] that has been occupied by item '<arg:3>'</yellow>"
warning.config.item.lack_model_id: "<yellow>Issue found in file <arg:0> - The item '<arg:1>' is missing the required 'custom-model-data' or 'item-model' argument.</yellow>"
warning.config.item.lack_model_id: "<yellow>Issue found in file <arg:0> - The item '<arg:1>' is missing the required 'custom-model-data' or 'item-model' argument.</yellow>"
warning.config.block.duplicated: "<yellow>Issue found in file <arg:0> - Duplicated block '<arg:1>'.</yellow>"
warning.config.block.lack_state: "<yellow>Issue found in file <arg:0> - The block '<arg:1>' is missing the required 'state' argument.</yellow>"
warning.config.block.lack_real_id: "<yellow>Issue found in file <arg:0> - The block '<arg:1>' is missing the required 'id' argument for 'state'.</yellow>"
warning.config.block.state.lack_state: "<yellow>Issue found in file <arg:0> - The block '<arg:1>' is missing the required 'state' argument for 'state'.</yellow>"
warning.config.block.state.lack_properties: "<yellow>Issue found in file <arg:0> - The block '<arg:1>' is missing the required 'properties' section for 'states'.</yellow>"
warning.config.block.state.lack_appearances: "<yellow>Issue found in file <arg:0> - The block '<arg:1>' is missing the required 'appearances' section for 'states'.</yellow>"
warning.config.block.state.lack_variants: "<yellow>Issue found in file <arg:0> - The block '<arg:1>' is missing the required 'variants' section for 'states'.</yellow>"
warning.config.block.state.variant.lack_appearance: "<yellow>Issue found in file <arg:0> - The block '<arg:1>' is missing the required 'appearance' argument for variant '<arg:2>'.</yellow>"
warning.config.block.state.variant.invalid_appearance: "<yellow>Issue found in file <arg:0> - The block '<arg:1>' has an error that the variant '<arg:2>' is using a non-existing appearance '<arg:3>'.</yellow>"

View File

@@ -38,11 +38,11 @@ argument.parse.failure.aggregate.missing: "<red>Componente Faltante '<arg:0>'</r
argument.parse.failure.aggregate.failure: "<red>Componente Invalido '<arg:0>': <arg:1></red>"
argument.parse.failure.either: "<red>No se ha podido resolver <arg:1> o <arg:2> de '<arg:0>'</red>"
argument.parse.failure.namedtextcolor: "<red>'<arg:0>' no es un color de texto con nombre</red>"
command.reload.config.success: "<white>Recargado. Tomó <green><arg:0></green> ms.</white>"
command.reload.config.success: "<white>Recargado. Tomó <green><arg:0></green> ms.</white> <gray>(Async: <arg:1>ms | Sync: <arg:2>ms)</gray>"
command.reload.config.failure: "<red>Error al recargar la configuración. Por favor, revisa el registro de la consola.</red>"
command.reload.pack.success: "<white>Paquete de recursos recargado. Tomó <green><arg:0></green> ms.</white>"
command.reload.pack.failure: "<red>Error al recargar el paquete de recursos. Por favor, revisa el registro de la consola.</red>"
command.reload.all.success: "<white>Todo recargado. Tomó <green><arg:0></green> ms.</white>"
command.reload.all.success: "<white>Todo recargado. Tomó <green><arg:0></green> ms.</white> <gray>(Async: <arg:1>ms | Sync: <arg:2>ms | Pack: <arg:3>ms)</gray>"
command.reload.all.failure: "<red>Error al recargar. Por favor, revisa el registro de la consola.</red>"
command.item.get.success: "<white>Obtener <arg:0> <arg:1></white>"
command.item.get.failure.not_exist: "<red><lang:argument.item.id.invalid:'<arg:0>'></red>"

View File

@@ -38,11 +38,11 @@ argument.parse.failure.aggregate.missing: "<red>缺少组件 '<arg:0>'</red>"
argument.parse.failure.aggregate.failure: "<red>无效的组件 '<arg:0>': <arg:1></red>"
argument.parse.failure.either: "<red>无法从 '<arg:0>' 解析 <arg:1> 或 <arg:2></red>"
argument.parse.failure.namedtextcolor: "<red>'<arg:0>' 不是颜色代码</red>"
command.reload.config.success: "<white>重新加载配置完成. 耗时 <green><arg:0></green> 毫秒</white>"
command.reload.config.success: "<white>重新加载配置完成. 耗时 <green><arg:0></green> 毫秒</white> <gray>(异步: <arg:1>ms | 同步: <arg:2>ms)</gray>"
command.reload.config.failure: "<red>重新加载配置失败,请检查控制台日志。</red>"
command.reload.pack.success: "<white>资源包重新加载完成. 耗时 <green><arg:0></green> 毫秒</white>"
command.reload.pack.failure: "<red>重新加载资源包失败,请检查控制台日志。</red>"
command.reload.all.success: "<white>全部重新加载完成. 耗时 <green><arg:0></green> 毫秒</white>"
command.reload.all.success: "<white>全部重新加载完成. 耗时 <green><arg:0></green> 毫秒</white> <gray>(异步: <arg:1>ms | 同步: <arg:2>ms | 资源包: <arg:3>ms)</gray>"
command.reload.all.failure: "<red>重新加载失败,请检查控制台日志。</red>"
command.item.get.success: "<white>获得<arg:0>个<arg:1></white>"
command.item.get.failure.not_exist: "<red><lang:argument.item.id.invalid:'<arg:0>'></red>"

View File

@@ -38,11 +38,11 @@ argument.parse.failure.aggregate.missing: "<red>缺少元件 '<arg:0>'</red>"
argument.parse.failure.aggregate.failure: "<red>無效的元件 '<arg:0>': <arg:1></red>"
argument.parse.failure.either: "<red>無法從 '<arg:0>' 解析 <arg:1> 或 <arg:2></red>"
argument.parse.failure.namedtextcolor: "<red>'<arg:0>' 不是顏色代碼</red>"
command.reload.config.success: "<white>重新加載配置完成. 耗時 <green><arg:0></green> 毫秒</white>"
command.reload.config.success: "<white>重新加載配置完成. 耗時 <green><arg:0></green> 毫秒</white> <gray>(非同步: <arg:1>ms | 同步: <arg:2>ms)</gray>"
command.reload.config.failure: "<red>重新加載配置失敗,請檢查控制台日誌。</red>"
command.reload.pack.success: "<white>資源包重新加載完成. 耗時 <green><arg:0></green> 毫秒</white>"
command.reload.pack.failure: "<red>重新加載資源包失敗,請檢查控制台日誌。</red>"
command.reload.all.success: "<white>全部重新加載完成. 耗時 <green><arg:0></green> 毫秒</white>"
command.reload.all.success: "<white>全部重新加載完成. 耗時 <green><arg:0></green> 毫秒</white> <gray>(非同步: <arg:1>ms | 同步: <arg:2>ms | 資源包: <arg:3>ms)</gray>"
command.reload.all.failure: "<red>重新加載失敗,請檢查控制台日誌。</red>"
command.item.get.success: "<white>獲得<arg:0>個<arg:1></white>"
command.item.get.failure.not_exist: "<red><lang:argument.item.id.invalid:'<arg:0>'></red>"