Support Tickets
This page is still WIP!
Error with random tick changing blocks
Danmatisk: I have this piece of script to have a custom block slowly change into another block, and it had worked previously, so I might have broken it in some way
Can KubeJS handle advancements? (and how?)
Syrax ๐: I've been trying for a while to get a fully fledged out advancement system, with an advancement tab... but I'm struggling to find if it's even possible without a datapack.
System for filling loot table by difficult or tier
Hudoki Yicade: How I can create the system which can help me, I have a lot of items and a lot of structures, and I wanna put them into loot tables by their "tier" or "difficult", common item can be founded in overworld, uncommon in overworld with lower chance and in nether with default chance, rare items is common for ender etc
is there a way to sync server side's new resources with client in this mod? or does resources has to
hahahehe: Or does resources has to be on both from the beginning?
Giving tamed mobs a tag
MonoRedBaron: Can someone provide a script to check if a mob is tamed when its spawned and when its interacted with and then give it a tag?
Change on fail
Mays: Is is possible to have a chance to fail with the pressure chamber from pneumatic craft
Editing or Adding Description to Mob Effect
Lampent51: _Overall,_ I want to add a description to a custom mob effect, and to eventually add descriptions to effects that don't yet have them in EMIffect/JEI.
Element not included in array?
DINO | Ping when reply: Seems like rhino's being annoying, am i missing something?
Replacing output in forEachRecipe() loop?
mo_mo (ping me): How do I use the `KubeRecipe.replaceOutput()` method? I want to halve the outputs for every recipe in the loop
[Models][Armor] not showing
Mr.Fluff: im not sure what im doing wrong here but none show the modes they should when worn
hostile entity in the works
Dracoruff1211: how would i change this to be player? i want the mob to automatically attack the player(for now) till i make him use spells in tandem with animations.
Making a Custom Ore drop a Pre-existing Ore.
PotatoBro: Hello! I created an ore via GTCEU but it makes it drop its own custom ore. I'm trying to get it to drop another ore and remove the previous. How can I do this?
automatic equipping items
Dracoruff1211: how would i automatically equip an item to an entity?
Can i make a mob break blocks in front of it?
HolyCartoon: One of the bosses in my modpack sometimes gets stuck on leaves / snow can i make it only break these blocks
fire resistance item
Tomomomo: I cant find answer to this issue anywhere that works for me
I get an error because of unvalid text chars
cluxy: I think there is a encoding error because of my windows language. My windows language is turkish. When I tryna play a modpack this error popping up. I dont know why. I got this errors when I try to play Lucky World Invasion.
fire check
ะดะทัััะธะบ: is there a way to check if an entity died from fire?
NBT Data when declaring items
jaro: hello! i was wondering if there was any way of adding nbt information to items when declaring them in the startup script, as id like the vanilla stat display (whats underlined in the first pic) to not show up
how do i make a block entity
rhyley: i want to make a block entity with a custom ui to craft
Warp, or set permanent spawn point every time a player connects to server.
Mr. Sparkle: Is it possible to set something up, where as soon as a player connects, they warp to a specific set of coordinates? In my case, tp -56 315 253 in the overworld dimension. But not effect things like respawning at beds etc. Just every time you connect, you spawn in an exact spot.
GeckoJS Custom Armor Model issues
Chef_BOI_Ardee: I finally figured out how to add a custom helmet with GeckoJS, but when my player's head moves around, it seems to be anchored at my feet rather that staying attached to my head. I also consistently crash due to a rendering error if my startup script has the following after the ``.boneVisibility`` part of item registration: ``renderer.setAllVisible(false);``.
Trying to remove categories in emi/gui
CostlierSquid: Hello, my goal is to literally do what is said above, to remove categories seen in jei/emi. I tried using the the code listed here but it didn't work, so I would love to see if anyone could help me with this.
i want to make that moss block isnt at 65% but 100% in composter
Vetex: i dont know how to do it can someone help me?
How to add goal to zombies to throw projectiles at player when towering up?
EyesEyes: I also will later animate the zombie model's arms so there is a windup time for the player to react.
KubeJS Startup Script Errors
Misaki Mei: Sorry for my terrible English, it’s not my native language.
Custom armor models for clothing
seven: Posting this as a sequel to [this](https://discord.com/channels/303440391124942858/1464322649462149190), but with a lot less text: does KubeJS allow creation of custom armor with completely custom blockbench-made models and textures? I watched [this video](https://www.youtube.com/watch?v=kh1ojgpyenQ&pp=ygUdY3VzdG9tIGFybW9yIG1pbmVjcmFmdCBrdWJlanM%3D) but the custom armor's models seem to just be retextures of vanilla armor; my goal is to have custom clothing pieces such as hats, jackets, boots, all made through blockbench, but I haven't seen this being done anywhere while googling. Is my only option adding a clothing mod and changing the models and textures of clothing added by that mod, hoping the amount of items is enough? Is it even doable?
Entity lootjs not working on summoned entity
Stonurd: Hi, I added a loot to a entity the alexscaves:gingerbread_man and its not working AND working at the same time:
Prevent Bottling Water
BodhiSmith13: I want to prevent the player from filling water bottles by right clicking water blocks with glass bottles.
more than four spells
Dracoruff1211: as it turns out, on geckolib entities, you technically cant override their ais, since they uhhh ig have no ai??? its wierd. anyways since i found that out how would i give a mob more than 4 spells via this
event custom i have no idea
es7509: [01:14:35] [ERROR] ! generalrecipe.js#413: Error in 'ServerEvents.recipes': TypeError: Cannot find function toResultJson in object 1 ender_eye.
How to remove items so they don't show up in JEI/EMI and players won't be able to craft them?
Valerie: i read some of the posts regarding removing items but they are still pretty confusing to me. there are some duplicate items in my modpack and i want to remove them, how do i do that using kubeJS? also do i need to make a new .js file in the folder? which category will this be in? (client, startup, server)
Entityjs: creating new entities based on existing class but with different assets and hitbox
kirb: i want to use what i read on https://github.com/liopyu/EntityJS/wiki/Clone-Entity-Registry-Event to create new entities based on the class of an existing one, but i want their hitboxes, models etc to be different. Are the other parts of the wiki valid for this?
spell casting not working
Dracoruff1211: not using echoes of tyros version just for any wondering(not even sure if that would crash with irons js or irons js just wouldnt work)
Broad Curios + KJS question for custom clothing
seven: Prefacing this by saying that I'm new to working with Minecraft scripting/modding in general. I'm currently working on the modpack for a server I'm working on, and I couldn't find a mod online that added clothing I found on-brand with the server's steam/decopunk theme and allowed KJS to add/remove/edit said clothing. So, by doing some brainstorming and googling, I imagined this approach:
Component syntax in custom recipe works in one case and not another (for the same recipe)
heimdal: I have a mod recipe for which I'm trying to add an item with a component. I've got a working syntax which gives a valid result for one input, but when I use the same syntax on a different input (for the exact same recipe, so literally just changing the strings) it throws an error (exception occured when decoding a given StructField [Field: ingredients]).
How do I make a recipe keep enchantments
wan6845: I'm trying to make a recipe for a helmet that requires another helmet (crafting table recipe), is it possible to transfer the enchantments from the original helmet to the new crafted helmet
Lower water level with right click
LLDJ: I have a mod that adds water physics and legendary survival overhaul. i want to make it so that when you right click water with a canteen it lowers the water level by 1.
Make every tool have one durability and "Use Tinker Tools" tooltip, but not tinker tools
Fluffy Red Panda: pickaxe, shovel, axe, hoe and sword but not with #forge:tools tag
block entity help
rhyley: i need help with getting a block entity working with a ui for "crafting"
How to check nbt on block
Hudoki Yicade: I want to make it so that when I place a block, there is a tag on it, and so that in the future, blocks that appear in the world from a certain list cannot be mined by the player, but if the player himself placed the block, then he could mine it
How to make create mixer not consume item
Bladereaper: Hi, I am trying to setup a script to make it so the create mixer can mix an item but not consume the template in the basin just the ingot, how would I do this? I couldn't find any documentation of it?
block entitys
rhyley: just want some help to find a template for block entitys and all the different things i can do to then aka like gui and stuff like that just want to know some options
Item Fluid Amount
♣Khalito♣: I'm trying to essentially give the fresh water from Pam's HarvestCraft 2 a fluid amount, similar to how a water bucket is equal to 1,000 mB in something like Mekanism.
playing block bench animations in world
Po: i have a ritual that when right clicked i want to play this animation is that possible with KubeJS?
fetch `final_density` at a provided `Blockpos`
Neohedron: So I found that someone was able to do this back in 1.20.1, but with probejs I can't see the `.generator` object on `level.minecraftLevel.chunkSource`. Obviously I changed the event hook and am using `Java.loadclass`. But where is `.generator`?
I want to make it so when i order wolves (or any tameable mob that can sit) to sit or stand it shows
Sound: I want to make it so when i order wolves (or any tameable mob that can sit) to sit or stand it shows on chat, help please.
Create Mixing Help
Max: Hi, Ive got a working recipe that will have water and 2 items as an input with a chance of one item as an output. Is there any way to make it so that one of the items stays in as a catalyst of sorts?
trying to set item model
โงโหโง ๐ต๐๐๐๐๐๐ โงหโโง: StartupEvents.registry('item', event => {
Rendertype not working as intended...?
DaGamer5T3w: It doesn't change how the block renders at all
Changing the values of specific items wont work
HolyCartoon: I wanted to change the values of the wooden armor but they wont change. Ive copy pasted the script from one that works (all the other ones work) and the item id with /kubejs hand in case of a syntax error, yet it doesnt work and it has no error showing on /kubejs errors startup. Am i doing something wrong that doesnt get caught by errors or what
Recreating the functionality of bone meals
Pakaru: I'm adding an item that is essentially the final upgrade of bone meals, a bone meal with infinite uses. I was wondering if it's even possible on fabric, considering forge events don't exist here, i can't use the bone meal forge event.
Ban Enchants
Señor Carlitos: Hi I need to blacklist certain enchants, for example: "minecraft:mending".
I cannot make more than about 6 exception, when banning recipes
Señor Carlitos: Hi! I hope somebody can help me. I am making a modded server where more of mekanism will be unlocked later. Right now I just want the materials to be able to be processed.
Aftertaste potion effect
ItzByc (Ping on reply): I tried using the script that is in this post https://discord.com/channels/303440391124942858/1448064914169266216
How disable vanilla item or up the chance of the item mods like (cobblemon)
Slaazey: can someone help me, i dont know how do that
Mass Change 1 slot of a 3x3 recipe
fairbanks2126: I need to change 1 out of 8 identical items in some recipes, how do I do this?
whitelist for an potion bag
โจSarahโจ: im using the wallet_menu.js to make an potion bag, but i dont know how to make create an whitelist for the container
Cancel player shield blocking
Helore: Hello guys, is is possible to cancel player blocking with a shield? Right now i have this code, but it doesn't seem to work:
How would one would create a tag??
Bladereaper: Hi, I have a block that can only be broken with stone tools, but I want to change it so it needs a more difficult tool to break, mainly a gilded quartz pickaxe.
.setLootTableJson() doesn't work
Mowo: So.... is there any alternative way to edit block's loot table in startup scripts?
want to bulk remove recipes in Mekanism
Leopotion: i want to for instance, remove all the "upgrade" recipes from basic to advanced
GTMaterials.get not working properly.
PotatoBro: I'm trying to give Andesite Alloy a recipe, but when I use GTMaterials.get('andesite_alloy') it considers it as a null state and crashes. I don't know why.
How to remove the "emi:info" of a specific item
mykullwave: I haven't used KubeJS a day in my life, but whenI tried to do this all it did was remove the info tab of every single item.
What's the 1.21 equivalent of Utils.getRegistry()?
mo_mo (ping me): trying to update this example script: https://discord.com/channels/303440391124942858/1148963004193460225
Join message using KubeJS
ItzByc (Ping on reply): I Want to make a message that broadcasts to everyone on the server I am rn, telling them that a member has joined for the first time
the quests kill task tweaks mod player hit data location.
RARE PANDA: Guys does anyone know where the "quests kill task tweaks" mod stores the players that it the entity data? im trying to remove it with kubejs under certain circumstances.
Allow google to ONLY index the support and example script forums with AnswerOverflow
EyesEyes: Thought it wouldn't hurt since we already have the support forums on the kube js website.
Help with exporting recipes
thew9558: Hi! I was wondering if there is any way to export all recipes (like gtceu machines, crafting tables, terramity added recipes.) to a json file or even just the console? All other methods to do this havent shown anything online, so i thought KubeJS might have a method to do it. Thanks for your help!
Custom Taming Items?
Doctor Doodooโด²: Does anyone knows if its possible to make custom taming items? like if i could tame a wolf with a diamond. I know a Custom Breeding Item code, but dunno if its possible with taming. I don't know much about coding, so it would be great if someone could help me.
Creating regular crafting recipes for crafting table-like recipes.
DiscoTech: Context: The Pastel mod has a recipe type which is essentially just shaped crafting recipes but with an added "colors" object and a few other additions. However it includes a bunch of recipes which don't even use that field, yet can't be made in a regular crafting table. I'm trying to write a script which creates a regular shaped crafting recipe for any recipes where all of the values in "colors" are 0.
Curseforge having problems exporting the kubejs folder how to resolve this
ใใผใฏใใผใในใบใก: Before I start I will like to say that I have already contacted curseforge and they gave me the one line answer to come here instead.
Try biome_modifier add_features + datapack handling from server scripts
Saihao: Hi ๐
Mechanical Crafter Recipe not working. Again
The Eleventeenth Drawgon: Running into this Issue Again, I tired making a Mechanical Crafter Recipe and it's not working. KubeJS is not giving an Error and the Recipe is not registering in JEI. I tired the fix i did last time and it's not working so I'm officially lost again.
Custom Tool Leveling
TrueEvasive: I'm making a modpack that is rpg based and I want to incorporate my own tool leveling system using kubejs. As of rn, It doesn't seem to be working. I am not receiving any errors but the minecraft tools are not receiving the custom nbt I'm trying to attach to it.
Example script for kubejs create doesn't work
Vanessa Reyes: the example script provided for the sequenced assembly doesn't work which means I dont know how to make my own script by adapting the example one. is the documentation outdated or?
Entity attributes cannot be modified on spawn
Scarlet: I am working on a modpack and I am attempting to change a mobs attack damage and speed.
I want to add Botania to a pack, and remove almost everything with KubeJS.
Supercopia: I want to add Botania and remove every item and recipe from the mod, except for an item called "Tiny Potato", and add a custom recipe for "Tiny Potato". I wanted to know if there are any methods to do it more efficiently than going recipe by recipe, and how to remove items, and in general there is anything I could do better.
Custom models for item / armor
โงโหโง ๐ต๐๐๐๐๐๐ โงหโโง: Im trying to load a custom model for an item I made in block bench and I cant find out how to do it? is their an addon i need?
custom blocks texture not picking up
Mays: For some reason the textures aren't applying even if I dont do animated textures. I already got an animated item working, but blocks what so ever isn't picking up.
Creative tab renaming only partially working
brosquito: Hello! I have been running into an issue with my startup scripts her only my first tab rename functions as expected. The rest fail to change, they are all affecting custom tabs.
Script file removing additions on game launch
๐ฎ๐๐๐๐๐๐ช๐: So Playing on a server and making some new basic food items for KubeJs, new to coding. had my code looked over to make sure it checks out and on game launch for some reason the additions to the code remove themself. I have no idea why its doing that any ideas?
Removing items not working
DSTC: I looked into the website tried to remove the master ball from cobblemon and it doesn't seem to be working i feel like im missing something
Trying to remove all tags from all the items in a mod
EEX5: It's pretty straight forward to remove all the tags from an item, I'm unsure how to do the same thing for ALL of the items from a mod
Blacklist certain mods from appearing in chests
Noodleboiby: Also the title! Does anyone have an example script of disabling an entire mod from a lootpool? Like for example, I want to use cyclic but I don't want it's loot to show up in dungeons or whatnot. Any help is appreciated!
how to allows block orientation in the 6 directions
Na0tyN: Hello, do you know the way to apply the property that allows orientation in the 6 directions to a block, in 1.21.1, when you register a new block with kubejs? I'm trying to make a block with the shape of an amethyst cluster. I've already managed to get it to orient north/south/east/west with an event.create(id,'cardinal') so my model and blockstates work.
Item gacha
Joaco2702: Hi, I'm having a problem with Kube.js. I want to create a gacha-style item that gives you the Incinerator Blade from Cataclysm, with a certain chance of failing, but it's not working at all. Do you know why?
Modifying fluids
Mesrszmit: Is it possible to change the color of an existing fluid? I want to change colors of juices from Delightful Creators.
Remove a registered block
Himeki: Is it possible to remove already placed blocks? Either directly, or by removing the registry, or something else?
Entity JS Iron Spells
IRBan: So i'm trying to get this mob to use magic. But i keep getting in my latest log this issue :
Custom crafting stations
Infinity: Is it possible to add a crafting station block (nothing new just a reskinned crafting table) and have custom recipes locked to that block?
Fix Some mobs not stepping up layered snow blocks
Sound: i want to fix some mobs (mainly modded mobs) that dont step up from one block to the next when both have layered snow on (even a single layer is enough), any ideas?
minecraft is crashing when i load a world or create a new one
iBangSeaTurtlez: https://mclo.gs/uOBJvt1
animated blocks?
kagu: I have the way you would normally do it but instead it bunches it together and makes a weird clump but doenst move any help?
texture variation for fluid
Chdoorwe hellsin: im making a mod pack and i have a fluid that i what to have texture variation (like how some cobblestone texture packs would have deferent variations) what would the best way i would be able to do that
Anonymous