#Modify / Hide mod iron jetpack

41 messages · Page 1 of 1 (latest)

sterile beacon
#

hello, I would like to hide / cache some jetpack but every time I get errors like "the id is unknown

little nacelleBOT
#

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

blissful lightBOT
#

You can find your KubeJS server log in /minecraft/logs/kubejs/server.log.
If you are on 1.18 or below it will be called server.txt.
Please send it if asked, as it contains helpful information.

#

➡️ #1048591172165189632

#

Send your code here instead of a screenshot

It makes it easier to diagnose your code and help you fix it or make the required changes/additions.

sterile beacon
#

@ebon ore The problem comes from my jetpack id

#
onEvent('recipes', event => {
    event.shaped('1x ironjetpacks:wood', [// arg 1: output
    'A B', 
    ' C ', // arg 2: the shape (array of strings)
    'B A'  
  ], {
    A: 'minecraft:andesite', 
    B: 'minecraft:diorite',  //arg 3: the mapping object
    C: 'minecraft:granite'   
  }
)
})```
ebon ore
#

the item is not ironjetpacks:wood

#

but Item.of("ironjetpacks:jetpack", '{Id:"ironjetpacks:wood", Throttle:1.0d}')

sterile beacon
#

does not work

blissful lightBOT
#

You can find your KubeJS server log in /minecraft/logs/kubejs/server.log.
If you are on 1.18 or below it will be called server.txt.
Please send it if asked, as it contains helpful information.

ebon ore
#

no logs; no support

sterile beacon
blissful lightBOT
#

Paste version of server.txt from @sterile beacon

sterile beacon
#

but I know where the problem comes from, it's the mod id :-:

ebon ore
#

first of all;
Error loading KubeJS script: missing ) after argument list (server_scripts:script.js#11)

blissful lightBOT
#

Send your code here instead of a screenshot

It makes it easier to diagnose your code and help you fix it or make the required changes/additions.

sterile beacon
#
onEvent('recipes', event => {
    event.shaped('3x Item.of("ironjetpacks:jetpack", '{Id:"ironjetpacks:wood", Throttle:1.0d}')', [// arg 1: output
    'A B', 
    ' C ', // arg 2: the shape (array of strings)
    'B A'  
  ], {
    A: 'minecraft:andesite', 
    B: 'minecraft:diorite',  //arg 3: the mapping object
    C: 'minecraft:granite'   
  }
)
})```
#

@ebon ore

ebon ore
#

oh

#

also

#
`3x Item.of("ironjetpacks:jetpack", '{Id:"ironjetpacks:wood", Throttle:1.0d}')`
#

also wait

#

u can't even do 3x on item.of

sterile beacon
#
onEvent('recipes', event => {
  event.shaped('3x Item.of("ironjetpacks:jetpack",{Id:"ironjetpacks:wood", Throttle:1.0d})',
  [
    'A B', 
    ' C ', // arg 2: the shape (array of strings)
    'B A'  
  ], {
    A: 'minecraft:andesite', 
    B: 'minecraft:diorite',  //arg 3: the mapping object
    C: 'minecraft:granite'   
  })
})```
blissful lightBOT
#

Paste version of server.txt from @sterile beacon

ebon ore
#
Item.of("ironjetpacks:jetpack", 3, '{Id:"ironjetpacks:wood", Throttle:1.0d}')
sterile beacon
#

thx ...

ebon ore
#

... you're welcome

sterile beacon
#

Why doesn't it work?

onEvent('recipes', event => {
    event.remove({
        id: "ironjetpacks:copper_jetpack"
      })
    })```
blissful lightBOT
#

Paste version of server.txt from @sterile beacon

sterile beacon
#

help please @ebon ore 😅

ebon ore
#

idk, looks good

sterile beacon
#

:x

sterile beacon
#
e.hide(Item.of("ironjetpacks:jetpack", 1, '{Id:"ironjetpacks:wood", Throttle:1.0d}'))```
#

I can't hide it