#Changing the mod display name not working

3 messages · Page 1 of 1 (latest)

tame pewter
#

Platform.mods.kubejs.name = 'Skyblock'

StartupEvents.registry('block', event => {
event.create('example_block') // Create a new block
.displayName('My Custom Block') // Set a custom name
.soundType('wool') // Set a material (affects the sounds and some properties)
.hardness(1.0) // Set hardness (affects mining time)
.resistance(1.0) // Set resistance (to explosions, etc)
.requiresTool(true) // Requires a tool or it won't drop (see tags below)
.tagBlock('purplesky:example') // Tag the block with #my_namespace:my_other_tag
.tagBlock('minecraft:mineable/pickaxe') // or a pickaxe
.tagBlock('minecraft:needs_iron_tool') // the tool tier must be at least iron
})

I have this in my startup_scripts and it still says kubejs everywhere

potent minnowBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

runic apexBOT
#

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)
})