Support Tickets


This page is still WIP!

Client Script only running on /kubejs reload client-scripts

Train: When I start the client, none of the changes from this script are present until the command is run. what gives?

💬 1 • 1.21.1 • NeoForge • 

extreme crafting table

Game_MasterHD: Re:avaritia

💬 1 • 1.20.1 • Forge • 

Remove Item

KingPsychospud7: Is it possible to completely remove an item from the game server-side, including removing from JEI and any other possible areas where it may be visible? If so, how? I am using KubeJS with no other addons and would prefer to keep it that way.

💬 2 • 1.20.1 • Forge • 

Equip Item To Compatible Slot (Curios)

KingPsychospud7: The Icarus mod has a series of wings which can be manually equipped to the 'curios:back' slot. I'd like to add right-click functionality to equip them, including swapping any item equipped in the required slot (or first possible slot if all compatible slots are full), but I want the script to work for any compatible slot, whether curios:back or other. How would I go about this?

💬 1 • 1.20.1 • Forge • 

Having trouble with getting Create sequenced assembly to work

BowBoy1: I've tried both KubeJS Create's method and the event.custom method but it keeps throwing an error, and I can't seem to figure out what's wrong. I've attached my log file and my script.

💬 2 • 1.21.1 • NeoForge • 

Is this crash due to Sable or not having kubejs on the server?

Superintendent: https://mclo.gs/KJ4PWWu are my logs, script is quite simple

💬 3 • 1.21.1 • NeoForge • 

Annotation-based plugin registration

supernovus: Many mods utilize annotation-based registration of their extensions, e.g. EMI `@EmiEntrypoint`, Jade `@WailaPlugin`, etc.

💬 9 • Unknown • Forge/Fabric • 

1.20.1 Mob Spawner Kubejs help please

Taterz: #1.20.1 #forge 47.3.0

💬 10 • 1.20.1 • Forge • 

hiding items with with data components

zero: i want to hide a specific bunch of item (slag:modular_item, where any of the tool heads have have the "slag:material_type":"slag:stone" component) is there any way of doing that? i'm still new around JS and KubeJS so i'm sorry if this is a stupid question

💬 6 • 1.21.1 • NeoForge • 

Upon the creation of a world, how do you set the time automatically to night?

SkippyZii: Or any other specific time in general

💬 22 • 1.21.1 • NeoForge • 

Let's Do Farm & Charm, Herbal Brews and Bakery

Sunder ⌊‹◎›⌉: Heya! I'm coming with a question on how to alter (remove, add, change ingredients, change outputs etc.) recipes from the above mentioned mods with KubeJS. EMI does not show the Recipe IDs for the individual recipes, and an old thread advises against using [Let's Do Addon] Compat as it causes issues with Create, so I am a little clueless on where to begin taking a crack at this.

💬 4 • 1.21.1 • NeoForge • 

bulk coloring issues

Sylvie: im looking to use the bulk coloring feature of dragons plus, and i cannot for the life of me understand how it supposed to be input into an ```event.custom()```. i have an general idea, as i have read the dragons plus readme and the related kubejs wiki section, but it still wont work

💬 3 • 1.21.1 • NeoForge • 

Create new stripping like functionality

Chase MK: I am backporting Some More Blocks' block carving for the stripped pale oak log and need help getting all the functionality working

💬 21 • 1.21.1 • NeoForge • 

Modify an existing entity to have flight and flight 3d pathfinding with entityjs

HoneyVee: I need to modify an existing entity to give it basic flight with entityjs

💬 1 • 1.20.1 • Forge • 

trying to port to higher versions?

balk guy: i want to port my mod from 1.21.1 to 26.1.2 and theres not much documentation? and there isnt any probejs? are there other mods to replace probejs with? is there somewhere with docs for 26.1.2?

💬 1 • 1.21.1 • NeoForge • 

failed to create recipe from event.custom "create:compacting"

𝐫𝐞𝐭𝐫𝟎_𝐬𝐩𝐞𝐤𝐭𝐫𝐨𝟏𝐝: Title says it all

💬 5 • 1.21.1 • NeoForge • 

Is There a Way to Bypass the 99 Max Stack in KubeJS

