#What value am i supposed to set after .opaque()
45 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
it takes a boolean directly, not strings
does that mean i dont need the "
.opaque(false)
.fullBlock(false)
.waterlogged()
ohhhhh
splendid
thank you very much
I'll boot it back up to make sure it works and close teh ticket

oops
I saw you capitalizing the L so i did just that and uh
could that be the issue ?
seems to be just this
@Info("Makes the block can be waterlogged.")
public BlockBuilder waterlogged() {
return property(BlockStateProperties.WATERLOGGED);
}
lwoercase L and no params

copy the code here
sure
StartupEvents.registry('block', event => { event.create('iron_grate') .displayName('Iron Grate') .soundType('COPPER_GRATE') .hardness(3.0) .resistance(6.0) .tagBlock('my_custom_tag') .requiresTool(true) .tagBlock('waterloggable') .tagBlock('minecraft:mineable/pickaxe') .tagBlock('minecraft:needs_stone_tool') .renderType('cutout') .opaque(false) .fullBlock(false) .waterlogged() })
that's not how i do a code block on discord
oops
try this
StartupEvents.registry('block', event => {
event.create('iron_grate')
.soundType('COPPER_GRATE')
.hardness(3.0)
.resistance(6.0)
.tagBlock('my_custom_tag')
.requiresTool(true)
.tagBlock('waterloggable')
.tagBlock('minecraft:mineable/pickaxe')
.tagBlock('minecraft:needs_stone_tool')
.defaultTranslucent()
.opaque(false)
.fullBlock(false)
.waterlogged()
})
for codeblocks
You can write your code in a codeblock by typing it between the codeblock delimiters:
Note that these are backticks, not apostrophes
```js :arrow_left:
ServerEvents.recipes(event => {
event.smelting('minecraft:glass', '#forge:sand').xp(.1)
})
``` :arrow_left:
This example will look like this:
ServerEvents.recipes(event => {
event.smelting('minecraft:glass', '#forge:sand').xp(.1)
})
yes you do
i've heard some kubejs things like recipes can just be refreshed with /kubejs reload
thats because /reload is reloading datapacks, which happen after you start the game
registry happens when you start the game
must be restarted
Okay
thank you you're of great help
Understanding goes a long way it's not just about fixing
you're awesome