Guns Without Roses

Guns Without Roses

3M Downloads

[BUG] Can't make any custom recipe with Shotgun and Sniper using Kubejs

DragonacyCX opened this issue ยท 3 comments

commented

Whether those are used as an ingredient or the recipe result, the custom recipe using those can't be made. Gatling and pistols for instance work fine.

commented

Do you have more details on that? Like what do the scripts you're trying look like; alongside versions for kubejs, guns without roses, and minecraft?

commented

Do you have more details on that? Like what do the scripts you're trying look like; alongside versions for kubejs, guns without roses, and minecraft?

Dang sorry for not replying for so long, I forgot about posting the issue. I was using version: 2.1.0 of the gun mod, (the current one 2.1.1 has the same problem too), kubejs version: KubeJS Forge 2001.6.5-build.16 and Minecraft 1.20.1. I wrote a recipe like this where the gold pistol is the output:

//Gold Gun
event.shaped(
Item.of('gunswithoutroses:gold_gun', 1), // Output
[
'I ',
'SIT',
' FI'
],
{
I: 'create:golden_sheet',
S: 'minecraft:stick',
T: 'minecraft:gold_block',
F: 'minecraft:oak_log'
}
).id('dcx:gold_gun');

Image

and my custom recipe works normally and shows alongside the default recipe in JEI.

But when I try making a crafting recipe for a shotgun and or sniper, for example like this:

//Shotgun
event.shaped(
Item.of('gunswithoutroses:diamond_shotgun', 1), // Output
[
'D ',
'SDT',
' FI'
],
{
D: 'minecraft:diamond',
I: 'create:iron_sheet',
S: 'minecraft:stick',
T: 'create:precision_mechanism',
F: 'minecraft:oak_log'
}
).id('dcx:shotgun');

Image

...Then nothing shows up besides the default recipe. Kubejs doesn't give any errors yet the recipe refuses to exist. That's about it.

commented

Well this test script I threw together seems to work, both for the gold gun and the diamond shotgun. So my guess the issue is in your script.

test.js.txt

Image

Image