Support Tickets


This page is still WIP!

Cleansing Flame

GamingImperatrix: I would like to write a server script that allows fire to 'cleanse' whatever block it's on top of from one type of block to another.

๐Ÿ’ฌ 1 • 1.20.1 • Fabric • 

Sophisticated Storage input recipes (all wood types)

ChouKpop: ```js

๐Ÿ’ฌ 2 • 1.20.1 • Forge • 

Need to block interaction for player with advancement,

Azal: So, i figured out how to stop RMB interaction with block, but how do i make it happen only if player has specific advancement?

๐Ÿ’ฌ 1 • 1.20.1 • Forge • 

Can't remove "incorrect for wooden tool" block tag (Neoforge)

NoMoreStars: Been trying to remove this tag using the following code:

๐Ÿ’ฌ 5 • 1.21 • Forge • 

Change Direction of Players Gravity

Tachyonic: How could one use a mod like gravity api intangent with kjs to create a script that can change your direction of gravity

๐Ÿ’ฌ 1 • 1.20.1 • Forge • 

Is it possible to create a projectile that can only be fired from crossbows?

imBL4CK: I'm making a new type of arrow, but I'd like it to only be usable by crossbows, similar to the lead bolts from the Organized mod

๐Ÿ’ฌ 3 • 1.20.1 • Forge • 

Creating a custom GUI

PeskyHippo: I want to make a custom GUI for forge 1.20.1. This GUI will be a searchable list of some items in a shop (with info like stock, price etc).

๐Ÿ’ฌ 1 • 1.20.1 • Forge • 

oritech generation

Zenistoo: can anyone help me make a script that makes meteors and those oil indicators really rare because i hate seeing so many of them in my world

๐Ÿ’ฌ 7 • 1.21 • Forge • 

Plugin not registering (Addon, Forge + Fabric)

Evan: https://github.com/evanbones/emi-plus-plus

๐Ÿ’ฌ 1 • 1.20.1 • Forge/Fabric • 

Trying to make in-world interaction recipes from the create mod

EEX5: I want to make in-world interaction recipes from the create mod but I have no idea how to do so

๐Ÿ’ฌ 10 • 1.20.1 • Forge • 

Utility script to detect duplication

niki_tau: I am currently using Almost Unified and KubeJS + mod configs to unify/remove some duplicated items/recipes/entities. I would like to make a utility script to:

๐Ÿ’ฌ 1 • 1.20.1 • Forge • 

garnished spawns errors unrelated to my customizations

shazkot: is there a way to silence them?

๐Ÿ’ฌ 1 • 1.21 • Forge • 

recipe not working 1.20.1

Mas: why does it not work i cant figure it out

๐Ÿ’ฌ 5 • 1.20.1 • Forge • 

Lost Cities hardcoded blocks customization

LughtMon: Hello, I want to change some bit of a code to generate one block instead of other one.

๐Ÿ’ฌ 1 • 1.20.1 • Forge • 

Block property reference in clientTick event not updating after world start

Chase MK: Hi! I'm trying to make a block that has a variable amount of particles emit when it's `'level'` block property is changed.

๐Ÿ’ฌ 4 • 1.20.1 • Forge • 

loot scale based on distance

Fennix: "Hi! I’m trying to make loot scale based on distance from spawn in my modpack. Can you help me figure out how to set up distance-based loot scaling using LootJS?"

๐Ÿ’ฌ 9 • 1.21 • Forge • 

Why are player persistent data integers never saved after logging out of world?

Xernuff: No matter what I try I cannot get integers to save as persistent data. I can get arrays to work with it but not ints. Am I doing something wrong or are ints just broken for this feature?

๐Ÿ’ฌ 2 • 1.20.1 • Forge • 

Model Overrides from item nbt

Trilliam: I'm trying to get an item model to change depending on the nbt of the item. I'm using this for a create sequenced recipe where each step will change to a different model.

๐Ÿ’ฌ 1 • 1.20.1 • Fabric • 

Execute command at specific coordiantes after Create mixer crafting event

hyperstitiousdiskordianwarfare: hello! im trying to make a script that after an item is crafted using a specific recipe in a create mixer/basin runs a /summon command with the coordinates being set at the basin itself (the use case being an area of effect cloud at the basin block). im not really sure if this is possible or not but i havent had any success so far. things ive tried:

๐Ÿ’ฌ 2 • 1.20.1 • Forge • 

How do I use KubePackages??

Caden: Do I just put the kubejs folder into the jar and put that in the mods folder and run the in game command?

๐Ÿ’ฌ 1 • 1.20.1 • Forge • 

switch commands to reload attributes

Po: upon death or relog attributes reset, my advancement alter player attributes i wanna make a thing to set the attributes when the player logs and dies i started by testing if i could get a command to run in a switch statement but even this failed any ideas why?

๐Ÿ’ฌ 4 • 1.20.1 • Forge • 

Teleport to twilight forest allowed only for empty inventory

Cromwell: hello i have server 1.21.1 neoforge to play with my friends, and i want to write a script that allows players to teleport to twilight forest dimension only when they have empty inventory, i want to know are there any events like "PlayerEvents.changedDimension" that can help me?

๐Ÿ’ฌ 1 • 1.21 • Forge • 

Keep block name / lore after placement

โœจ Iris โœจ: (1.21.1)

๐Ÿ’ฌ 4 • 1.21 • Forge • 

1.19.2 Fabric - Removing Modded Structures

schizobarbie (ilovemybf): Hello, is it possible to remove structures from a mod? I want to use Dungeons Now Loading in my modpack because I love the boss designs, but my world is flooded with these quite honestly, hideous, structures.

๐Ÿ’ฌ 1 • 1.19.2 • Fabric • 

How should i make my items/blocks allow resource packs?

Astral: Should I just avoid having assets in the kubejs folder and include everything as a resource pack, or is there a better way i should do this

๐Ÿ’ฌ 4 • 1.20.1 • Forge • 

item lore/name/description change based on localization

shazkot: so let's break it down because I'm completely lost in the wiki at this point

๐Ÿ’ฌ 3 • 1.21 • Forge • 

I am trying to make a EntityEvents.hurt

Yakuna: I have been pulling my hair trying to make a event where when hurting a sheep it drops wool or string, and no luck

๐Ÿ’ฌ 16 • 1.20.1 • Forge • 

The startup scripts dont seem to function

Anonymous: I keep attempting to add a startup script so i can modify item damage values and such for some modded items and i can't even get to the part where startup scripts work.

๐Ÿ’ฌ 4 • 1.20.1 • Forge • 

How to create a custom effect that is the opposite of hunger?

imBL4CK: I'd like to know how I can create an effect that's the opposite of hunger, so that instead of gradually removing hunger, it gradually replenishes hunger – it would be a saturation effect, but nerfed.

๐Ÿ’ฌ 7 • 1.20.1 • Forge • 

play sound on death

Flumz: hey i try for my server to play sound when play dies play a sound to all player but in solo it's working but not on my server anyone can help me

๐Ÿ’ฌ 1 • 1.20.1 • Forge • 

Custom Storage Item Help

WildFire905: I want to create an item which when right-clicked will open a custom menu for storage.

๐Ÿ’ฌ 2 • 1.20.1 • Forge • 

how to set max mana to 0 (iron's spells)

NaitanYT: im new to kubejs so idk from what even to start

๐Ÿ’ฌ 1 • 1.20.1 • Forge • 

Triggering an observer with a block entity?

Yez: How would you do this?

๐Ÿ’ฌ 1 • 1.20.1 • Forge • 

Mekanism injecting recipe not working

teriyakiboi: The log is saying Empty tag: TagKey[mekanism:chemical / mekanism:hydrogen_chloride]

๐Ÿ’ฌ 1 • 1.21 • Forge • 

how do I make spiders shoot snow balls

Cr0w37: hey, I want to make spiders throw snowballs and wherever the snow ball lands there would be a cobweb. Is this possible? All help will be greatly appreciated.

๐Ÿ’ฌ 2 • 1.20.1 • Forge • 

Cant remove items from Irons Spells n Spellbooks from vanilla creative tabs

novaFailure ^v^: they get removed like normal in the irons spells tabs, but refuse to be deleted from vanilla tabs

๐Ÿ’ฌ 1 • 1.20.1 • Forge • 

Restricting the amount of feathers

Sparen22: I am trying to make a script similar to the one I have for player hunger but instead using the Feathers from the feathers bar mod. I can't seem to find any documentation on referencing the feathers bar through Kubejs, and editing the feather bar value.

๐Ÿ’ฌ 2 • 1.20.1 • Forge • 

How to add repair to tools and armor ?

kroko: I used

๐Ÿ’ฌ 1 • 1.21 • Forge • 

KubeJS (non-fatal) error

babyaintmoe: I added the log file as I can't decipher the issue.

๐Ÿ’ฌ 14 • 1.21 • Forge • 

just wondering if there is a way to refer to a block category

steelforce |HM|: im trying to see if i can instead of doing it one-by-one, use the tag #geore:geore_blocks to make it so i can uncraft them into the shards

๐Ÿ’ฌ 1 • 1.21 • Forge • 

Hi im trying to create a code for WB welcoming back

Anonymous: hi i used chat gpt which is a no no so i figured, id ask here for help ๐Ÿ˜ญ if anyone is willing to help me code it <33 basically i am trying to create a rewards program for my players welcoming back eachother. so once a player joins back they have 60 seconds to join back by doing wb WB etc for each wb they get 1 point. the reward milestones would be 25/75/125 and obviously no wb spam

๐Ÿ’ฌ 1 • 1.21 • Forge • 

Evolved Mekasnism: Alloyer

PTcrossfire: I'm trying to make a custom recipe on the Alloyer but now matter what I try I can't make it work...

๐Ÿ’ฌ 47 • 1.21 • Forge • 

Blaze burner reusable fuel

ItzByc (Ping on reply): I want to add a function to my item that wen clicked on a blaze burner it acts as a regular fuel but it gives back an empty version of said item

๐Ÿ’ฌ 1 • 1.20.1 • Forge • 

why dosent this work?

TrueBornc: been following a youtube totrial and everything looks right but idk

๐Ÿ’ฌ 41 • 1.21 • Forge • 

sound does not play

Orka: BlockEvents.rightClicked("sheh:pebble", event => {

๐Ÿ’ฌ 2 • 1.20.1 • Forge • 

Custom flowers crashing worldgen

Zoe/Fermine: My flowers all work when placed but they end up crashing worldgeneration when I try to place them.

๐Ÿ’ฌ 1 • 1.20.1 • Forge • 

I need help on making a fuel

ItzByc (Ping on reply): Basically I want to make a fuel that when used on a blaze burner (right click) it ignites the burner and it also gives back an inactive version of the fuel instead of consuming it whole.

๐Ÿ’ฌ 3 • 1.20.1 • Forge • 

Is there any method for getting the Estrogen cauldron recipe to work for other liquids

Jackytata: I want to get the Estrogen Cauldron shaking recipe to work on other liquids as the code looks like thiss...

๐Ÿ’ฌ 3 • 1.20.1 • Forge • 

Hiding recipes with the same UID

Gebcrafter: greetings

๐Ÿ’ฌ 1 • 1.20.1 • Forge • 

Villager housing requirements and corresponding Scoreboard value!! Help :(

cupid เชœโ€โžด: <:ab_thinking:1440133847823028295> I'm making a neoforge 1.21.1 modpack, and I'd like for villagers to have housing requirements.

๐Ÿ’ฌ 1 • 1.21 • Forge • 

add another item for chuncklock datapack

aaron258: Hello everyone.

๐Ÿ’ฌ 2 • 1.21 • Forge • 

ReferenceError: "RarityJSEvents" is not defined.

DAMBRR: [21:58:17] [INIT] KubeJS 2001.6.5-build.16; MC 2001 fabric

๐Ÿ’ฌ 3 • 1.20.1 • Fabric • 

1.18.2: player.inventory.find doesn't ignore NBT tags

Pambo: Hello!

๐Ÿ’ฌ 1 • 1.18.2 • Forge • 

How to achieve the effect of replacing gravel with sand in the original position after destroying

Orka: As the title suggestsโค๏ธ

๐Ÿ’ฌ 2 • 1.20.1 • Forge • 

How To Remove Ores With KubeJS

Bumblebeetuna: i'm trying to remove zinc from the warium mod with KubeJS, i'm a dumbass at this and don't know how to do it. ive gotten up to this point with the help of https://kubejs.com/wiki/tutorials/worldgen/2001 but not sure what else to do, where do i write the crusty_chunks:zinc_ore part in the file to remove it from world generation?

๐Ÿ’ฌ 4 • 1.20.1 • Forge • 

Removing recipes when the output is a fluid doesnt work?

Amy: I'm trying to modify a bunch of TConstruct melting recipes so that they require a different temperature. Sadly modifying anything else than input and output of a recipe isnt possible with kjs (or at least not to my knowledge), so i have to go the way of removing the original recipe and readding it with modified temperature.

๐Ÿ’ฌ 10 • 1.20.1 • Forge • 

Custom Brewing Stand/other functional blocks?

Stelluna: Hello, I’m making alternatives to workbenches and I was wondering if there was a way to make this block function as a brewing stand? I want it to work exactly like a vanilla brewing stand, but use this (unfinished) model.

๐Ÿ’ฌ 3 • 1.20.1 • Forge • 

[f3+t] and [/kubejs reload client_scripts] dont retain tooltips

Mr.Fluff: I’m using the below to set my tooltips on items, but reloading textures removes them, and no amount of /kubejs reload client_scripts restores them. A full game restart is required.

๐Ÿ’ฌ 51 • 1.20.1 • Fabric • 

Execute loop while player is drawing a bow

Helore: I'm developing a custom stamina system and i'd like to know if it is possible to check if player is drawing a bow and execute a loop while it is true.

๐Ÿ’ฌ 1 • 1.21 • Forge • 

KJS Datapack

Mark: I want to add compatability between mods in my modpack and Overgeared, i know i can do so via datapack, but is it possible to put the scripts of the datapack into KubeJS instead? If so, where and how?

๐Ÿ’ฌ 4 • 1.20.1 • Forge • 

attributes of armor dont stack

Sheiny: I'm copied code from: https://gnomebot.dev/paste/1422383110607077548/1422383110607077548/1422383110900940820

๐Ÿ’ฌ 5 • 1.21 • Forge • 

Lychee: Display recipe output chance in JEI

Auri: Hi, I am using 9thCore's Lychee Schema (https://github.com/9thCore/KubeJS_Customs/releases/tag/LycheeSchema-v1.0.0) to add new item exploding recipes to the game with KubeJS.

๐Ÿ’ฌ 1 • 1.20.1 • Forge • 

LootJS: Adjust Butchercraft hook drop amounts

Doc ๐Ÿงช: I want animals to drop less regular meat. I'm trying with cows right now. The loot table for butchering a cow is [here](https://github.com/Lance5057/Butchercraft/blob/1.21/src/generated/resources/data/butchercraft/loot_table/meat_hook/butcher_cow.json), and it looks the same in my 1.19.2 files.

๐Ÿ’ฌ 4 • 1.19.2 • Forge • 

Client Event Making Block Emit Particle not Working SPECIFICALLY with custom KubeJS blocks

marcnum2: The code:```js

