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
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:
parent
c989b34921
commit
1741dbfed4
2 changed files with 10 additions and 8 deletions
|
|
@ -35,7 +35,8 @@ StartupEvents.registry('block', event => {
|
|||
.texture('scicraft:block/quantum_lattice')
|
||||
.hardness(5.0)
|
||||
.resistance(1200.0)
|
||||
.material('metal')
|
||||
.soundType('metal')
|
||||
.mapColor('color_gray')
|
||||
.lightLevel(0.9)
|
||||
.tagBlock('minecraft:mineable/pickaxe')
|
||||
.tagBlock('minecraft:needs_diamond_tool')
|
||||
|
|
@ -45,9 +46,9 @@ StartupEvents.registry('block', event => {
|
|||
.texture('scicraft:block/renegade_glass')
|
||||
.hardness(0.3)
|
||||
.resistance(0.3)
|
||||
.material('glass')
|
||||
.translucent(true)
|
||||
.noSolid(true)
|
||||
.soundType('glass')
|
||||
.renderType('translucent')
|
||||
.opaque(false)
|
||||
.tagBlock('minecraft:mineable/pickaxe')
|
||||
.tagBlock('c:glass_blocks')
|
||||
.tagBlock('c:glass')
|
||||
|
|
|
|||
|
|
@ -35,7 +35,8 @@ StartupEvents.registry('block', event => {
|
|||
.texture('scicraft:block/quantum_lattice')
|
||||
.hardness(5.0)
|
||||
.resistance(1200.0)
|
||||
.material('metal')
|
||||
.soundType('metal')
|
||||
.mapColor('color_gray')
|
||||
.lightLevel(0.9)
|
||||
.tagBlock('minecraft:mineable/pickaxe')
|
||||
.tagBlock('minecraft:needs_diamond_tool')
|
||||
|
|
@ -45,9 +46,9 @@ StartupEvents.registry('block', event => {
|
|||
.texture('scicraft:block/renegade_glass')
|
||||
.hardness(0.3)
|
||||
.resistance(0.3)
|
||||
.material('glass')
|
||||
.translucent(true)
|
||||
.noSolid(true)
|
||||
.soundType('glass')
|
||||
.renderType('translucent')
|
||||
.opaque(false)
|
||||
.tagBlock('minecraft:mineable/pickaxe')
|
||||
.tagBlock('c:glass_blocks')
|
||||
.tagBlock('c:glass')
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue