#Custom recipes for RFtools spawner seemingly not registering

43 messages · Page 1 of 1 (latest)

umbral patio
#

Hi, I'm attempting to add recipes to the RFtools spawner using KubeJS in the Mechanical Mastery modpack, as far as I can tell from examples I've entered the recipes correctly, but they don't appear to be showing up in the game. I've restarted the game client entirely, run a /reload command, is there something I'm missing to make the recipes work, or is there something I've done wrong that'd cause these recipes to not show up at all?

Recipes added below:

    event.custom({
        type: "rftoolsutility:spawner",
        id: "rftoolsutility:thermal_basalz",
        power: 1000,
        entity: "thermal.basalz",
        item1: {
            amount: 0.1,
            ingredient: {
            item: "thermal:basalz_rod"
            }
        },
        item2: {
            "amount": 0.5,
            "ingredient": {
            "item": "minecraft:stone"
            }
        },
        item3: {
            "amount": 30.0,
            "living": true
        }
    }
    );
    event.custom({
        type: "rftoolsutility:spawner",
        id: "rftoolsutility:thermal_blizz",
        power: 1000,
        entity: "thermal:blizz",
        item1: {
            amount: 0.1,
            ingredient: {
            item: "thermal:blizz_rod"
            }
        },
        item2: {
            amount: 0.5,
            ingredient: {
            item: "minecraft:ice"
            }
        },
        item3: {
            amount: 30.0,
            living: true
        }
    }
    );
    event.custom({
        type: "rftoolsutility:spawner",
        id: "rftoolsutility:thermal_blitz",
        power: 1000,
        entity: "thermal:blitz",
        item1: {
            amount: 0.1,
            ingredient: {
            item: "thermal:blitz_rod"
            }
        },
        item2: {
            amount: 0.5,
            ingredient: {
            item: "minecraft:sand"
            }
        },
        item3: {
            amount: 30.0,
            living: true
        }
    }
    );
dire latchBOT
#

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

cosmic marlinBOT
#

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

umbral patio
cosmic marlinBOT
#

Paste version of server.txt from @umbral patio

dry zenith
#

It says all recipes are added and zero failed

umbral patio
#

Yep. And yet the recipe is not added.

#

I put the syringe into the spawner, it fails to show the ingredients needed for spawning the Basalz. By contrast, I put in a Blaze syringe and I get the second display instead.

dry zenith
#

Oh

#

You wrote . Instead of :

#

For the first one

#

When writing the entity thing

umbral patio
#

It does the exact same for the other syringes. I did spot that and fix it while looking for other issues, now that you mention it, but I didn't do it for the others and those don't work either.

#

(And Basalz still doesn't work even after fixing that error)

dry zenith
#

Seems like there's zero recipe validation... What a great mod

umbral patio
#

?

#

I don't understand what that means

dry zenith
#

It's fine, doesn't matter

#

But yeah idk what to say other than triple check that everything is correct and that you have the right recipe structure

umbral patio
#

This is the json ripped straight out of the mod itself for blazes.

{
  "type": "rftoolsutility:spawner",
  "id": "rftoolsutility:minecraft_blaze",
  "power": 1000,
  "entity": "minecraft:blaze",
  "item1": {
    "amount": 0.1,
    "ingredient": {
      "tag": "forge:rods/blaze"
    }
  },
  "item2": {
    "amount": 0.5,
    "ingredient": {
      "item": "minecraft:netherrack"
    }
  },
  "item3": {
    "amount": 30.0,
    "living": true
  }
}

I tried it with the "s around the first parts as well, no effect.

#

I can't see any errors in the recipe structure. I can't triple check if anything else is correct because I don't understand this enough to identify anything wrong.

#

If I understood how to repackage a .jar file I'd just put the recipes directly into the mod myself, but I don't, so. I'd make a datapack, but I don't understand how to do that either, and the tutorials I've followed haven't worked.

dry zenith
#

the quotes dont matter

umbral patio
#

Then I don't know what else I could be doing wrong. Should I just post the entire recipes file? It's like a thousand lines long, so maybe there's something in there somewhere that I'm missing.

cosmic marlinBOT
#

Paste version of recipes.js from @umbral patio

dry zenith
#

try turning on the logging for added and skipped recipes, then reload, and check the log to find your recipes

umbral patio
#

How do I turn that logging on?

dry zenith
umbral patio
#

...And where is that?

dry zenith
umbral patio
#

You could have said 'in the recipes file'. I'm not generally prone to assuming config options are stored somewhere other than the config folder.

#

And the logs should go to minecraft/logs/kubejs/server.txt, right?

#

...headdesk So I found out what the problem was and why I wasn't getting any information.

I made a clone of this instance to test adding MineTogether to play with a friend. I renamed one of the instances to 'MP' to delineate it. I assumed it was the new instance. Turns out no, no it was not.

So I've been working in the wrong instance folder this entire time. Making changes to one folder then reloading the other folder's instance and wondering why nothing happened.

#

Okay. I at least have an error message now! It says 'missing ] after element list' and points me to right after the Basalz entry. But I don't see an [ that needs a ] to close it?

acoustic pewter
#

you have a syntax error

#

??editor

cosmic marlinBOT
# acoustic pewter ??editor

If you're working with KubeJS scripts, config files, or similar things, we generally recommend using an actual IDE rather than just Notepad++ and its various siblings.
In a lot of cases, it can help you find errors in your code faster and also gives you neat features like syntax highlighting, automatic formatting, etc!
We recommend Visual Studio Code, since it's lightweight(-ish) and works very well with JavaScript files out-of-the-box.

umbral patio
#

Meh, was sort of hoping to avoid installing anything just for this one thing, but tbh I've spent six hours on this now, so I need all the help I can get

#

Okay. Got it to run with no errors found. But it's still not actually putting the recipes into play? I split the recipes into their own file to be a bit easier to work with, here's what I currently have. The log file is here, too; the only relevant bit that I saw was this

[17:41:49] [INFO ] server_scripts:thermal/spawner.js:9: + rftoolsutility:spawner: [] -> []
[17:41:49] [INFO ] server_scripts:thermal/spawner.js:32: + rftoolsutility:spawner: [] -> []
[17:41:49] [INFO ] server_scripts:thermal/spawner.js:56: + rftoolsutility:spawner: [] -> []

But I don't know what that means?

cosmic marlinBOT
#

Paste version of spawner.js, server.txt from @umbral patio

umbral patio
#

...is that, saying that it doesn't know an output?

#

Not finding anything about it on a couple quick searches. Any ideas?