๐Ÿ’ฌ 33 • 1.20.1 • Forge • 

Change / Transform Block Exploded by TNT and / or Alex's Caves Nuke

marcnum2: Here's my block

๐Ÿ’ฌ 12 • 1.20.1 • Forge • 

Changing Weapon Attribute of modded item

Belen: My code works fine with a vanilla item (code I stole from another post called Changing Weapon Attribute of Weapon), so I don't completely understand how it all works. But when I try to add an attribute to an item from the clast mod, it doesn't work.

๐Ÿ’ฌ 2 • 1.20.1 • Forge • 

leaf-type rendering

Sharky | Ping me: I want a new type of 'leaf' im adding to render like normal leaves, idk how better to explain it, refer to images

๐Ÿ’ฌ 2 • 1.20.1 • Forge • 

Texturing block particles

cobalt: Registering a block, and `textureAll` doesn't work. Using `.texture` *does*, but the block particles break. Is there a way to make the block particles use the correct texture?

๐Ÿ’ฌ 1 • 1.21 • Forge • 

How To Give An Item

Owen: basically im currently using

๐Ÿ’ฌ 2 • 1.20.1 • Forge • 

My custom armor disappear ๐Ÿซฅ

allogu44: I'm trying to create armors but, although they are created as items, didn't work correctly, only work well if they are equipped from the hotbar with right click, and if they are moved in the inventory with shift + right click, disappear without explication, it doesn't show me errors and the wiki doesn't give me information for this version, I get the methods and codes from a YouTube's video and I don't know if I'm missing something or if I'm doing something wrong

