#Every stupid question that I have (many)

1 messages · Page 2 of 1

steep shadow
#

is it working now?

#

ITS BOOTING UP

#

LESS GOO

#

it failed

drifting timberBOT
#

Paste version of create_fluid.js from @steep shadow

steep shadow
drifting timberBOT
#

Paste version of startup.log from @steep shadow

cedar crest
steep shadow
#

even then it failed

#

😭

cedar crest
#

ServerEvents.registry

#

server!?

steep shadow
#

oh

cedar crest
#

🗿

steep shadow
#

tell me this is normal and im not dumb

steep shadow
cedar crest
steep shadow
drifting timberBOT
#

Paste version of latest.log from @steep shadow

steep shadow
#

it showed some problem with emandatus enigmatica hammer

#

¯_(ツ)_/¯

cedar crest
#

#6: Error occurred while handling event 'StartupEvents.registry': TypeError: Cannot find function textureThick in object dev.latvian.mods.kubejs.fluid.FluidBuilder@67956a72. (startup_scripts:create_fluid.js#6)

cedar crest
steep shadow
#

thats dumb

#

the ee hammer stuff

#

I was having problem with it bcs I hadnt Gecko Lib

steep shadow
#

ok so I want to move the liquid to the barrel now

#

I dont want to make buckets nor a fluid hopper yet

cedar crest
#

imagine calling poop your kid 💀

#

||jk||

steep shadow
#

its your baby too

cedar crest
#

it's not worry

junior herald
#

Wooden bucket

steep shadow
#

you helped me to create it

junior herald
#

With durability

steep shadow
#

but durability isnt something that really worked so far XD

junior herald
#

Already has durability configuration

steep shadow
#

okay here we goo

#

can I configure which liquids it can hold?

junior herald
#

I assume

#

Obtaining fluids, blocks & entities can be configured via tags and via configuration file.

steep shadow
#

ok relaunching for the bucket

#

ill take a quick bath brb

steep shadow
#

@junior herald its downloaded

#

it looks like it have the living root bucket

#

I found it but only a file on save

#

and I didnt saw where the bucket types are located

#

hey @mossy hearth

#

can I change max durability with some tag script or so?

mossy hearth
#

yes you do

#

ill help you in a few minutes

steep shadow
#

okay :D

mossy hearth
#

onEvent('item.modification', event => {
event.modify('mod:item', item => {
item.tier = tier => {
tier.attackDamageBonus = 2.0
}
})
})

#

change attack damage to durability

#

oh wait nvm its for 1.18.2

#

just change event then

steep shadow
#

can you help me to see what's wrong here?

drifting timberBOT
#

Paste version of server.log from @steep shadow

steep shadow
#

its some error on shaped and my barrel fluid recipes

#

oh the barrel recipe was outside of the folder

drifting timberBOT
#

Paste version of shaped_recipes.js from @steep shadow

steep shadow
#

the shaped is still wrong tho

steep shadow
drifting timberBOT
#

Paste version of shaped_recipes.js from @steep shadow

steep shadow
drifting timberBOT
#

Paste version of server.log from @steep shadow

steep shadow
#

@atomic bear

#

it says line 238 so the whole recipe isnt going

#

I checked it 10 times now Idk why it isnt working

atomic bear
#

did you make sure the result of the recipe has the correct ID? it's saying it's empty, which means the item doesn't exist

#

line 238 is the wooden bucket recipe

steep shadow
#

I checked this also

#

I tried making minecraft:bowl

#

and it didnt worked too

drifting timberBOT
#

Silent Gear doesn't allow the recipe event to run asynchronously, which will result in a ConcurrentModificationException.
To fix this, set allowAsyncStreams to false in kubejs/config/common.properties.

atomic bear
#

try that

steep shadow
#

its already false

#

I had problems with it a few time ago

#

idk it isnt working

#

im freaking out

#

great, now even my sieve recipe that is only normal itens isnt working

#

wtf is going on

#

I was forgetting commas

#

after the ('minecraft:bowl', 2)

#

imma kms

steep shadow
#

@atomic bear hi again

