I am a complete beginner when it comes to coding and wanted to give KubeJS a try on a custom modpack to remove recipes and entire items, I am using VSC but the example scripts from the wiki don't seem to function for me. I assume I am using a false syntax, I would appreciate it if someone could walk me through the correct way to using operators.
#forge 1.20.1, custom modpack (first time Kubejs user)
24 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
You’re gonna have to be way more specific
But for the record, the answer is most likely that you’re using the 1.18 event format
this isn't really about a specific code but rather getting a general understanding for the process.
How do 1.18 and 1.20 differ?
They mostly differ in the Event Line, but also other Things are different
Use rmthis Wiki https://kubejs.com/wiki/tutorials/recipes
OKay but that wiki doesn't have like a list explaining all available operators, for example if I want to remove recipes of a certain method. I can't find anything that tells me the different methods Minecraft/KubeJS uses to differentiate them. Like I said I am a complate beginner to coding. I am literally standing in a corn field not knowing which way to go...
First, learn JS. You can't code if you don't know how to
Then, go through the Wiki to understand how Kube works
there are also tutorials online for this stuff, great place to get started
??tutorial
📼Youtube Tutorials📼
the first one goes over custom recipes/recipe removal
Unfortunately, if you want to use kubejs, you have to be prepared to teach it to yourself
The wiki is a fucking barren wasteland save for one or two examples
Installing probejs is the best you can do
okay so probeJS, does it have every prompt from the mods, like the vanilla: 'minecraft:crafting_shaped'?
It SHOULD grab pretty much everything kubejs can modify and show them where relevant
So for entity events it can autofill with a list of all vanilla and modded entities
Can you recommend a video series or a guide I could use for that?
You can just search for quick introductions to JS, it's quick and easy to learn
Or just search here for things that you want to do, someone else has likely already done it.
If you do need help with something specific, at least make an attempt yourself and share your code and errors so we can help you make sense of it and fix it.
Sometimes its easier to learn by example if you can see how things are actually done.