ZonkoTheGreat: My friends and I agreed it would be preferable to have all blocks in my modpack stack to 256. But unfortunately, there's some arbitrary code that makes the max be 99.

💬 3 • 1.21.1 • NeoForge • 

I think I ruined my ProbeJS files

Spookysquid19: I've installed a fair bit of mods and made changes since I first used the dump command, so I thought it would be good to run it again. So I ran `/probejs dump` and now VSCode isn't autofilling *anything*. I also keep getting errors that `/usr/share/code/code has encountered a fatal error and was closed` with the stacktrace

💬 4 • 1.20.1 • Forge • 

Recipe not being removed

The Diamond Fox: Im trying to remove the recipe from create ultimate factory that compacts coal blocks into diamonds. I have other recipes removed that worked fine but for some reason this one isnt being removes with the type output method or the recipe id method.

💬 18 • 1.20.1 • Fabric • 

Right Clicking an Item on a Block Event

EEX5: Basically, I'm trying to make it so when right clicking on a certain block(In my case it's a block tag) with a specific item would consume said item and result in another item. Additionally, I'd like a way to make it so that when you do said process maybe a sound followed by some particles would be nice.

💬 8 • 1.20.1 • Forge • 

Trying to modify the attributes (max mana etc..) of iron's spellbooks equipment

dragonmaster26: I'm trying to figure out how to modify the attributes iron's and other addons equipment, this is what I tried as a placeholder to see if it works, it seems to work on a diamond helmet but not on the netherite mage helmet?

💬 1 • 1.20.1 • Forge • 

phytogenic isolator 1.20.1

AppleKang: I am trying to make recipes for all the trees in oh the biomes we've gone. I am not sure how to do that. I haven't messed with mods like this or any like this before

💬 28 • 1.20.1 • Forge • 

probejs missing definitions/auto complete?

Acenthus: Been working on some stuff with KubeJS/ProbeJS and it's been going great for the most part. But then I started doing startup script stuff and realized a bunch of random things just don't show up with definitions or auto complete?

💬 5 • 1.20.1 • Forge • 

Is it possible to use painterjs to paint over players?

jan: hello, i was wondering if it was possible to utilize painterjs to paint over players every few ticks, something similar to that of censoring a player in real time as an example?

💬 4 • 1.20.1 • Fabric • 

How could I make it so structures don't generate within a certain radius of the world spawn?

Spookysquid19: For the most part in my modpack, I've been spawned near 0,0, which works with Structurify's min rule. But I recently added Tectonic, and now I'm no longer being spawned that close, making the the Structurify setting vary from useless to unfair. I was wondering if this feature could be done through KubeJS.

💬 1 • 1.20.1 • Forge • 

craft item with specific nbt

naik: i want to make new crafting for specific suspicious stews and from my research it seems to be based on nbt. how would i make a crafting recipe for suspicious stew with specific nbt?

💬 7 • 1.21.1 • NeoForge • 

Help with changing progression table on my own modpack 1.20.1 (End Remastered)

Anonymous: hello i want to use my modpack with end remastered to change the eyes of ender to drop from specific mobs (ex tier 3 dungeon of aether) do i use lootjs, or something else? (modpack is 1.20.1)

💬 5 • 1.20.1 • Forge • 

Player Armor Change Event?

KCtops6: Is there a KubeJS event that fires when a player changes armor slots in their inventory? The end goal is to add player effect bonuses when a full set of existing (leather, iron, etc...) and custom armor sets are on the player.

💬 1 • 1.21.1 • NeoForge • 

Player Armor Change Event?

KCtops6: Is there a KubeJS event that fires when a player changes armor slots in their inventory? The end goal is to add player effect bonuses when a full set of existing (leather, iron, etc...) and custom armor sets are on the player.

💬 2 • 1.20.1 • Forge • 

Display loot pool rolling

Krispy: So as the title states, I want to make it so my loot crate shows the items being rolled, then the items that were awarded (not something they can pick up) then have them placed in the inventory, id like for them to be set up in a line so its 6 items next to eachother rolling kinda like a slot machine. If you need the code I use to roll for the items I can send that shortly

💬 10 • 1.21.1 • NeoForge • 