๐Ÿ’ฌ 1 • 1.21 • Forge • 

placed block capabilities?

Cr0w37: I want to know how to increase enchantment level based on certain blocks placed around the enchantment table if possible?

๐Ÿ’ฌ 1 • 1.20.1 • Forge • 

Get hardness value from block item

Jaofumi: I've tried alot of ways to do this but i haven't seem to find a way

๐Ÿ’ฌ 1 • 1.20.1 • Forge • 

Recipe and durability for a debug item

Nvv: I wanna make a recipe for the miniship creator stick from vs and i wanna make it so it breaks after one use so its not too op.. How do i do that? (By use i mean one right click on a block, cuz thats what it takes to turn it into a ship)

๐Ÿ’ฌ 18 • 1.20.1 • Forge • 

How to intercept a right-click event on a fluid block?

zee Lime: Folks, anyone's got a clue how to intercept a right-click event on a fluid block using KubeJS? `BlockEvents.rightClicked` seem to work for solid blocks only :/

๐Ÿ’ฌ 1 • 1.20.1 • Forge • 

How do i remove all the items of an specific mod from all villages

BgamiX: I made a server with Ctov because i like the giant villages and also added artifacts and relics, the thing is, every chest on the mod has 4 artifacts or relics, plus the giant villages you really can fill a double chest full of artifacts with just one village

