#Modify / Hide mod iron jetpack
41 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
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.
@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'
}
)
})```
the item is not ironjetpacks:wood
but Item.of("ironjetpacks:jetpack", '{Id:"ironjetpacks:wood", Throttle:1.0d}')
does not work
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.
no logs; no support
Paste version of server.txt from @sterile beacon
but I know where the problem comes from, it's the mod id :-:
first of all;
Error loading KubeJS script: missing ) after argument list (server_scripts:script.js#11)
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.
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
oh
also
`3x Item.of("ironjetpacks:jetpack", '{Id:"ironjetpacks:wood", Throttle:1.0d}')`
also wait
u can't even do 3x on item.of
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'
})
})```
Paste version of server.txt from @sterile beacon
Item.of("ironjetpacks:jetpack", 3, '{Id:"ironjetpacks:wood", Throttle:1.0d}')
When making recipes you can specify items in many ways, the most common is just to use 'namspace:id'...
thx ...
... you're welcome
Why doesn't it work?
onEvent('recipes', event => {
event.remove({
id: "ironjetpacks:copper_jetpack"
})
})```
Paste version of server.txt from @sterile beacon
help please @ebon ore 😅
idk, looks good
:x