Support Tickets
This page is still WIP!
anyone know how to check if the chat is open?
Deaded: trying to change the position of a hud element based on if the chat is open but i dont know how to check if the chat is open or not, anyone got any idea?
Add ores block tag to every ore that has the ore item tag
Salad: Hello, i know how to do scripts like "add item tag to every item that has this other item tag" but im not sure how to do it when i want to add block tags to blocks that have a item tag
Change what items an enchant can be applied to
Speedy: change an enchant which can normally be applied to all armors and tools only able to be applied to tools with "x" tag
Right click event to turn item you're holding into a block on the ground
Lens: Trying to make a right click event where when the player is holding an iron ingot in their hand and looking at any block while they right click, it places a custom block I made down and removes that iron ingot from their inventory.
Help with creating non cubic custom block
Lens: So I've made a block in blockbench, which is smaller than a cube and don't know how to tell kubejs the dimensions of it for its collision to apply properly. From what I can tell on the wiki I will need one or multiple .box(x0, y0, z0, x1, y1, z1, boolean) in my startup event but don't know how I'd find that. Here is my blocks model .json file generated by blockbench:
how to place blocks with facing states
FutureLin: I want to try placing a block with a facing state, but I don't know how to use setValue()
Can I get the hit blocks of an explosion?
duck: I want to replace the outer blocks from the center of the explosion with other variants for example sandstone turns into sand and so on.
How do I add kubejs to gradle for 1.18.2
Diztend: I can't find on https://maven.latvian.dev/#/releases/dev/latvian/mods/kubejs-fabric the sources for 1802 version
Get rid of the name for living entities [EntityJs]
Jaofumi: i want to know if its possible to hide the name of a entityjs:living entity
Spawning particles at a dead entity coordinates
lushtub: The title says it. Trying to spawn particles at the position an entity dies.
.damageIngredient() behavior in 1.18.2
Sean Lenard B.: I'm curious about the fact that, in my observations:
are these safe to remove?
Gallito: do I need to keep these installed in the modpack in order to run the custom scripts I made?
hide sophisticated storage dyed recipes from EMI
Altep: Hello, i've been looking at KubeJS for the past hour to try to remove them, but i cant figure out a way to remove the dyed variant from EMI
Disable offhand
db3k: Not sure this is the right kind of mod for this, but would it be possible with kubejs to entirely disable the functionality of the offhand? IE, prevent the player from putting anything into the slot, and if an item is placed into it then it either gets returned to the inventory or dropped if there's no room?
Replacing ingredient in Farmer's Delight cooking recipe
Desmo: I'm trying to add some salt compatibility to my modpack, i fixed the crafting recipes with event.replaceInput, but I'm not sure how to fix the cooking pot ones. The pack is 1.21.1 Neoforge
Trying to save array to persistent data and im getting an error
DaddySpin: ```js
EntityJS projectile model
duck: do I have to use geckolib for making a projectile entity with a model?
change what an enchant is applicable to
Speedy: enchant normally works on armor and tools, but i want to make it only work on tools(a tag)
Is it possible to make custom item with texture from texture pack?
Pitersonix: I want to use textures from CIT texture pack and make entire new item.
Help me with the Texture on my custom ITEMS
ΠΠ½Π΄ΡΡ: When I loaded minecraft, I have seen the problem. The problem is non texture although I put in texture/item in package kubejs what amma doing wrong?
cancel bucket fill
Veruty: so i have a fluid without a bucket item, but when i click it with bucket it just replaces fluid with air, so i made a client script that cancels rc if bucket clicked on certain blocks
How does playsound work on NeoForge 1.21.1?
Scarlet Fury Eats ∞ Waffles: I've been wracking my brain trying to figure this out for my server side block events or item events
How to reduce durability on Curios items
LgndTheDredgen: I'm trying to make ring items but I can't figure out how to make it detect damage the player takes to reduce it's durability
shapeless recipe with array of inputs
Diju: it's saying that a is not defined, what I did wrong?
How do I make Create recipes?
Annon: The addon does not appear to be available for Fabric 1.20.1, was wondering if there is a way to get it for this version.
is there a way to check for two of the same recipe
Qweze: ive been replacing the inputs and outputs of a lot of recipes for my modpack and some recipes now have copies of themselves. it would take way too long to remove every duplicate manually, so is there a way to do it automatically?
Issues with Texture applying with bb and kubejs
Bubbles: Texture on custom model is not applying correctly. There is overlapping glitching sides and some faces don't show texture colors.
I need help with my coding.
Cam: I'm trying to delete some recipes and then create my own recipes for different mods and vanilla Minecraft. I have tried following the example scripts and even got help looking on YouTube but when I try to reload in minecraft and I get some errors. I'm not sure what I am doing wrong.
Is it possible to change the tags of an item based off blockstate?
CCYAX: I am attempting to make a burner from create: low heated work with create: central kitchen, however it is tag based. Is it possible to only give the block the tag only when it is heated?
How to generate a loot table list?
Marcola: Im aware that you have to use scripts to generate a list of your modded loot table list, but the question is what script should i use for 1.20.1 exactly and where (pathway and folder) should i put this script?
ranks ?
chronosia: I would like to know if it is possible to make a rank system with kubejs because my mod blocks most rank mods.
Change Evolved Mekanism's Creative Tier Installer
Shugabrush: I want to change what machines the creative tier installer from Evolved Mekanism works on. Right now, I have Evolved Mekanism Extras installed, and I want the creative tier installer to work on the highest tier machines on that mod instead. How can I remove the current functionality of the creative tier installer and add my own?
replaceInput() not working with Create Recipe Sequence
Kyle: Hello, I am replacing the andesite alloy item with a new stone alloy item in my modpack. Using the replaceInput() function as shown below does not work with recipe sequence recipes. In other words, it still wants andesite alloy instead of intended stone alloy item (shown in picture). Thank you for your help.
`.replaceinput()` not working on startup
Domez The Dragon: https://github.com/KubeJS-Mods/KubeJS/issues/313
can KubeJs interact with Passive Skilltree mod?
MikihinaSann: i want to use KubeJs to see what player select skilltree or controll player upgrade skilltree
dump all items with tag in console
Fr3shlama: im quite new to all this, I would just need a list of all items with the c:ingots tag in the server console so I can work with it in crafttweaker
How to give an item to a player?
Tesohh: i am making custom drinks with their own custom items.
How to make crafting recipe check for and give crafted item NBT?
GhastingOut: ```ServerEvents.recipes(event => {
Add field in one command
Sussy Baka: How do i create a command that require to the player a argument and how i get this argument
What can you do with KubeJS on server-side only?
TomatoSoupter: I am wanting to make custom recipes and datapack stuff for a server and was wondering if I can have Kubejs installed on the server side only and have the custom recipes work
Utils.server and event.server return null on initial server load. Subsequent reloads cause no issues
MetalMint (ping to reply): I've attempted to use Lexxie's solution [here](https://discord.com/channels/303440391124942858/1337164733282779327/1337511336061698139) without any success because the `e.server` object itself is null.
Passing a Float to ImmersiveMessagesAPI
queen: I would like to use Immersive Messages for an addon on KubeJS. When following the Wiki <https://immersive.txni.dev/api> the helper API function expects a float and a string.
Changing held item size
Henry (Gremlin Mode): Not stack size, I simply would like to know how to make 2d sprite item in your hand bigger, can't find anything as to how to do that, all i can find is just item stack size :/
trying to make anvils have free rename or /rename cmd
quickdeveloper: i tried multiple ways including tryint ai to make it and no luck im on 1.18.2 forge 40.2.10 kubejs-forge-1802.5.5-build.569
Is it possible to remove all Supplementaries Bamboo Tipped Spikes recipes using kubejs?
ScaryPoltergeist: I'm trying to remove all tipped spikes recipes so I can add them all back with the exception of a blacklist. Disabling tipped spikes in the mod config isn't an option here because I still need the ones I added back to show up in JEI.
Create Recipes and Rituals not Existing
iGoonInYourWalls: I createt a new Modpack Profile and Copy and pasted everything to the new one exept some not important mods, and now they don't work in the old profile they worked now they don't
[KubeJS/Create] Intercept train assembly and retrieve its creator
pazzazzo: Hello everyone,
Override an option
1vanb: So the CMDCAM mod in its CamRun class sets mc.options.hideGui = true. I want to override it in my kubejs script by setting Client.options.hideGui = false;
Cancel emptying a bucket
Radi: So, I'm manually making a modded bucket able to fill a container from another mod, and running into an issue: the container fills just fine, but the bucket still places water. Here's my script:
Can someone explain why this outputs nothing to chat? Having issues with player.sendMessage (1.21.1)
ahmanale001: PlayerEvents.tick(event => {
How do you make simple standard leaves?
Evil Paragon: Leaves that function like leaves.
replace a certain input ingredient across all instances of non-crafting table recipe
veccyboi: kubejs version: 2001.6.5-build.7
Custom recipe with NBT data that returns one of the items used with 1 less durability not working
Π ΠΎΠΊΠ°ΠΊΠ°ΠΊΠ° Π€ΡΡΠΊΡ: //onEvent('recipes', event => {
Why can I not remove the fuel recipe for quark chests?
ScaryPoltergeist: The same script works everything else, just not quark chests for some reason.
soundevents not properly registering?
minari: so, i'm attempting to register a new block and a custom soundtype for it. i'm doing this:
csv for item_id,item display name
silask7188: i am trying to make a csv or json that lists all item ids and display names so i can have an easy lookup
Prevent Blocks from being placed 1.20.1
BigHeadGaming: New to Kube JS and java. I know how to read it and modify templates and examples and even make some of my own stuff but im struggling to solve this on my own. Im making a modpack but need to prevent certain blocks from being placed thinking BlockEvents.placed and turning it to air while the item goes to the inventory might do the trick but it doesnt really work and i dont know where to begin solving my issue on my own.
Hiding a custom head recipe
Jordo: Hello again, related to my previous post, I added ways to craft player heads, but the idea was to make it a "riddle" where you can't view the recipe _at all_ and have to figure out what objects to input based on a riddle. I can hide the player head search for JEI, but if you manage to craft at least one head, you can view the recipe for all the others by pressing the R key, I was wondering if there was a way to remove this.
PATH BLOCK interaction disable
βββββββββ: Pretty stupid question but how to do script to disable shovel interaction with blocks u can create paths with due to incompatiblity with other mods (used chatgpt, he didnt help)
Block requires tool
JaellFrikandel: Hey guys, i was wondering how do i make tool tier where you need a specific tool to break a block?
Fluid Custom Texture Missing 1.20.1 Forge
lea: Hi, I followed the wiki example for adding fluids.
Help with making tool (if even possible)
Ghos.ty: I want to make a all in one tool so pick shovel and axe i have the textures and everyting but with info that i found online it only works as a shovel even tough im also giving it the tags of being a pickaxe and axe is that possible or outdated info?
block that does something when powered by redstone
duck: my only idea is to check for blocks next to it to see if they send out a redstone signal somehow but that would be a little scuffed.
EntityJS Attribute modification not working on custom mob
A Stable Individual: Was just seeing if i could have some advice on this. Heres my start up script for a custom mob. Im not able to change the max health. Its possible on vanilla mobs but not custom. Have tried summoning with the health attribute, and onAddedToWorld.
unable to use player.setMotion() in certain contexts
Josh: ItemEvents.rightClicked('minecraft:paper', event => {
Trying to replicate example script.
Josh: BlockEvents.modification(event => {
Dynamically modify camera
1vanb: Is there any way so I can maybe set the position of a players camera, then in a bit, set it to another position? in coordinates? Possible even interpolate (id assume its just getting the start and end and doing Math())
FTB Quests 1.16.5, Crashes when opening inventory while quest book is open. Forge
Parade: Title. Anyway to fix this?
Modifying items using different methods?
Anonymous: Ok bit of a weird question, So i was playing **FTB evolution** a while ago and it had a neat feature where the **drills for Modern Industrialization didnt get consumed** then i **switched to ATM10** and that feature isnt in it so i did my best to figure out how to do it and it was easy enough given that in ATM10 server scripts file was aQuarry.js with the probability of breaking right there and able to easily edit. I then took a look at how FTB evolution had written their server script, and when i looked in FTB evolutions server script there were nothing modifying the drills break chance. there was only a file for it in the /data/ folder. and from what the kubejs wiki says you can only edit recipes from the server script folder.
quick question(s)
1vanb: 1. if your running runCommand("whatever) consecutively, does it actually run consecutively? or is it best to use scheduleInTick of some sorts for each command to have a 1 tick delay?
Multiple .matchMainHand tools
Lens: I would like to be able to only get string from these mod added cobwebs when I have either a knife or a sword, I was able to get the knife to work but whenever I try to add a sword it completely stops working, heres my code:
iss entity js stuff
Dracoruff1211: EntityJSEvents.addGoalSelectors('minecraft:zombie', event => {
how to make entities burn things?
Cr0w37: I would like to make pillagers burn crops if near them and maybe a secondary condition could be if the are holding a torch.
Tooltip colors not working
Phoenixvine: When i try to add a tooltip like this ```event.add("kubejs:aurum_steel_drilling_kit", [
Player right-click holding detection
Slav Cube [@-reply me]: Context: I'm making a script for a fiend for 1.20.1 while usually I work in 1.18.2
Modifying the lectern function/menu
Inflitraz: I trying to change the lectern option to retrieve the book off the lectern by shift+click and the "take book" button beacuse i want to interact with the block to read the book but not have the option to retrieve the book from there
a way to raycast
duck: there seems to not be a way to raycast from anywhere in the world, there is raytrace function but it's only in the direction of the player look.
Item Modification non-working
Lada: Hi, title says it all, but to be precise more. I am playing on Minecraft 1.21.1, trying to adjust properties of items with function from Wiki:
Recipe change not working correctly
ItzByc: event.recipes.createmetallurgy.alloying([Fluid.of("createmetallurgy:molten_netherite", 45)], ['2x minecraft:netherite_scrap', Fluid.of("createmetallurgy:molten_obdurium", 120), 'superheated'])
Random block color tinting
db3k: How could I achieve something similar to the effect seen in this video with a custom block?
Get persistent data from client script
Jaimarl: Client.player.persistentData returns empty value
"FoodProperties" doesn't work anymore , startup error"food.js#3 -> food.js#4"
Sacri Pan /\^._.^/\: "error in 'ItemEventsModification': Cannot convert ArrowFunction (1) => {...} to net.minecraft.world.food.FoodProperties"
Make a Create Deployer recipe damage a held pickaxe more or fully consume the pickaxe
einsteinalbert: Hi, so I was attempting to make a Create Deployer recipe that fully consumed a diamond pickaxe held in the deployer's hand
Can't assign custom mining tier to blocks
Kombat: I've made a custom 'steel' tier and am trying to apply the needs_steel_tool to diamond ore and deepslate diamond ore. But it ain't registering it. There are zero errors though and the diamond now requires wooden tools
Mekanism custom recipe return value is null
NightEarl: As the title, I created a little script to help me add recipes quickly,
Create Recipe Replacement
WinnieTheJinping: I'm trying to change multiple recipe's input/output to be the same. In this case, replacing all dough (Create, Pam's Harvest) to be Farmer's Delight
Disable Firestarter Item Except on Certain Blocks
Cyberdragon: I have a flint and steel like item from a mod that I want to disable being used anywhere except certain blocks, however I don't see any cancellable item event for when a block is targeted.
HELP My server keep crushing with the same error
kukus: I downloaded gregtech modpack and got error on kubeJS startup, pls help me solve this
Help with Timed FTBQuests KubeJS Code
Anonymous: Hello. New here and to KubeJS.
Need Help with Taming KubeJS Script
Areece Lemonfang: I am new to coding and my friend sent me this script that he got somewhere from this discord but I can't get it to work nor find the original script post. He told me to simply add the targeted mobs I wanted to tame and the item need and I ended with this KubeJS startup error. What am I doing wrong?
Modify block drops
The Watcher: Is there a way with kubejs to modify a block, or what it drops when broken? I want to make it so flawless certus (from AE2) drops flawless when broken, instead of it degrading. Is that possible with KubeJS? I'm on 1.21
How do I use https://kubejs.com/wiki/events/NetworkEvents/dataReceived
1vanb: https://kubejs.com/wiki/events/NetworkEvents/dataReceived
Communication
1vanb: Does anyone know how to share data between the server and the client? like getting coords of an entity on the server, then sending it for the client to use? or can we get coords of an entity on the client?