fix: KubeJS block methods - replace material/translucent/noSolid with valid 1.21 API
All checks were successful
Build & Release Pack / build (push) Successful in 1m46s

- Replace .material('metal') with .soundType('metal').mapColor('color_gray')
- Replace .material('glass'), .translucent(true), .noSolid(true) with
  .soundType('glass').renderType('translucent').opaque(false)
- Verified all methods against jar: hardness, resistance, lightLevel,
  tagBlock, texture, soundType, mapColor, renderType, opaque all exist
This commit is contained in:
MiTHRAL 2026-08-19 19:05:16 -04:00
parent c989b34921
commit 1741dbfed4
2 changed files with 10 additions and 8 deletions

View file

@ -35,7 +35,8 @@ StartupEvents.registry('block', event => {
.texture('scicraft:block/quantum_lattice') .texture('scicraft:block/quantum_lattice')
.hardness(5.0) .hardness(5.0)
.resistance(1200.0) .resistance(1200.0)
.material('metal') .soundType('metal')
.mapColor('color_gray')
.lightLevel(0.9) .lightLevel(0.9)
.tagBlock('minecraft:mineable/pickaxe') .tagBlock('minecraft:mineable/pickaxe')
.tagBlock('minecraft:needs_diamond_tool') .tagBlock('minecraft:needs_diamond_tool')
@ -45,9 +46,9 @@ StartupEvents.registry('block', event => {
.texture('scicraft:block/renegade_glass') .texture('scicraft:block/renegade_glass')
.hardness(0.3) .hardness(0.3)
.resistance(0.3) .resistance(0.3)
.material('glass') .soundType('glass')
.translucent(true) .renderType('translucent')
.noSolid(true) .opaque(false)
.tagBlock('minecraft:mineable/pickaxe') .tagBlock('minecraft:mineable/pickaxe')
.tagBlock('c:glass_blocks') .tagBlock('c:glass_blocks')
.tagBlock('c:glass') .tagBlock('c:glass')

View file

@ -35,7 +35,8 @@ StartupEvents.registry('block', event => {
.texture('scicraft:block/quantum_lattice') .texture('scicraft:block/quantum_lattice')
.hardness(5.0) .hardness(5.0)
.resistance(1200.0) .resistance(1200.0)
.material('metal') .soundType('metal')
.mapColor('color_gray')
.lightLevel(0.9) .lightLevel(0.9)
.tagBlock('minecraft:mineable/pickaxe') .tagBlock('minecraft:mineable/pickaxe')
.tagBlock('minecraft:needs_diamond_tool') .tagBlock('minecraft:needs_diamond_tool')
@ -45,9 +46,9 @@ StartupEvents.registry('block', event => {
.texture('scicraft:block/renegade_glass') .texture('scicraft:block/renegade_glass')
.hardness(0.3) .hardness(0.3)
.resistance(0.3) .resistance(0.3)
.material('glass') .soundType('glass')
.translucent(true) .renderType('translucent')
.noSolid(true) .opaque(false)
.tagBlock('minecraft:mineable/pickaxe') .tagBlock('minecraft:mineable/pickaxe')
.tagBlock('c:glass_blocks') .tagBlock('c:glass_blocks')
.tagBlock('c:glass') .tagBlock('c:glass')