refactor(localization): switch block translations to item naming

Remove the `name_key` field from block definitions and use item-based
localization keys (`item.*.name`) for inventory display. Item data now
stores the localized name at load time.
This commit is contained in:
2026-08-05 15:42:53 +08:00
parent 277aab1b81
commit 322fb2fea0
19 changed files with 44 additions and 58 deletions

View File

@@ -8,5 +8,4 @@ is_passable = true
is_transitional = false
is_transparent = true
name = 'air'
name_key = 'block.air'
roughness = 1.0

View File

@@ -8,5 +8,4 @@ is_passable = false
is_transitional = true
is_transparent = false
name = 'dirt'
name_key = 'block.dirt'
roughness = 1.0

View File

@@ -8,5 +8,4 @@ is_passable = true
is_transitional = false
is_transparent = true
name = 'grass'
name_key = 'block.grass'
roughness = 0.90000000000000002

View File

@@ -8,5 +8,4 @@ is_passable = false
is_transitional = true
is_transparent = false
name = 'grass_block'
name_key = 'block.grass_block'
roughness = 0.90000000000000002

View File

@@ -8,5 +8,4 @@ is_passable = false
is_transitional = false
is_transparent = true
name = 'leaf'
name_key = 'block.leaf'
roughness = 0.69999999999999996

View File

@@ -8,5 +8,4 @@ is_passable = false
is_transitional = false
is_transparent = false
name = 'log'
name_key = 'block.log'
roughness = 0.69999999999999996

View File

@@ -8,5 +8,4 @@ is_passable = false
is_transitional = true
is_transparent = false
name = 'sand'
name_key = 'block.sand'
roughness = 0.80000000000000004

View File

@@ -8,5 +8,4 @@ is_passable = false
is_transitional = true
is_transparent = false
name = 'snowy_grass_block'
name_key = 'block.snowy_grass_block'
roughness = 0.90000000000000002

View File

@@ -8,5 +8,4 @@ is_passable = false
is_transitional = true
is_transparent = false
name = 'stone'
name_key = 'block.stone'
roughness = 0.75

View File

@@ -9,4 +9,3 @@ is_discard = false
is_blend = false
is_transitional = false
roughness = 1.0
name_key = "block.template"

View File

@@ -8,5 +8,4 @@ is_passable = true
is_transitional = false
is_transparent = true
name = 'water'
name_key = 'block.water'
roughness = 0.02