๐Ÿ’ฌ 6 • 1.20.1 • Forge • 

Duplicates values on my armor ?

Ise: Hello ! For context, I'm trying to modify the values of the allthemodium armors, to make them less op :

๐Ÿ’ฌ 1 • 1.21 • Forge • 

Adding Aether Freezer Fuels

ShabyFrost: I would like to add snowballs as fuel for the Aether's freezer block.

๐Ÿ’ฌ 4 • 1.20.1 • Forge • 

How to check for a full advancement instead of criteria?

Craftmayham: I'm trying to check for any full advancement completion and I've tried the PlayerEvents.advancement event and it seems to run anytime any part of an advancement is completed. Does anybody know how to check advancement progress or full completion?

๐Ÿ’ฌ 5 • 1.20.1 • Fabric • 

How does one replace an item across all loot tables?

mentosan (judele): .

๐Ÿ’ฌ 28 • 1.20.1 • Forge • 

How to make log block with rotation on 1.16.5?

ManFromIcyWastelands: Before posting I've looked for other posts on this topic but they're all for 1.19+. On legacy wiki 1.16.5 functions are mixed with 1.18.2 ones and they're hard to distinguish between. Note (just in case): I have optifine installed.

๐Ÿ’ฌ 1 • 1.16.5 • Forge • 