AnimationJS issue with body parts

DaGamer5T3w: The parts that my animation uses are misaligned to the actual player's rig, and on top of that, it uses the grenade texture to make those parts on the arms visible (which I know can be fixed by simply removing the texture from them, but the main issue is the parts that are supposed to be there being misaligned)

💬 5 • 1.20.1 • Forge • 

Issues when Modifying an Entity to Apply an Effect on Hit

Io: Hello all,

💬 30 • 1.21.1 • NeoForge • 

How to delete achievements?

Ilayst11.999999999999: createpropulsion:feed_the_fire_621

💬 10 • 1.21.1 • NeoForge • 

Equipment-Specific Loot Tables?

NT 🦾: essentially, i'm trying to use LootJS to do what Farmers Delight does, which is produce a specific drop if killed with a certain type of tool. i want it to have a chance to drop any random item from a specific item tag.

💬 66 • 1.20.1 • Forge • 

How to make zombie afraid of soul fire?

NanChik: How to make zombie afraid of block related to soul fire (soul torches, soul lanterns, soul campfire and of coerce soul fire)

💬 69 • 1.21.1 • NeoForge • 

Mob Curio slots and altered hostility

Cubic: Im trying to figure out how to use kubejs to add curio slots to some entities and also create team types for mobs so i can make different batches of entities hostile to others that arent normally, any help would be appreciated

💬 1 • 1.20.1 • Forge • 

removing tag from non root

Lucky56: this is more of a question than a help request, since I'm using a dummy item in a datapack to remove items from non-root tags using neoforge

💬 3 • 1.21.1 • NeoForge • 

adding all kubejs registered blocks/items to a specific creative tab

Lens: I have a creative tab I made using a mod and would like kubejs to put all the items and blocks i register into that instead of the kubejs creative tab. is that possible?

💬 7 • 1.21.1 • NeoForge • 

How do i run a specific command whenever i interact/kill an specific entity with an NBT Tag

𝐢𝐫𝐫𝐞𝐒𝐨𝐥𝐮𝐭: I was reading some posts in the forum to get an idea on how to do this. But i just couldn't figure it out...

💬 5 • 1.20.1 • Forge • 

Prevent building a Quantum Link Bridge in the same dimension using Applied KubeJS

