Support Tickets
This page is still WIP!
error, might have something to do with 1.18 -> 1.19.2 compatability rotating a block
TabbyIshProto: [04:03:47] [ERROR] ! flint_tools/bamboo/block_of_bamboo.js#5: Error while modifying BlockState placement of kubejs:bamboo_block: dev.latvian.mods.rhino.EcmaError: TypeError: Cannot find function set(net.minecraft.world.level.block.state.properties.EnumProperty,java.lang.Enum) in object Block{kubejs:bamboo_block}[axis=x].
Hide specific recipes from rei without hiding ingredients.
Smartboy: I have 7 smeltery recipes for the different variants and I want to hide all but one of them. How can I do that?
making a door / trapdoor AND block .property() questions, (eg: directional block like a log)
TabbyIshProto: hi, im trying to for 1:
Listening for GunFiredEvent in CGM/Accessing PMMO data from current player?
Moonlit Eclipse (PING ME): This is the script I have so far, what I'm hoping to do is to eventually gate guns from being used unless you have the correct level. (Pmmo is unable to do this alone atm, trying to figure out a work around).
Convert block upon explosion
backslashes: I would like a stone block to be converted into a cobblestone block when in range of an explosion (by TNT, creeper, etc). To be clear, I mean a stone block placed in the world, *not* an item entity. Is this possible?
Canteen for Thirst mods
Granti: Hello is there a way to create items for TaN/Thirst was Remade to drink? with different fills of water
Trouble passing player position from the client to the server
Zilver: I've gotten part of network events figured out, but I can't figure out why the player's position isn't being passed to the server. It prints fine on the client, but prints undefined on the server, so something is being lost in translation when sendData is used...
Random rhino crash
Rimevel: Got the crash in the attached log randomly when running around. Seems rhino related due to the format of the crash report.
EntityEvents.death get mob drops
3dEADto: Is it possible to get the drops a mob would drop in the .death event ?
Optional Argument for console.log to choose which log file it outputs to.
Moonlit Eclipse (PING ME): Is it possible to add a optional argument for console.log?
Trying to add fluid nbt to arboreal extractor recipe making it not show up.
Smartboy: The recipe instantly stops working the moment I try to change the nbt value. If remove the nbt object or rename it to something invalid then the recipe starts working as uncraftable potion.
Can't hide modded items in JEI
ααα: Here's the .js file from my client scripts folder.
can kjs 1.20 forge edit worldgen
amo [πβ]: trying to fuck with terrafirmacraft worldgen
Rather advanced block question
DragonMaster: 2 things: Is it possible to make blocks with custom models using kubejs?
file name to item name
Cristal_gem: i want to make a script that only requires the file item name and automatically changes it to the display name
Disable ALL Structures
TheRandomHat: As far as I can tell, every KubeJS support post on 'disabling structures' is just disabling a select few structures. I want to know if there's a quicker solution to disabling all structures (Vanilla & Modded) from generating in a world than manually changing each individual structure to only generate in a non-existent biome.
block.right click particles
Just_Dude.It: I'm trying to replace one block to another one. Is there a way to spawn particles like this block was destroyed
Adding/removing items to/from REI at runtime without REI Runtime
squoshi, idiot (@): First post in a while, I've moved to 1.20.1.
hijacking or disabling chorus fruit teleport?
ankiolyne π’: hallo. just wondering how i might go about doing so. googled ways to do it and someone on reddit was like 'you can do this with kubejs <:angel:921194409930924092>' but didn't elaborate
Reading and writing files other than json
Aidan: I already know about JsonIO, but are there any other built in ways to read and write files of any type?
T.H.I.S. and kubejs interaction
captain.cabbage: T.H.I.S. = Totally Harmonious Item Stages
Editing IE multiblocks
denis lrd: There are any variants how to edit nbt of multiblocks structures from IE with kubeJs?
How do I remove end portal frames from world generation?
Mathwiz617: I've tried a few things based on the wiki example of removing iron ore:
Copper Oxidisation in KubeJS
droshux: Is it possible to create custom blocks that have Oxidisation stages like vanilla copper?
! example.js#3: Error loading KubeJS script: server_scripts:example.js': ReferenceError: "event"
bad name: idk what happend, the kube say "! example.js#3: Error loading KubeJS script: server_scripts:example.js': ReferenceError: "event" is not defined." but I even asked chat gpt and they couldn't tell me why (I'm not an expert in java) https://pastebin.com/xqkNtQLG
JEIEvents.hideFluids() does not work with event.hide([]) but works with event.hide() individually
Celeste, isekai'd as Furina: This works:
Crash on adding ProbeJS
Sophia: When adding ProbeJS to my mods, the game crashes before even displaying a window.
How to revert modifications made to an item.
gouwt: I used a script to remove durability from all items, breaking create's super glue in the process. (Apprently anything that messes with the durability of super glue breaks it)
Very quick question....
Dom.: You know how there is the BlockEvents such as RIGHT_CLICKED and BROKEN, How can you detect a player is inside the block or like touching it
how to remove a specific recipe AND-wise
TabbyIshProto: am currently trying to remove a recipe from a mod that nerfs stick making, but by doing so it removes a different recipe which it shouldnt
Is it posssible to use ore.size and .count together.
pringl: Im asking bc i would like a large spread of ores in a chunk. but then only have them in some chunks. Ig kinda like the large vanilla veins.
Remove item 1.19.2 Fabric + REMOVE IN JEI ?
Anonymous: Looking for help how to remove items using KubeJS in 1.19.2 Fabric
Its possible to do a "backpack"?
Pedru HB: I creating currency system with kubejs, its possible do wallets? likes a hopper interface.
why is minecraft crashing when trying to create a custom ore?
pringl: ??neversay
Making Players take Damage when they come in Contact with Blocks/Fluids
uunfunnyguy: I Just need a Simple Code that Damages the Player when they come into Contact with a Block/Fluid but i cant find anything on the Wiki nor does ChatGPT know how to do it Correctly
Error with mekanism metallutgic infusing
denis lrd: Some days ago, i asked about this recipe, somebody helped me in that post, but it still is no working
For custom ore generation, how do i define a minimum vein size.
pringl: use an array
Are world gen events server or startup scripts?
pringl: This is a list of all the events. Choose your version.
Is it possible to put an overlay on screen?
loufu: Similar to how powdered snow works.
unable to load model
DSans404: When Im running the game, some texture is missing. But when im running again, it turn to normal. How to fix that problem
Is there a way to have all entities in a 30 block radius target another entity?
Ahowell610: So I am trying to implement a "Protection Sphere" item and when you use it you are given the tag "protected". I am hoping to make it so when the protected player is hurt by a monster then all entities in a 30 block radius will target the monster to protect the player. I was thinking that I could loop through those entities and have them target the monster but I am not sure if it would work/I dont know how to do it. I have a rough script that I wrote but I am not sure how to continue.
Help with quickly and easily modifying all vanilla spawning chests' loot tables
Anonymous: How can I do this using LootJS? It seems like a very long and tedious process as there are manyyy items I'm trying to add to the loot tables of vanilla spawning chests.
someone here know how to set noise settings to make world smoother but not flat?
pund755: I tried to create a world where it was smooth, with no steep climbs. but fail i need help
Sound replacing?
Apotheosis: I was wondering if there was a method to replace the sounds an item makes when used? I have a sword but I wanted to replace the 'swing' and 'hit' noises that are made.
Struggling with removing recipes
Nanna: Im new to javascript and Visual studio code shows no issues, I have reloaded the scripts and rebooted MC but it just doesn't work
Creating an infinite fluid source and Resource pack help
Ducko: I'm trying to solve two issues. One, how do I create a fluid that I can make infinite like water. Second is I have a sound that isn't playing. When I run the /playsound command the subtitle shows up but not the sound
Quark Trowel behavior?
kragnoth: I'd imagine it's possible to replicate the quark trowel in kubejs, any suggestions on places to look into implementing this in a neat and clean fashion?
Rarity not defined
Imperial Nerfherder: I am editing a 16.5 startup into a 19.2 for a worldpack and i am NOT a coder. Up front, the situation is you create an additional argument i replace ).type( with , and speak fluent enough codemonkey i can follow the conversation and not ask too many stupid questions.
Trying to register a skeleton entity clone
sz: So, based on the success of registering a clone of the arrow entity, i've taken a stab at doing the same thing with a mob. Unsurprisingly, it's not quite there yet. I tried a skeleton.
REI Support
informatjonas: Is it possible to add and/or remove recipes from the REI during runtime?
how do i make blocks placement like logs
Theo Morris: ```StartupEvents.registry('block', event => {
Potion effect when stepping on a block.
Ice: I want to give the entity that stands on whatever block to get a potion effect.
How can I make a pool be affected by Looting without random chance?
Yumm: The code below doesn't seem to work, at least according to JER.
Changing file contents?
Valentine π: I really doubt the possibility of this but would it be possible to have an item boot you out of the game and change the games title through the config file of fancymenu so its different on reboot
Can i somehow edit how multiblocked from Immersive Engineering is built?
denis lrd: I need to replace steel blocks from immersive to my own steel blocks, but multiblocks just dont see them
i may be blind
mayojar_: i'm trying to figure out a way to disable specific items (projecte's stuff is... well, yk) and i can't find a post in <#1048591172165189632> that seemed to work. could somebody please point me to some such post if they know of one?
Recipe removal by regex and datapacking recipes causing minecraft:barrier to be obtainable
Jebraltar: I've run into an interesting bug that doesn't throw any errors that I've seen but does make the minecraft:barrier obtainable. I'm removing one mod's shaped recipes by output via regex and adding recipes to a different mod with JSON files in the data folder. Somehow, this is combining to affect recipes that use tags that I have not added nor modified with KubeJS.
Learning how to create's sequenced assembly
Lvuna: I'm trying to learn sequenced assembly but it seems like the filling is not working. I think it's because of the fluid. but I'm not sure
old mod to kubejs, lightning strike on crop growth?
kragnoth: Is it possible to tie into the crop growth tick event and make lightning have a chance to strike where it grew if a chunk is loaded? I used to do this as a forge mod, but seems simple enough to implement as kubejs code.
ClientEvents.init() does not get ignored in startup_scripts in a server environment
Celeste, isekai'd as Furina: Just ran into this issue when building my server pack and trying to verify that the server is able to boot up.
Redstone Texture Changes
Fatefulezra: Im trying to make it so if i power my block it changes texture
sleep/wait function
ekilord: i'm making an effect with particles that would highlight the edges of a block slowly. the problem is that i don't want this to happen instantly, rather slowly starting from the corners. how would i make it so the next line of code wouldn't run until let's say 1 second has passed? thanks!
Magnetic Blocks
Fatefulezra: im trying to make 3 magnet blocks one that is always active one that is only active if it has a redstone input and one that will let you select a spesific item/entity (with gui ill setup later) to pull and the the opposite where they push them away but i have no clue how to do this
It's not bug, it's a fueature.
MDReal: Why does this exist in the support thread?
Lava + Water type block creation idk what to call it
Nik: I want to make a different recipes for when liquids come in contact with lava. how can i do that? (i already got a liquid but when it comes in contact with lava it doesnt do anything and i want it to make a block)
Kubejs dimension properties?
rOberon: Can Kubejs modify properties of a dimension?
Recipe replaceInput with empty slot
7d_aka_w1zz: How to make below code work? I want to replace furnace recipe's middle slot with redstone.
Adding trinkets with Trinkets (Fabric)
Sasha2294 (ΠΠ»Π΅ΠΊΡΠ°Π½Π΄Ρ): Hello, I would like to add my own trinket that can be worn in the trinket slot. Please write example scripts on how this can be done. I use this mod: https://www.curseforge.com/minecraft/mc-mods/trinkets
Custom Death Message (1.18)
Leah: Hi, I'm trying to kill the player with a custom death message. The instructions I've found so far were kind of vague (esp for this version) and what I could figure out from piecing together things from different threads didn't exactly work for me, but it looks like I need to use reflection to call damage source. I tried this but I can't seem to get it to work (The death message is in the kubejs assets/kubejs/lang folder)
How do I prevent this mass log spam mess?
ΟΖuΙWΙΉΗΚooβ²: So I have a script that makes Silver swords do extra damage to Skeletons. However, the Entity Hurt event seems to continuously spam the log with these messages. How do I fix it?
can I replace just a model by entity name?
Ryanei dy Syliante: so... I'm trying to make a resource pack/replace the quark frog model.
Make a trinket with curios
loufu: is it possible to make a trinket that can be worn with curios?
Create mod mixing
Fatefulezra: Im trying to make the orb of origin craftable with create mod mixing but i dont know how kubejs and create work i also want to add a ponder for the orb
How to get the item in the player's hand in the block.rightClicked event?
Kito (Ping me): I'm using the block.rightClicked event and I need to know what item is in the player's hand, how do I do this?
spout
QiyRabão: Hi, I'm trying to create a recipe for an item from the mob grinding utils mod, using spout, but the recipe doesn't appear on the screen, and I don't know what's going wrong.
What's the 1.18.2 Kubejs Event for Respawn?
Ki-Tan: The respawn event is missing from the legacy wiki
change the recipes of an existing mod
MR Pinguin: how can i change the recipies of a item in an existing mod (i got the permission from the owner)
how do i add recipes to my modpack
β‘Emilyβ‘πΈ: how would i structure this in VSC?
help with custom recipe
Theo Morris: can someone help me with making a new recipe for the create enchantment industry disenchanter
Make a modded fluid non-infinite?
backslashes: Is it possible to make a modded liquid *not* generate a new source block between 2 source blocks?
NoIA{b1}/imortal to specific mobs during certain gamestage
Black Wolf: i want to make a few mobs be idle and imortal during a gamestage, using majruz difficulty
custom armor trim materials?
backslashes: can kube be used to add custom armor trim materials?
Problem with apllayng effect to my item
El Mahat: Hello i try to add an effect to my item but it doesn't work and i don't know why (i try with the test wrote on the wiki)
Immersive engineering - place entire machine at once
kragnoth: Is there a way to override right click on block in air behavior (well onto a block) and place an entire immersive engineering machine? I've always loved the mod, but the machine building is tedious so I end up just going with other mods to do the same behavior in alot of cases. The only machines I regligiously build are the stamping machine, because it's all my puny brain can handle at once visually.
side/script type loading flag
ArugChief (@β): `//side: ` a flag like requires that specifies if this should load only on the physical `client`, physical`server` or if it should load on `both`. `both` would be the default. if a script tries to load on the wrong side then it will silently not load, just like existing requires and ignore.
can you add new factions to the game using kubejs?
Sketano: what the title says
Need a tag for hostile mobs
Kira Starr: Making a quest in FTB quests and I need to make a script or something with KubeJS that makes it so that killing any hostile mob completes the quest. Its only letting me select one hostile mob, like a zombie or a skeleton. I want the quest to be completed if ANY hostile mob is killed
How would I create an in world recipe for a block touching water?
WiiSafetyManual: I want to have any dirt touching water be turned into mud, kind of like how concrete powder works, but I don't know how. I know lychee exists but I don't think they have this type of recipe
Scheduled commands
LessthanZach: This code ran fine before updating to 6.1. I've updated the OnEvent stuff and changed the way the commands are handled, get no errors but none of the commands work.
Simply adding a tagged item to a loot pool no longer works in 1.20
RQ: The script:
modifyResult with Create recipes?
backslashes: Is it possible to use modifyResult with create/custom recipes?
tags, regex, and skill issue
800020h: `/chipped:starry.*terracotta/` matches `/chipped:starry.*glazed_terracotta/`
Elder guardian overlay
loufu: Any way to put an image over the screen like the elder guardian effect?