is it possible to use a tag in place of a single item in ItemEvents?

Morus: i want to use an ItemEvents.dropped to make a sound effect play when you drop certain items and i'd really rather not have to copy that code for each individual item.

๐Ÿ’ฌ 3 • 1.21 • Forge • 

Is there a way to detect when a Villager harvests a crop or disabling villagers from harvesting?

Fareskingtube: I want to disable villager potato farms so I want a way to cancel the event of them placing or breaking crops

๐Ÿ’ฌ 1 • 1.21 • Forge • 

How do I make an if statement to check for an item's nbt? 1.19 Forge

Merry: I have searched everywhere in this discord and cant get it to work

๐Ÿ’ฌ 32 • 1.19.2 • Forge • 

Removing potion effects with MoreJS

S q u i d: I am trying to remove both a few vanilla and several modded potions, I tried following the instructions for it as follows:

๐Ÿ’ฌ 2 • 1.21 • Forge • 

Custom dye colors

dong beater3000: Is it possible to create custom dye colors in KJS? Obviously creating things like the wool block and such are just creating separate blocks which is easy, but things like dynamically tinting sheep/banners/leather armor/etc is a bit less obvious.

๐Ÿ’ฌ 27 • 1.20.1 • Forge • 

What is happening here

โ˜ฉ Hiruka โ˜ฉ - ใฒใ‚‹ใ‹ DEV: This error confuses me, i don't know what is happening and neither why:

