#forge 1.20.1, custom modpack (first time Kubejs user)

24 messages · Page 1 of 1 (latest)

simple patrol
#

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.

unborn heartBOT
#

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

dull plover
#

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

simple patrol
#

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?

leaden mulch
#

They mostly differ in the Event Line, but also other Things are different

simple patrol
#

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...

sweet depot
#

First, learn JS. You can't code if you don't know how to

#

Then, go through the Wiki to understand how Kube works

spare ginkgo
#

there are also tutorials online for this stuff, great place to get started

#

??tutorial

fossil rootBOT
spare ginkgo
#

the first one goes over custom recipes/recipe removal

dull plover
#

The wiki is a fucking barren wasteland save for one or two examples

#

Installing probejs is the best you can do

simple patrol
dull plover
#

So for entity events it can autofill with a list of all vanilla and modded entities

simple patrol
sweet depot
#

You can just search for quick introductions to JS, it's quick and easy to learn

static wagon
#

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.