hyperstitiousdiskordianwarfare: hello, im not sure if this is actually possible or not but id like to make the quantum link bridges from ae2 only work across dimensions (ie. overworld <-> nether) but NOT in the same dimension (ie. overworld <-> overworld). [Applied KubeJS](https://kubejs.com/wiki/addons/applied-kjs) seems to have a bunch of events pertaining to networks and hypothetically view devices on a network? but im a bit stuck and wondering if i could:

💬 1 • 1.20.1 • Forge • 

Recipe Ingredient that only matches empty component data

amertune: I'm trying to write a custom recipe for FTB Industrial Contraptions that uses a fluid cell. When a fluid cell is empty, there is no component data.

💬 10 • 26.1.x • NeoForge • 

How can I change a curio's slot?

Spookysquid19: I need to make the Ring of Grudged go in the `ring` slot and not the `rings` slot. I've tried the following, but it hasn't worked.

💬 1 • 1.20.1 • Forge • 

Export & Import / Require helper recipe functions from files

RoarkCats: I occasionally make helper functions for my recipes, however, I've always had problems when trying to separate these to their own files so I could easily import/export them between files- I know I'd have to pass `event` in of course, but is this possible with the way KubeJS is structured and what would the code in each file look like?

💬 3 • 1.21.1 • NeoForge • 

Player attributes

lx6o: Is there a way to effect player attributes with kubejs

💬 12 • 1.21.1 • NeoForge • 

Random chance to apply unique texture to mob

voidmage: I have recently found a really funny texture for cod on planet minecraft (https://www.planetminecraft.com/mob-skin/hot-dog-6220376/), and id like for there to be a really small chance to apply it to a cod mob upon spawning (something like the textures of axolotls). is there a way to do this with kube?

💬 1 • 1.21.1 • NeoForge • 

How can I make a custom compass for a structure?

Spookysquid19: I want to make a compass that points the player to the nearest temple in the Deeper and Darker dimension, similar to how the Wayward Compass in Iron's Spells points to the nearest catacombs.

💬 3 • 1.20.1 • Forge • 

Create custom Tinkers Construct tool parts

The Kamen Rider enthusiast: I tried doing that a few months ago by trying to make tconstruct diamond tools so i could remove the diamond took recipes and replace them with the tinkers tools (although doing so made netherite gear inaccessible)

💬 5 • 1.21 • Forge • 

Make existing block immovable by any means (teleportation, pistons, contraptions etc)

Viktor Shield: Please help

💬 5 • 1.21 • Forge • 

Custom loot box items

Krispy: Hello, to clarify, im wanting to make an item that will act as a loot box (assume the item all ready exists and for item ids just use the diamond sword id)

💬 3 • 1.21 • Forge • 

Trying to disable left clicking, right clicking, and crouching tied to a potion effect

Dracus: First time asking for support in here but I've been looking at some of the posts for guidance as I experiment with kubejs for an addon to a mod I've been working on!

💬 2 • 1.21 • Forge • 

Trying to make a fluid that hurts

Vigilante: I've been trying to make a fluid that either damages players on contact like lava does, or if that isn't possible, try to make a fluid that applies a potion effect like harming or wither to get the same result. I haven't been able to find anything online or on the wiki about either option, is it something I'd have to set up in server scripts instead of the fluid builder?

💬 18 • 1.21 • Forge • 

lock a Create sequenced assembly behind a gamestage

Monsh: .stage(x) only works on vanilla recipes i think.

💬 8 • 1.20.1 • Forge • 

Can I use kubejs/advjs to remove all advancements?

EEX5: I'm unsure if I can, but if possible, I'd like to remove all achievements with kubejs/advjs I just have no idea how to. If it's impossible, then I'll kist use a mod

💬 14 • 1.20.1 • Forge • 

creating copies of modded blocks

Po: is there a way to register an identical yet distinct copy of a modded block similar to the entityjs "clone" builder?

💬 3 • 1.20.1 • Fabric • 

Iron's spell script

BEAR: I've been trying to get this script to work. it's purpose is to have a random 30% chance to spawn in the player with-or without mana. the issue is if I set the base mana value to 0 it causes some bugs, I want to just make it so it spawns you without the mana attribute period if you spawn without mana. and I wanted to know if anyone had any expertise in iron's spells kubejs stuff.

💬 1 • 1.21 • Forge • 

How do i modify MultiMine's block damage levels?

Ivy :3: Trying to implement something akin to Factorio's structure health system but per block, and I'd like to use multimine and some form of repair kit item with durability where when you right click the block it decreases how close the block is to breaking by some increment and takes durability away from the item. the durability is easy, but im not sure how to modify how broken a block is.

💬 2 • 1.21 • Forge • 

trying to create a coal into diamond recipe using create mixing

ser puntazza: this is my very first project so I just copied the create mod code and made some adjustments, this recipe is not working can someone explain to me why?

💬 26 • 1.21 • Forge • 

Alchemistry addon

Piña_robótica: I don't know what i'm doing wrong. Here's the code:

💬 3 • 1.20.1 • Forge • 

Syntax for regex in tag event?

ratemisia!: I would like to add a set of blocks to a tag in ServerEvents.tags using regex. In 1.20.1, I was able to do it this way:

💬 3 • 1.21 • Forge • 

enable swim mode in a dimension

HoneyVee: I'd like to know if its possible to enable swim mode like when you are in water, as a way to enable flying in a dimension, i dont know if anyone has done it before or has any examples i could follow that could allow it

💬 7 • 1.20.1 • Forge • 

Event handler 'StartupEvents.modifyCreativeTab' requires extra id

TokiPonaEnjoyer: below are my logs and the code causing it

💬 8 • 1.21 • Forge • 

How to check for partial item data component?

SageofTurtles (ping me): Hello everyone! I'm still learning my way around data components, so this is probably really simple to do, but I'm having a hard time finding anything telling me how to do it. I have an block in my modpack that I want to replace with a different block when right-clicked on with an item called a soul catcher. However, I *only* want this to happen if the soul catcher has a blaze in it. I used a command to get the data for the item, which I'll put below. Basically, the only thing I need to check is that the item ID is `create_mob_spawners:soul_catcher`, and that it includes `id: "minecraft:blaze"` within the `entity_data`. How would one go about that using a KubeJS script?

💬 13 • 1.21 • Forge • 

Need Help with FTBQuest Custom Task and Player UUID Error

Ranman: I'm attempting to make a Custom Quest Task to have above an amount of Create: Numismatic Currency in your Bank Account.

💬 30 • 1.21 • Forge • 

replace item in loot randomly with 4 other items lootjs

Salt: im trying to replace or modify all instances of iron helmets in loot tables with a random helmet from a selection of 4 helmet items

💬 15 • 1.20.1 • Forge • 

Iron's spells & EntityJs (Cast spell level.

ErikolGamer14: Hello! I'm new over here, I'm working on a modpack and I have some question about the EntityJS compatibility that has with Iron's spellbooks, I was able to get a boss too cast spells but all of them level 1, is there a way to increase the level for the casted spells??

💬 5 • 1.21 • Forge • 

issues with kubejs

†FeløGrafix†: Hello,

💬 30 • 1.16.5 • Forge • 

Recipes with Durability Restrictions.

Cryptic: I am trying to edit a recipe within 1.20.1 fabric,

💬 23 • 1.20.1 • Fabric • 

How do I make an existing modded tool unbreakable? I've tried .uses, .maxDamage, neither worked.

PrototypeShadowBlitz ⚧: I want to make a set of tools unbreakable for a modpack I am making, truly unbreakable. Is there a way to modify the tool to make it no longer take durability damage, or just have infinite durability or something?

💬 44 • 1.21 • Forge • 

A liquid in a mod doesn't show up in the item's information when using /kjs hand.

PrototypeShadowBlitz ⚧: Is there a way I can fix this myself or do I need to wait for the mod author to fix this? Is this considered a bug on their end? Never ran into an issue like this.

💬 24 • 1.21 • Forge • 

Is there a way to give a specific item an enchantment without glint?

Lucky: Trying to give some items some default features that are locked behind enchantments that really shouldn't be

💬 7 • 1.21 • Forge • 

Detecting a block at a specified location relative to the player.

legobrick22: Is something like this possible? I'd like a script to return true if a specific block is at a predefined location relative to the player.

💬 16 • 1.20.1 • Forge • 

Hi, I'm building a 1.20.1 Forge modpack (528+ mods) and need help with a KubeJS script.

PepeTheGrimReaper: **The Problem:**

💬 2 • 1.20.1 • Forge • 

Cannot save inventory

Anonymous: Im trying this

💬 49 • 1.21 • Forge • 

staff creation not working

Dracoruff1211: ```StartupEvents.registry('item', event => {

💬 66 • 1.20.1 • Forge • 

item being repairable in anvil by a single item

Anonymous: is there any way so any item can be repaired by a single item through kubejs

💬 1 • 1.20.1 • Forge • 

Trying to hide itens in jei by custom data

Diju: I'm trying to remove some specifcs guns from TacZ, but they all have the same name, so I tried by the custom data, but it's not working, the client.log doesn't give any error

💬 7 • 1.21 • Forge • 

Game Crash Removal of item help please!

Gummy Bear: need help removing an item with code that'se causing the game to crash well multiple items I have no idea how to code btw

💬 81 • 1.21 • Forge • 

Custom Create Mod Recipe Please Help

Gummy Bear: I need a gold and netherite scrap recipe to make netherite thats easy and cheap custom made

💬 82 • 1.21 • Forge • 

my foreachrecipe script doesn`t work properly

MeeM: i watched guide from gnomebot and google search to make this script but only shows null/undefined

💬 61 • 1.20.1 • Forge • 

Can't find function .textureAll

samm: Hi, I couldn't open the logs file for some reason. Here's a screenshot of what I saw upon launch

💬 10 • 1.21 • Forge • 

im having issues with adding more than one effect onto a food item

Mosca: The script works perfectly fine when add a single effect but when i add multiple effects it just adds the effect but twice which im unsure how to fix

💬 9 • 1.21 • Forge • 

Starter Kit Book not working

TheButterbrotMan: Hi everyone,

💬 18 • 1.21 • Forge • 

Get blocks in an area

Owen: how would i get all blocks in an area around the player? for example, `let tarBlocks = entity.level.getBoundingBox().inflate(range).block.filter(block => whitelist.includes(block.id))`

💬 26 • 1.20.1 • Forge • 

fluid instantly going out of bucket and into world once obtained

Zote(3): ```ItemEvents.entityInteracted('minecraft:bucket', event => {

💬 5 • 1.21 • Forge • 

Invalid Quantifier for Regex

Ben: I'm getting invalid quantifier error * for this script, I've tried with the other negative lookahead/lookbehind ```?<!``` and ```?!``` but they give the same error but for ?

💬 21 • 1.21 • Forge • 

Snowlike layer block

Mellowitsch: Is it possible to create a block that works like snow? So for example i have a block that looks like dirt and i can place this like snow (layer over layer)

💬 8 • 1.20.1 • Forge • 

gregtech machine syntax help

TheNimbleNinja: im looking for help finding out how to do specific machine stuff like the metal molding. it usies the alloy smelter but i dont know its syntax to use it

💬 1 • 1.20.1 • Forge • 

Is it possible to automatically load datapacks from a folder upon world creation?

Mushroom: So that you don't have to open a folder every time you wanna create a world with the same datapacks.

💬 27 • 1.20.1 • Forge • 

Custom rock block model

Lachry-mosa-D: I've been trying to make a block with a custom rock model, but I have not yet found out how to use .model(value: ID). Can someone explain how to because there is no tutorials for this and the wiki is no help with this :p

💬 19 • 1.19.2 • Fabric • 

Custom Trial Vaults

NASisawesome10: I noticed that there are seemingly no posts talking about making custom trial spawners or vaults?

💬 19 • 1.21 • Forge • 

Is it possible to detect when a player hovers over an item with another item and right clicks?

WiiSafetyManual: There is an event `PlayerEvents.inventoryChanged` but I'm not sure exactly how to use it to do whatever you want here.

💬 3 • 1.20.1 • Forge • 

item combination but prevent if item already has nbt

duck: ```js

💬 9 • 1.21 • Forge • 

detect if player is in water and or swimming

naik: is there an event to do this? i wanna make it so that the player eventually gets freezing if they swim for too long without armor (maybe change the time until u freeze with each tier but i wanna figure that out on my own)

💬 34 • 1.21 • Forge • 

Having trouble with ItemEvents.modifyTooltips for Durability Tooltip

Waris Kung: Hi everyone! I'm trying to make a script that adds a custom durability tooltip to all damageable items. However, my current code isn't working

💬 4 • 1.21 • Forge • 

Speed up suspicious block brushing

RoarkCats: Is it possible to speed up suspicious block brushing from somehow for tiered brushes?

💬 7 • 1.21 • Forge • 

Create a Crop

SuCr1lh0sツ: Can someone help me create a simple crop for my world? I'm a beginner and I can't find anywhere that teaches how, and I don't want to use AI.

💬 13 • 1.21 • Forge • 

Play sound periodically while wearing specific item(s)

Anonymous: Hey there! I was going to try reading up on the wiki to figure it out myself, but since it's down, I might as well ask.

💬 1 • 1.21 • Forge • 

Tough As Nails

Lilo: Hey, good morning, does anyone know where to find the commands to edit things in the Tough As Nails mod using kubejs?

💬 1 • 1.21 • Forge • 

Modifying Existing Projectile Spells Provided by Iron's Spells and Spellbooks (and addon mods)

Io: I'm using the startup kubejs script attached to apply a potion effect to a spell that otherwise did not have such a function. I used EntityJS to apply the effect on the "elemental_synergies:brimflame_bolt" projectile entity. However, using the same code for the "elemental_synergies:brimstone_hellblast" did not result in applying the effect on hit entities.

💬 3 • 1.21 • Forge • 

Curios Slot Get/Set

Owen: how would i "get" an item in a curios slot, without using the kubejs-curios mod (dont want loads of dependencies). similar to `entity.getItemBySlot()` but for curios slots

💬 7 • 1.20.1 • Forge • 

Showing 100/12116 posts