๐Ÿ’ฌ 71 • 1.20.1 • Forge • 

Edit backpack size

Zeus_32: I want to make sophisticated backpack have only 9 slots at base tier but i can't figure it out, the recipe it self shows, but it wont let me craft it

๐Ÿ’ฌ 48 • 1.21 • Forge • 

Okay so, how do i get fluid?

โ˜ฉ Hiruka โ˜ฉ - ใฒใ‚‹ใ‹ DEV: I wanna set fluid but determine it by quantity, similar of how i do with Item.of(), i don't know how to use the fluid determinator

๐Ÿ’ฌ 2 • 1.20.1 • Forge • 

Do anyone know how to create a custom bucket, like the wooden bucket mod.

uwuertywgohr: Do anyone know how to create a custom bucket, like the wooden bucket mod. I want to create different buckets in my modpack to contain different types of fluids.

๐Ÿ’ฌ 1 • 1.20.1 • Forge • 

Do anyone know how to create a custom bucket, like the wooden bucket mod

uwuertywgohr: Message not found

๐Ÿ’ฌ 0 • 1.20.1 • Forge • 

ignore water movement / "charm of sinking"

MintiestKitKat: this is probably a longshot, but, is there any way i could implement something like the Charm of Sinking from Artifacts with kubejs? something that makes a player move around freely in water, as if it wasn't there?

๐Ÿ’ฌ 2 • 1.20.1 • Forge • 

VisualJS shader not loading?

Yez: Simple shader thats just a copy of the vanilla Color Convolve shader but with contrast added fails to load without saying anything else?

๐Ÿ’ฌ 1 • 1.20.1 • Forge • 

Adding fluid tanks from other mods to Ad Astra Giselle

Rebel86: I would like to add another mod's fluid tank to the list of tanks compatible with Ad Astra Giselle's Space breathing enchant, but the mod doesn't support that natively. Is it possible to use KubeJS to add more, or do I need to open an issue on Giselle's Addon GitHub, I would really rather not if i don't have to.

๐Ÿ’ฌ 1 • 1.20.1 • Forge • 

Replacing loot with LootJS.modifiers but JER isn't updating properly

Fareskingtube: I tried using Lootjs to replace loot but JER isn't updating it The loots are spawning but JER isn't showing them:

๐Ÿ’ฌ 1 • 1.21 • Forge • 

is it possible to make a item drop from the face the player is actively mining?

Lezlie: title but i have thisjust dont know how to make it drop from said face (needed because it keeps dropping into a wall and dissapearing

๐Ÿ’ฌ 1 • 1.21 • Forge • 

Crash Report

Shugabrush: Seems like an armor stand has an index out of bounds exception. How do I fix this or identify exactly what's causing this?

๐Ÿ’ฌ 4 • 1.20.1 • Forge • 

Porting custom cake script to fabric

TheGardenOfTheHouseInsideAHome: I am attempting to use the script from <#1184426569012351017> in fabric and am running into crashes when starting the game, namely dev.latvian.mods.rhino.EcmaError: TypeError: Cannot find function tab in object net.minecraft.class_1792$class_1793@4351b265. I understand that this is most likely due to the forge classes in the script, but I do not know where to begin.

๐Ÿ’ฌ 1 • 1.20.1 • Fabric • 

Adding modded features to vanilla biomes

polytone 1.21.11 never: I'm trying to add some features from features from a mod (Alex's Caves) to some vanilla biomes, but it isn't working for me. Sorry for the noob question, what am I doing wrong?

๐Ÿ’ฌ 10 • 1.20.1 • Forge • 

Tooltip Adjustments

Mark: ``` ItemEvents.tooltip(event => {

๐Ÿ’ฌ 25 • 1.20.1 • Forge • 

about kubeJS

Jason.HanSway: I am using an identical copy of the modpack provided by the server host, but as shown in the screenshot, I am unable to join the server.

๐Ÿ’ฌ 3 • 1.20.1 • Forge • 

Showing 100/10951 posts