#
ServerEvents.recipes(event => {
    
        function stringmesh (input, output, defaultchance, flintchance, ironchance, diamondchance, emeraldchance, netheritechance){
            event.recipes.exnihilosequentia.sieve(input, output, defaultchance, bonuschance)
                let 'bonuschance'
                .addRoll(defaultchance, 'string')
                .addRoll(flintchance?? 0.0, 'flint')
                .addRoll(ironchance?? 0.0, 'iron')
                .addRoll(diamondchance?? 0.0, 'diamond')
                .addRoll(emeraldchance?? 0.0, 'emerald')
                .addRoll(netheritechance?? 0.0, 'netherite')
            }

            stringmesh ('botania:root', 'botania:living_root', 1.0,)```
#

after the let

#

what do I need to make it a functional variable?

#

I need to add the rolls but i dont know how

#

the old version of this used to work before the probejs

#

ok so apparently it was missing a boolean value for waterlogged()

#

but now its showing some error that I cant really discover

#

I need internauts help 😭

drifting timberBOT
#

Paste version of server.log, meshString.js from @steep shadow

steep shadow
#

@clever iron

clever iron
steep shadow
#

would it be better if I sent you an image of the /kubejs errors?

#

since youre on mobile

clever iron
#

nah

#

im just gonna guess here, try this

ServerEvents.recipes(event => {
  function stringmesh(input, output, defaultchance, flintchance, ironchance, diamondchance, emeraldchance, netheritechance){
    event.recipes.exnihilosequentia.sieve(input, output)
      .addRoll(defaultchance, 'string', false)
      .addRoll(flintchance || 0.0, 'flint', false)
      .addRoll(ironchance || 0.0, 'iron', false)
      .addRoll(diamondchance || 0.0, 'diamond', false)
      .addRoll(emeraldchance || 0.0, 'emerald', false)
      .addRoll(netheritechance || 0.0, 'netherite', false)
  }

  stringmesh('botania:root', 'botania:living_root', 0.9)
})
steep shadow
#

you changed the ?? to ||?

clever iron
#

yes

steep shadow
#

what do they do exactly

#

it didnt worked

clever iron
#

the || is an or
it just selects whichever value is not undefined

steep shadow
#

also the same error

clever iron
#

and the ?? is similar but different somehow, its a bit fucky wucky

steep shadow
#

I see haha

clever iron
#

the error you have says this doesnt exist .sieve(input, output)

steep shadow
#

its missing the rolls

clever iron
#

sounds like youre most likely missing some arguments

steep shadow
#

but the rolls are added after it

clever iron
#

that wont work

#

by the looks of it, its expecting a default roll in the construcor

steep shadow
#

hmmm

#

if I put the defaultchance in it, can the others be added later?

clever iron
#

i dunno

#

ive never touched that mod before

#

i dislike it lol

steep shadow
#

I'm tweaking it completely haha

#

I'm trying something

#

what does this means exactly?

#

chance:float (percentage)
mesh:enum (tier?)
[]???

#

and then the string after

clever iron
#

Something in your syntax is wrong

steep shadow
#

I'll have to leave the computer now

#

bleh

steep shadow
#

that I called on the function start

steep shadow
#

I didn't figured out what's wrong

steep shadow
#

@cedar crest hi star_flushed

cedar crest
steep shadow
#

I need help 😭

steep shadow
cedar crest
steep shadow
cedar crest
#

what's on line 10? heh

steep shadow
#

idk I'm not home

#

look the .js 🥺

cedar crest
#

.addRoll(netheritechance?? 0.0, 'netherite', false)} hmmm

steep shadow
#

what's wrong

cedar crest
#

that's the neat part, I don't know raha

steep shadow
#

a

cedar crest
#

b

steep shadow
#

the lady tried swapping ?? to ||

#

it didn't worked

cedar crest
cedar crest
#

just to be sure, are you on kjs 6 or 6.1?

#

@steep shadow

steep shadow
#

(I don't know)

cedar crest
#

it matters

steep shadow
#

how to know

cedar crest
#

it's the kubejs' version

#

...

steep shadow
#

I just pressed the download button on the curse forge

#

when creating a modpack now there's a library of mods

#

it should be the most recent version then

cedar crest
#

than 6.1 heh

#

the syntax is very different on 6.1

steep shadow
#

oh

#

it worked on hommage, the modpack could be using the 6.0 version

steep shadow
#

the jjs legacy?

cedar crest
#

it's on ex nihilo sequentia's wiki heh

steep shadow
#

oh

cedar crest
steep shadow
#

so to add rolls

cedar crest
#

yes

steep shadow
#

[
{
chance: "rollchance",
mesh: "mesh_tier",
}
]

#

the waterlogged isn't required?

cedar crest
steep shadow
#

oh

cedar crest
drifting timberBOT
# cedar crest ??codeblock <:heh:504730156792021002>

You can write your code in a codeblock by typing it between the codeblock delimiters:

```js :arrow_left:

ServerEvents.recipes(event => {
event.smelting('minecraft:glass', '#forge:sand').xp(.1)
})

``` :arrow_left:

As an example, :arrow_up: will look like this:

ServerEvents.recipes(event => {
  event.smelting('minecraft:glass', '#forge:sand').xp(.1)
})
steep shadow
#

does it talks about boolean?

cedar crest
steep shadow
#

waterlogged:"boolan"

#

true or false

cedar crest
#

that

steep shadow
#

boolean

#

not boolan

cedar crest
#
  1. .addRoll() looks to only take two arguments
  2. to set the sieve to need to be waterlogged, you need to do .setWaterlogged()
  3. if you're on kjs 6.1, rolls are added in a different way, but 2 still should apply
#

wait

#

everything makes sense now bigbrain

cedar crest
#

stack overflow heh

steep shadow
#

translate to me

#

what's this stack overflow?

cedar crest
#

it's a website where people come with programming issues

#

and people answer them heh

#

simple as that raha

steep shadow
#

oh

#

thought it was an error that I was making

cedar crest
steep shadow
#

the stack overflow I mean

steep shadow
cedar crest
cedar crest
#

and also because you were calling the function with too many arguments heh

steep shadow
#

on the sieve recipe it says about the waterlogged

#

if you hover it, it says: input:any output:any {roll:} and then waterlogged:boolean

steep shadow
#

yeah it says

#

if you do events.recipes.exnihilosequentia.sieve()

#

it says the same

cedar crest
#

but the way that you sent it is hard to decipher

#

just send a screenshot instead hoh

steep shadow
#

I'm not home 😭😭😭

cedar crest
#

oh

#

I thought that you returned by now raha

steep shadow
#

in 3 hours only

#

so I'm trying to discover my errors

mossy hearth
#

errors <<<<

steep shadow
#

@cedar crest can I make the barrel transform a liquid into a block without using items in it?

#

what if I use minecraft:air

#

🤔

cedar crest
#

I tried to use dark reader but I couldn't get it to work hoh

steep shadow
#

hahaha

steep shadow
drifting timberBOT
#

Paste version of latest.log from @steep shadow

steep shadow
#

it crashed while booting up D:

#

@junior herald are you there?

cedar crest
#

what error is in the crash report?

steep shadow
#

some error with enigmatica hammer recipe

#

??

cedar crest
#

send it

steep shadow
#

I didnt changed anything on my scripts

#

its opening now eh

#

donald

#
ServerEvents.recipes(event => {
    
        function stringmesh (input, output, defaultchance, flintchance, ironchance, diamondchance, emeraldchance, netheritechance){
            event.recipes.exnihilosequentia.sieve(input, output, [
                {
                    chance: defaultchance,
                    mesh: 'string'
                },                
                {
                    chance: flintchance || 0.0,
                    mesh: 'flint'
                },                
                {
                    chance: ironchance || 0.0,
                    mesh: 'iron'
                },
                {
                    chance: diamondchance || 0.0,
                    mesh: 'diamond'
                },
                {
                    chance: emeraldchance || 0.0,
                    mesh: 'emerald'
                },
                {
                    chance: netheritechance || 0.0,
                    mesh: 'netherite'
                },
                
            ])}
            
            stringmesh ('botania:root', 'botania:living_root', 0.9)
})```
#

wlil this work?

cedar crest
#

@drifting timber you there

drifting timberBOT
cedar crest
#

I guess yes

steep shadow
#

youre already on the chat

#

didnt needed to ping you

cedar crest
drifting timberBOT
cedar crest
steep shadow
#

but if you want to 😳

#

YOU HAVE MACRO FOR EVERYTHING HUH

cedar crest
cedar crest
cedar crest
#

so that should ping me but it didn't >:(

steep shadow
#

I was calling you, baby

cedar crest
cedar crest
steep shadow
#

world is opening

#

time to see if it will work

#

its exactly as you said yeh

cedar crest
steep shadow
#

its in the not responding screen for a good while

#

should I relaunch

cedar crest
steep shadow
#

now?

#

oh the log

drifting timberBOT
#

Paste version of server.log from @steep shadow

steep shadow
#

is there anything bad here?

cedar crest
#

other than ~10 saying that you don't need to use .ignoreNBT() anymore, no

steep shadow
#

I was seeing this yeah

#

it looks like I can remove the .ignoreNBT() from it

cedar crest
#

yes heh

steep shadow
#

oh yeah

#

why isnt it damaging the tools?

#

its like using a bucket in a recipe, it just stays

cedar crest
steep shadow
#

finally

cedar crest
steep shadow
#

im relaunching it

#

heh

#

its really not opening my world

#

what could be the reason?

drifting timberBOT
#

Paste version of latest.log from @steep shadow

cedar crest
steep shadow
#

I just sent the log

cedar crest
#

there can be thousands of things that could be the reason

steep shadow
#

gross

cedar crest
steep shadow
#

gross is not the word that I want to use

#

BUT YOU UNDERSTOOD

#

RUDE

cedar crest
steep shadow
#

im sorry pls come back @cedar crest 😭

cedar crest
steep shadow
#

im the real rude

#

read my name

cedar crest
#

net.minecraftforge.fml.config.ConfigFileTypeHandler$ConfigLoadingException: Failed loading config file fluidsystem-server.toml of type SERVER for modid fluidsystem

steep shadow
#

what does this means

cedar crest
#

it's self explanatory hoh

steep shadow
#

ik but

cedar crest
#

it failed to load the config fluidsystem-server.toml...

steep shadow
#

its missing an archive?

cedar crest
steep shadow
#

this fluidsystem

#

is an archive, right?

cedar crest
#

it's a config file hoh

steep shadow
#

so its missing a config?

#

ill delete this mod and hope it will just work

cedar crest
#

Caused by: com.electronwill.nightconfig.core.io.ParsingException: Not enough data available

steep shadow
#

what

#

electronwil?

coral violet
#

night config lib

cedar crest
#

(which they are probably using for their configs)

steep shadow
#

OH

#

I think I know what

#

I only touched on a config of 1 mod

#

no ireverted it back

#

whats happening

#

ill need to create another test world bcs I fkd something D:

#

FINALLY

#

YESSSSS

#

@cedar crest

#

(can I make it roll many times?)

#

I think I can, right?

cedar crest
#

??tryitandsee

drifting timberBOT
cedar crest
steep shadow
#

idk how

#

the .recipe doesn't says it

steep shadow
#

@junior herald

#

HEY

#
    event.shaped(
        Item.of('silentgear:spear_template', 1),
        [
            'FSS',
            'SRW',
            'SAR'
        ],
        {
            F:'minecraft:flint',
            S:'#forge:rods/wooden',
            R:'botania:living_root',
            A:'silentgear:axe_template',
            W: Item.of ('silentgear:saw') .ignoreNBT()
        })
    .damageIngredient(Item.of('silentgear:saw'))   ```
#

this recipe damaged the saw

#

this is the only one that damaged

junior herald
#

Item.of ('silentgear:saw') .ignoreNBT() why the spaces Concern

cedar crest
#

why shouldn't it...?

steep shadow
#

all the others didnt damaged them

cedar crest
#

I don't understand the point of this

#

oh

steep shadow
#
    event.shaped(
        Item.of('minecraft:vine', 8),
        [
            'L L',
            'LSL',
            'L L'
        ],
        {
            L:'#minecraft:leaves',
            S:Item.of ('silentgear:shears') .ignoreNBT()
        })
    .damageIngredient(1).keepIngredient(Item.of('silentgear:shears'))```
#

look

cedar crest
#

.damageIngredient(1) hmmm

steep shadow
#

o

cedar crest
#

you don't need .keepIngredient if you have .damageIngredient

#

try swapping .damageIngredient(1).keepIngredient(Item.of('silentgear:shears')) for .damageIngredient(Item.of('silentgear:shears'))

steep shadow
#

thats why it worked?

#

I wasnt dumb

#

IT WORKEEEED

#

YAAAAAY

#

so the .keepingredient is to not use it

#

and the damage is to damage it

cedar crest
steep shadow
#

so it prevents it from being damaged

#

it was so obvious

#

I'm dumb

steep shadow
#

ohhh its outside the bracket

#

I NOTICED SOMETHING

#

IM SO SMART

#

hmmm

#

if I click R on an item on the FTB Quests it doesnt do anything

#

is ther eany way to sync it with the REI or smth?

livid flower
#

try just left-clicking i think?

steep shadow
#

it opens this but still doesnt works

#

does it only works for Jei or is some configuration?

steep shadow
#

@cedar crest hey buddy

#

do you know if I can do this

#

without doing

#

THIS

#

(I just want to add the drop chances, not 7x the recipe

#

and all have the same chacnes

#

maybe if I add the recipe to an ID

steel meadow
#

For the array containing the Mesh Chance combinations it May be possible to list the same mesh multiple times.

steep shadow
#

okay I tested something

#

the first time I was coding this, I didnt added bonus rolls chances, so every int after the first was considered an additional roll to the first

#

if I make a different one with just the flint mesh

#

hmmm

#

@soft abyss heyy

#

can you help with smth?

soft abyss
#

go ahead

steep shadow
#

im making a function

#

instead of doing this

#
ServerEvents.recipes(event => {
    
        function stringmesh (input, output, defaultchance){
            event.recipes.exnihilosequentia.sieve(input, output, [
                {
                    chance: defaultchance,
                    mesh: 'string'
                }, {
                    chance: defaultchance,
                    mesh: 'string'
                }, {
                    chance: defaultchance,
                    mesh: 'string'
                },
                ])}
            
            stringmesh ('botania:root', 'botania:living_root', 0.9)
})```
#

can I make something after the 0.9 to how many times I want to repeat this?

steep shadow
#

@idle linden

soft abyss
#
const fill = new Array(5).fill(0)
console.log(fill) // [ 0,0,0,0,0]
#

this should be self explanatory what it does

#

the rest is just implementation

steep shadow
#

5 is the number of times it will repeat?

soft abyss
#

yup

#

and fill can be anything, but it'll repeat that

idle linden
#

5 is the length of the array being created

#

length/size

steep shadow
#

so if I put a var inside the array

#

it will repeat any amount that I want?

soft abyss
#

??tryitandsee

drifting timberBOT
steep shadow
#

OK

#

thank you for the help tho

soft abyss
#

the 'tho' makes it sound like I was like 'nope idk hehe' heh

steep shadow
#

now i put this inside there?

#

I think it didnt worked

#

hmmmmmmmm

#

if I put it outside the bracket

steel meadow
#

you have closing brackets and a comma to much at the end.

steep shadow
#
  ServerEvents.recipes(event => {
    
        function stringmeshrepeat (input, output, defaultchance, times){
            event.recipes.exnihilosequentia.sieve(input, output, [
                const fill = Array(times).fill( {  
                    chance: defaultchance,
                    mesh: 'string'
                },)
                ])}
              
                stringmeshrepeat ('botania:root', 'botania:living_root', 0.5, 10)
})```
#

I still have some additional brackets

#

where?

steel meadow
#

you don't need the const fill = section If you're using it directly / don't make it a function

steep shadow
#

wait no

cedar crest
#
ServerEvents.recipes(event => {
    let stringMesh = (input, output, chance, amount) => event.recipes.exnihilosequentia.sieve(input, output, Array(amount).fill({chance: chance, mesh: 'string'}))
    stringMesh('botania:root', 'botania:living_root', .5, 10)
})
steep shadow
#

this will repeat input and output

steel meadow
#

yes

#

Will repeat output

steep shadow
#

wont this will create multiple recipes?

steel meadow
#

no

#

You only have one event.recipe and aren't making a Loop with it inside

steep shadow
#

why to put it on the start, tho?

#

it worked, nice

cedar crest
#

:D

steep shadow
#

you changed something

#

what?

cedar crest
steep shadow
#

you just edited

cedar crest
#

yes

#

just changed some variable names heh

steep shadow
#

this seems better

#

and I think this exnihilo mechanic wasnt supposed to act this way, but I'll take it haha

#

on the let

#

if I change the amount to amount || 1

#

the default will be one?

cedar crest
#

should be, yea

steep shadow
#

hmmmmmm

cedar crest
steep shadow
#

so this can be adapted to a normal mesh recipe

#

IT BROKE DONALD, IT BROKE

livid flower
#

thats the input arguments of the function

steep shadow
#

hmmm ok

livid flower
steep shadow
#

ohh

#

youre smart

#

how can I make a global function?

#

a global variable actually

#

let ir for local and var is for global?

steel meadow
#

If you want it in all Script types so Server Client and Startup use global.yourfuntionname = function
In Startup scripts

cedar crest
#

??tips

drifting timberBOT
# cedar crest ??tips

How to use global?
global is an object accessible in all types of scripts.
It's useful if you want to use a variable between all script types.
Here's a basic example:

global.myVariable = 5
console.log(global.myVariable + 8) //13

Note that you can't define them using let or const.

let global.myVariable = 5 //this will result an error
steel meadow
#

This also works for variables

cedar crest
#

tho you'll have to add the event as a param

steep shadow
#

its my plan

#

I think

#

if I put global.stringamount and this

#

hmmmm

cedar crest
#

it will work, but as I said

drifting timberBOT
#

[Quote ➤](#1145814135758655628 message) tho you'll have to add the event as an argument

cedar crest
#

but for recipes, you generally shouldn't need to use global

#

you can just:

#

??tips

drifting timberBOT
# cedar crest ??tips

Currently, you can't use import/export in KubeJS. However, variables defined in your scripts instead get exposed to all of the scripts of that type. For example:

//priority: 10
let myList = [2, 8, 7]
console.log(myList) //[2, 8, 7]
//priority: 100
console.log(myList) // this will not work
myList.push(82)
console.log(myList) //[2, 8, 7, 82]
cedar crest
#

we do have macros for everything

steep shadow
#

wait explain me this better

steel meadow
#

so all function you create in one Server Script will be accessable in all Serverscripts as Long it was loaded first

steep shadow
#

I see

#

I'll make a global function on server script just to test

#
global.stringmeshchances = 'Array(amount|| 1).fill({chance: defaultchance, mesh: 'string'})'```
#

if I do this

#

can I insert it here?

#

ok ill t ry

#

dont need to macro

steep shadow
#

I'm trying to make the array a function

steel meadow
steep shadow
#

the defaultchance and amount did grayed

steel meadow
#

Also you don't need global If you only do recipes in Server scripts

cedar crest
steel meadow
#

yeah

steep shadow
#

I didnt understood what you meant

cedar crest
#

thanks gnome heh

steep shadow
#

I do have a let here

#

the stringmeshrepeat

cedar crest
steep shadow
#

but if I try to put it on another js it dont work

cedar crest
#

what part fo you not understand?

cedar crest
drifting timberBOT
# cedar crest ??neversay

Never say 'it crashed', 'it errored' or 'it didn't work' without providing the full error message/crash report!

steep shadow
cedar crest
steep shadow
#

some things, when I start typing they appear

#

this doesnt

cedar crest
steep shadow
#

oh wait

steel meadow
#

for the function you would need to do let

let stringmeshchances = (chance, times) => {
return Array(amount|| 1).fill({chance: chance, mesh: 'string'})}
cedar crest
drifting timberBOT
# cedar crest ??codeblock

You can write your code in a codeblock by typing it between the codeblock delimiters:

```js :arrow_left:

ServerEvents.recipes(event => {
event.smelting('minecraft:glass', '#forge:sand').xp(.1)
})

``` :arrow_left:

As an example, :arrow_up: will look like this:

ServerEvents.recipes(event => {
  event.smelting('minecraft:glass', '#forge:sand').xp(.1)
})
steel meadow
#

Sorry

steep shadow
#

wait

steel meadow
#

Mr Always remember codeblock

steep shadow
#

if I put this whole block on the functions script

#

this will work fine here?

cedar crest
#

that's the scope heh

livid flower
cedar crest
#

you need to put it oustide of any event and add the event as a param

steep shadow
#

do I need this?

ServerEvents.recipes(event => {```
cedar crest
#

sigh

#

add the event as a param

steep shadow
#

is this an yes?

cedar crest
#

I've said it 3 times by now

cedar crest
steep shadow
#

(I still didnt discovered how)

livid flower
#

change your definition to

let stringmeshrepeat = (event, input, output, defaultchance, amount) => {...}

and then add the event when you call it too

#

replace the {...} with your actual thing i couldnt copy and paste from an image

steel meadow
#

^^ and then call it with stringmeshrepeat(event, ...)

steep shadow
#

ohhhh the event needed to be inside it

#

THATS A PARAMETER

livid flower
#

yeah it doesn't know what event is inside the function

livid flower
steep shadow
#

yeah, this is what I didnt understood

#

I think I made a loop

#

its crashing

#

do I need the event here?

livid flower
#

yeah you need it as a parameter so that the function can use it to call event.recipes

steep shadow
drifting timberBOT
#

Paste version of crash-2023-08-30_17.52.38-client.txt from @steep shadow

steep shadow
#

why did it crashed, then?

steel meadow
#

Send kubejs server Log instead

steep shadow
drifting timberBOT
#

Paste version of server.log from @steep shadow

livid flower
#

you haven't got rid of the unneccessary .ignoreNBT() calls yet

steep shadow
#

I thought only the ones in damage thing werent needed

#

anyways one problem at a time

mossy hearth
#

are you trying to learn how to code or memorise every output

livid flower
#

do you have any randomizers in your scripts

steep shadow
#

no

livid flower
#

that seems to be the main problem

steep shadow
#

im almost giving up in making it a variable and just doing it manually for all meshes

#

I do feel so dumb

steep shadow
#

@livid flower

drifting timberBOT
#

Paste version of server.log from @steep shadow

steep shadow
drifting timberBOT
#

Paste version of meshString.js from @steep shadow

steep shadow
#

it says that sieve with 8 arguments cant be find

#

something is missing

#
ServerEvents.recipes(event => {
    
        function stringmesh (input, output, defaultchance, flintchance, ironchance, diamondchance, emeraldchance, netheritechance){
            event.recipes.exnihilosequentia.sieve(input, output, [
                {
                    chance: defaultchance,
                    mesh: 'string'
                },{
                    chance: flintchance || 0.0,
                    mesh: 'flint'
                },{
                    chance: ironchance || 0.0,
                    mesh: 'iron'
                },{
                    chance: diamondchance || 0.0,
                    mesh: 'diamond'
                },{
                    chance: emeraldchance || 0.0,
                    mesh: 'emerald'
                },{
                    chance: netheritechance || 0.0,
                    mesh: 'netherite'
                },
                ])}```
#

here it used to work

steep shadow
#

what? 😭

#

my brain is melted at this point

#

I THINK I GOT IT

#

no it didnt worked

steep shadow
#

its damn hard

steep shadow
#

hey @coral violet

#

how can I get this specific ID?

#

I want to make it output in a recipe

coral violet
#

take it in your hand

#

run /kubejs_hand

steep shadow
#

ohhhh

#

cool

coral violet
#

itll print an Item.of() containing the id and nbt

steep shadow
#

Item.of('productivebees:stone_chip', '{productivebees_woodtype:"minecraft:dirt"}')

coral violet
#

👍

#

just use that anywhere where you need the item

steep shadow
#

can I just paste this on my sieve script?

coral violet
#

yea

steep shadow
#

this feature is very cool

#

I have forgot it

#

the recipe didnt worked, but it didnt showed any errors

drifting timberBOT
#

Paste version of meshString.js from @steep shadow

steep shadow
#

@coral violet

coral violet
#

idk

#

looks fine

#

well idk what this does

steep shadow
#

it basically does control c control v

#

so I can control how many times the recipe can be outputed

steep shadow
#

but without NBT

#

just saw it

coral violet
#

oh hm

steep shadow
#

maybe using the output var does eliminates nbts entirely?

mossy hearth
#

I have no idea whats going on here

#

3am not my time to think

steep shadow
#

ok so

#

I made 2 shapeless recipes

#

one to turn stone chip into dirt chip, and one to turn dirt chip into stone chip

#

the one that had the dirt chip (the one that uses tags) didnt worked

#

and the one that is working, it uses dirt chips to make stone chips

#

it is being read as stone chip

#
 Item.of('productivebees:stone_chip', '{productivebees_woodtype:"minecraft:dirt"}'```
#

something here is wrong

livid flower
#

do kubejs hand when holding the item you want

steep shadow
#

but it is exactly the tag that the kubejs gave me

#

Item.of('productivebees:stone_chip', '{productivebees_woodtype:"minecraft:dirt"}')

livid flower
#

hmm

#

you dont have it closed in the codeblock

#

is it like that in your script as well

steep shadow
#

nop

drifting timberBOT
#

Paste version of shapeless_recipes.js, meshString.js from @steep shadow

steep shadow
#

I'm using the chipped dirt in both two

#

and its comming out chipped stone

wispy tulip
#

whats the problem rn

steep shadow
#

im trying to make this come out of a sieve

#

but its being replaced for the without NBT version

#

I did the /kubejs hand to see it NBT

steep shadow
#

no errors are being telled on the chat

drifting timberBOT
#

Paste version of server.log from @steep shadow

steep shadow
#

this could be hardcoded to this somehow, but I doubt it

wispy tulip
#

maybe ex niihilio doesnt support nbt

steep shadow
#

I tried making a shapeless version

wispy tulip
#

huh

steep shadow
#

dirt chip to stone chip

#

stone chip to dirt chip

#

the craft that outputs dirt (NBT) doesnt works

#

the one that uses dirt as input transformed into stone

#

I tried to explain this the best as I could

silent sage
#

Uh, I'm pretty sure NBT never used to be quoted try Item.of('productivebees:stone_chip', {productivebees_woodtype:"minecraft:dirt"})

steep shadow
#

ohhhh

wispy tulip
#

that would make sense

steep shadow
#

and it crashed

#

fuck

wispy tulip
#

send log

#

or report

steep shadow
drifting timberBOT
#

Paste version of server.log from @steep shadow

steep shadow
drifting timberBOT
#

Paste version of crash-2023-08-30_21.14.58-client.txt from @steep shadow

steep shadow
#

and it didnt worked

steep shadow
#

I'll go take a bath

silent sage
#

Not gonna like, everything that I'm reading in their source code indicates that syntax should be correct

Perhaps compare a real one and an artificial one in code to see if there's a discrepancy between them?

Maybe add the NBT tag that renames items?

#

For whatever reason stone_chip inherits from wood_chip

So it was roundabout to double check that productivebees_woodtype was the proper key - but it is

steep shadow
#

and then made the Quarry

steep shadow
#

didnt found anything on the kubejs wiki

livid flower
#

the kubejs wiki wont have anything about vanilla nbt tags

#
Item.of(ITEM, {display:{Name:STRING,Lore:[STRING,STRING, ...],color:INT}})
steep shadow
#

which type of startup event I put htis?

livid flower
steep shadow
#

registry?

livid flower
#

its nbt

#

put it as an item result or something

#

it only effects that specific itemstack

#

if you want to rename items completely use resourcepacks

steep shadow
# livid flower its nbt
Item.of('productivebees:stone_chip', {productivebees_woodtype:"minecraft:dirt"}, {display:{productivebees:dirt_chip})```
#

is this good?

livid flower
#

combine those last two

#

and no second Item.of

steep shadow
#

it got on accident with ctrl C haha

livid flower
#
Item.of( 'productivebees:stone_chip', {productivebees_woodtype:"minecraft:dirt", display:{Name:{"productivebees:dirt_chip"}})
steep shadow
#

the Name: is needed?

livid flower
#

and you need the Name bit

#

yea

#

and it needs to be a string also

steep shadow
#

the vscode

livid flower
#

ok

steep shadow
#

Unterminated String Literal

livid flower
#

yeah

#

where

steep shadow
livid flower
#

get rid of the quote before the curly brace containing the woodtype

#

notice how that isn't in my code snippet

steep shadow
#

now it says ":" expected

atomic bear
#

change Name:{"productivebees:dirt_chip"} to Name:"productivebees:dirt_chip"

#

i tihnk

livid flower
#

oh duh

steep shadow
#

still missing :

livid flower
#

yeah do what squoshi said

steep shadow
#

no now it says , expected

#
Item.of('productivebees:stone_chip', {productivebees_woodtype:"minecraft:dirt", display:{Name:"productivebees:dirt_chip"})```
#

its like this

atomic bear
#

missing a }

#

at the end behind the parenthesis

warm fossil
#

How is this thread nearly 2,000 messages long…

steep shadow
#

ok time to try

#

it reloaded with no errors...

steep shadow
livid flower
steep shadow
warm fossil
steep shadow
livid flower
#

god imagine organizing things

warm fossil
#

Odd, gnome didn’t reply there

#

@drifting timber do your job nerd

steep shadow
drifting timberBOT
livid flower
#

what if gnome is breaking here because of the thead length or something

#

that would be funny

steep shadow
livid flower
#

anyways @steep shadow send the crash log when it crashes instead of the kjs log

steep shadow
#

didnt worked

#

WHY GOD WHY

#
  ServerEvents.recipes(event =>{

    Item.of('productivebees:stone_chip', {productivebees_woodtype:"minecraft:dirt", display:{Name:"productivebees:dirt_chip"}})
})```
#

Rip

#

wait

#

in an recipe, isnt the first one the output?

livid flower
#

usually

livid flower
#

what is this supposed to do

steep shadow
#

WAIT

#

now it makes sense

#

ill put it on my sieve recipe-

#

nope

#

still stone chips

#

damn

mossy hearth
#

you still up?

steep shadow
#

hi

mossy hearth
#

hii :>

steep shadow
#

a fren tried this and it didn't worked

#

{
'type': 'forge:nbt',
'item': 'productivebees:stone_chip',
'nbt': {
'Id': '{productivebees_woodtype:"minecraft:dirt"}'
},
}

#

I'm on school now :(

mossy hearth
#

what are you trying to do?

steep shadow
#

output

#

instead is outputting this

#

the NBT tag isn't working for some reason

#

idk why

#

maybe we're writing it wrong

#
 Item.of('productivebees:stone_chip', '{productivebees_woodtype:"minecraft:dirt"}'```
#

this is what the /kubejs hand gave me

mossy hearth
#

wth

#

you don't put the second part in comas

steep shadow
#

nbt tags doesn't need

mossy hearth
#
 Item.of('productivebees:stone_chip', {productivebees_woodtype:"minecraft:dirt"})
steep shadow
#

hi donald

mossy hearth
#

oh wait its 1.19

cedar crest
steep shadow
cedar crest
mossy hearth
#

you don't put nbt in ""

cedar crest
cedar crest
steep shadow
#

you do or don't

#

I'm confused

mossy hearth
#

did it change from 1.18?

cedar crest
drifting timberBOT
#
lat

[Quote ➤](#1109891547979321414 message) pls dont use object verison of nbt

cedar crest
#

just saying heh

steep shadow
#

I'm not home to see

mossy hearth
steep shadow
#

and everything didn't worked so I'm worried

mossy hearth
#

well nbt without "" works for me

steep shadow
cedar crest
mossy hearth
#

well it doesnt work with them

#

gives me an error

#

3950 errors to be exact XD

steep shadow
#

that's

#

wha

mossy hearth
drifting timberBOT
#

[Quote ➤](#off-topic message)

mossy hearth
#

holy shit

cedar crest
steep shadow
#

HOLY

mossy hearth
#

squat grow crashes my game ;-;

#

ima make a better version then

#

what JDK SA should i choose

cedar crest
mossy hearth
#

i did

#

im making a better one now

#

my modpack got 300 downloads with broken squat grow :c

#

should have not made this update

steep shadow
#

sad

mossy hearth
steep shadow
mossy hearth
#

shit

steep shadow
#

cool!!!

mossy hearth
#

thank you :>

steep shadow
#

my friend tried

mossy hearth
steep shadow
#
{
        'type': 'forge:nbt',
                    'item': 'productivebees:stone_chip',
                    'nbt': {
                        'Id': '{productivebees_woodtype:"minecraft:dirt"}'
                        },
        }```
#

and it also didn't

mossy hearth
#

hm

steep shadow
mossy hearth
#

exported one weights 3mb

steep shadow
#

just need productive bees, exnihilo sequentia, kube js, some version of it that can alterate exnihilo recipes, probejs and it's dependencies

steep shadow
mossy hearth
#

k give me a second

#

oh alr i forgot

steep shadow
#

I'll make a github today

#

so I can just pass it to people

mossy hearth
#

okay nice

#

forgot how good is github

#

i'll make mine to share scripts

#

(aka a mess of random code)

cedar crest
#

and that is why you make new tickets heh

mossy hearth
#

why

#

this is fine

mossy hearth
#

got the item.of right

steep shadow
#

YOOOOO

#

HOW

#

WHAT

#

SHOWNMEEEE

mossy hearth
#
ServerEvents.recipes(event => {
    event.shapeless(Item.of('productivebees:stone_chip', {productivebees_woodtype:"minecraft:dirt"}), ["minecraft:dirt"])
})
#

now time to make it with ex nihlo

mossy hearth
cedar crest
#

you were warned

mossy hearth
#

o_o

steep shadow
#
Item.of('productivebees:stone_chip', {productivebees_woodtype:"minecraft:dirt"})
#
Item.of('productivebees:stone_chip', {productivebees_woodtype:"minecraft:dirt"})
#

what's the difference?

#

really

steep shadow
#

WHERE IS THE DIFFERENCE

cedar crest
mossy hearth
#

well i don't see any so there is something about the ex nihilo part

steep shadow
#

WHY DID IT WORKED

steep shadow
#

and vice versa

cedar crest
#

ex nihilo issue heh

steep shadow
#

in shapeless

#

it didn't worked

cedar crest
steep shadow
cedar crest
#

but well

drifting timberBOT
#
lat

[Quote ➤](#1109891547979321414 message) pls dont use object verison of nbt

cedar crest
mossy hearth
#

why tho

#

whats wrong with it

steep shadow
#

morsak

#

morsuk

mossy hearth
#

looks better in VS code more colors

steep shadow
drifting timberBOT
#

Paste version of meshString.js from @steep shadow

steep shadow
#

my sieve js

mossy hearth
mossy hearth
steep shadow
#

try to put the dirt chip inside

mossy hearth
#

k give me a second

steep shadow
#

to make it multiply it's chances

cedar crest
#

??editor

drifting timberBOT
# cedar crest ??editor

If you're working with KubeJS scripts, configuration 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 with finding errors in your code faster and also gives you neat features like syntax highlighting, automatic formatting, et cetera! We recommend Visual Studio Code, since it's lightweight(-ish) and works very well with JavaScript files out-of-the-box.

cedar crest
steep shadow
#

I use vscode

mossy hearth
#

do you use probeJS?

steep shadow
#

yes

junior herald
#

I use Webstorm hih

mossy hearth
#

does it work?

steep shadow
#

did you made a dump?

mossy hearth
#

ofc i did

junior herald
steep shadow
#

hi tazz

cedar crest
mossy hearth
#

"pure comedy"

steep shadow
#

no

cedar crest
steep shadow
#

it becomes stone chip

cedar crest
#

you completely didn't listen to me despair

steep shadow
junior herald
#

do u need a probe of ur dump Concern

steep shadow
cedar crest
#

you just have so bad formatting that I thought that you didn't heh

steep shadow
#

:(

#

hi (sorry for bad english)

#

I feel like this ^^^^

cedar crest
mossy hearth
#

sowy i don't speak england

cedar crest
#

what's with all of the useless params? hoh

steep shadow
mossy hearth
#

wdym

cedar crest
steep shadow
cedar crest
steep shadow
#

and so on

cedar crest
#

powiedz że masz >:(

mossy hearth
cedar crest
#

czemu 💀

steep shadow
#

but I'd need to make all arrays situational and I just gave up

mossy hearth
#

no a co ma być

steep shadow
#

now only the string are working

junior herald
#

oi

cedar crest
steep shadow
#

TAZZ BRAZILIAN CONFIRMED

mossy hearth
#

a czekaj tu jest o szacunku a nie o problemie XD

cedar crest
#

nie rozumiem

junior herald
#

#1 🇬🇧 English only!

junior herald
#

MODS!

cedar crest
#

ty z polski?

mossy hearth
#

no tak

cedar crest
#

ok

mossy hearth
#

znaczy teraz już z polski bo sie od 2 lat ucze

steep shadow
#

this will go to my tumble

cedar crest
steep shadow
#

ye

cedar crest
#

fajnie heh

steep shadow
#

because there were too many arguments for it to work

cedar crest
steep shadow
#

but now I'm working on the dirt chip recipe

cedar crest
mossy hearth
#

¯_(ツ)_/¯

steep shadow
#

morsuk is actually

cedar crest
#

of which only 4 have an actual use hoh

mossy hearth
steep shadow
#

idk morsuk idk 😭

mossy hearth
#

oh wait nvm i didnt see the message

cedar crest
steep shadow
#

if this dont work ill cry

mossy hearth
cedar crest
#

to na początku myślałem że jesteś z polski xD