Support Tickets


This page is still WIP!

Changing the durability of all items in a certain tag (e.g. #c:armors)?

The Goat: I want to multiply it by 2.

๐Ÿ’ฌ 1 • 1.21 • Forge • 

Can someone tell me how to fix this issue

Tsukasa: I tried to play alien evolution but then got hit with this message. What should ฤฑ do here?

๐Ÿ’ฌ 13 • 1.21 • Forge • 

Adding custom datapack items to creative menu

DarkBladeNemo: Is it possible to add custom items from a datapack to the creative menu? For example, AllTheMons X Mega Showdown adds some custom items that seem to be repurposed trial keys with additional data and a texture swap.

๐Ÿ’ฌ 1 • 1.21 • Forge • 

Executing command with custom command

Pambo: Hello!

๐Ÿ’ฌ 1 • 1.21 • Forge • 

trying to add new anmo and wands to Magic Combat Wands mod

LgndTheDredgen: I’m not sure how to modify mod api’s but I am willing ti try to learn how to and currently if you’re familiar to the Magic Combat Wands mod I want to try to create new Wands and Ammo types for the Wands using scripts

๐Ÿ’ฌ 1 • 1.20.1 • Forge • 

So, this script is prob breaking my game and i don't know why...

g: It was working before, but i must've done some change that breaks the game...

๐Ÿ’ฌ 25 • 1.20.1 • Forge • 

My way of schedule system doesn't work if player goes to sleep

HipsterSavage: Hello!

๐Ÿ’ฌ 29 • 1.20.1 • Forge • 

You thief mod - kubejs script wanted

KEJWII: I want to make mobs from comes alive mod become aggressive after opening chests from the village

๐Ÿ’ฌ 1 • 1.20.1 • Forge • 

How to reliably get attacker and target in player melee attacks

้“ƒ็‹ธ: How to reliably get both attacker (player) and target entity during melee attacks?

๐Ÿ’ฌ 1 • 1.20.1 • Forge • 

making a block spread from entity death like a sculk catalyst

TwistedKnight: Hello! I'm new here, and I'm very new to KubeJs + javascript so I'm looking for some help and pointers for this. I'm trying to make a block that acts like a sculk catalyst, where once a mob dies in an 8 block radius around the catalyst, an amount of stone blocks equal to the experience points dropped is spread around the point where an entity died (and if it's possible sculk veins adjacent to the replaced blocks). I've looked into playing around with the sculk charge itself, but from my understanding it's something hardcoded into Minecraft and it isn't something I can just edit.

๐Ÿ’ฌ 1 • 1.20.1 • Fabric • 

Adding Prosperity Shard Ex Deorum Seive output with kubejs

Gilded: I somewhat understand how the examples work and how to use them i just cannot figure out where to find the names of the items and processes i want to change. this is my first time ever trying to use kubejs

๐Ÿ’ฌ 21 • 1.20.1 • Forge • 

removing a world interaction recipe (from emi)

cebi: Hello! Is it possible to remove a world interaction recipe with KubeJS? Specifically, I'm trying to remove the netherite scrap from this recipe by the Spelunkery mod

๐Ÿ’ฌ 57 • 1.20.1 • Forge • 

Different Versions of Modded Armor?

Sparen22: I have an armor set added by a mod, and I want to create different armor sets with different fabric designs. Is there a way to duplicate the armor with the model and texture as a new armorset and retexture it? (different kilt designs)

๐Ÿ’ฌ 2 • 1.20.1 • Forge • 

Best way to change attack damage/speed on weapons that dont show Attributes?

Atlas: I'm trying to modify the attack speed and damage on weapons that don't have attributes that kubejs can use (causing the server to crash on startup) nor does the mod have source code I can modify (without a headache)

๐Ÿ’ฌ 1 • 1.20.1 • Forge • 

custom item block checker

Po: i want to make an item that checks for blocks in a certain orientation around it and if it find the right pattern it runs a command/function, similar to mana and artifice purified vinteum dust, i think i have an idea with how this might work but how do i check blocks relative to the rightclick location?

๐Ÿ’ฌ 5 • 1.20.1 • Forge • 

Exploding upon breaking the chestplate

Joaco2702: Is there any way to make it explode when it reaches 0 durability?

๐Ÿ’ฌ 1 • 1.20.1 • Forge • 

Culling issue

Mr.Fluff: currently im using

๐Ÿ’ฌ 1 • 1.20.1 • Fabric • 

Hi im having problems at using kubejs and idk whats happening, im using crafting recipe exporter ๐Ÿ”’

Sentmm: #Fabric #Forge

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

Hide items with certain NBTs in JEI

Ekazuya: Is it possible to hide an item from JEI only if it has a certain NBT? More specifically i'm trying to hide some TACZ attachments and ammos but since they all have ids like `tacz:ammo` or `tacz:attachment` is it possible to hide only those with specific nbts?

๐Ÿ’ฌ 1 • 1.20.1 • Forge • 

Give different drops depending on the mob's NBT

Xmapka: Can I detect what type of mob a player interacts with and give them an item based on that? In my case, I want to give the player pearlescent_froglight if they feed a frog of type minecraft:warm, verdant_froglight for minecraft:cold, and ochre_froglight for minecraft:temperate. Also, do I have to make any changes to the code if I want to add this to my server? In singleplayer it works but I don't know maybe the server side requires some additional arguments. Here's what I have after a little work with the wiki

๐Ÿ’ฌ 1 • 1.21 • Forge • 

Mob interaction code help

mcmiky3332210: been scratching my brain to try and getting a mob interaction between Kaleidoscope Cookery and DragN's Livestock Overhaul: Permafrost. to allow the millstone to be powered by a Aurochs. this is my current code if anyone can help me figure this out yod be a godsend for my tired brain.

๐Ÿ’ฌ 8 • 1.20.1 • Forge • 

Translating custom tooltips

PhénixCraie7: ```js

๐Ÿ’ฌ 1 • 1.21 • Forge • 

Shop clears inventory

Mr.Fluff: No matter what I’ve done, it clears the player’s inventory every time. Ideally, I want to be able to set prices for each block (for example, 1 emerald). The page system works as intended, but if there’s a better way, I’d gladly take it. As it currently stands, giving the items only works when the inventory isn’t full.

๐Ÿ’ฌ 5 • 1.20.1 • Fabric • 

Hiding/Showing JEI items/recipes dynamically

Ice: I'm doing a similar post in AStages discord, but i'm trying to show and hide recipes/items dynamically in JEI with kubejs and AStages without having to reload the client everytime.

๐Ÿ’ฌ 2 • 1.20.1 • Forge • 

need help with items/tags

CrystalFlux: how do i get the first item in a tag

๐Ÿ’ฌ 4 • 1.20.1 • Forge • 

1.20.1 Fabric Create

Luke | GOD: Hello Will there be a release for The KubeJS Create Mod on modrinth for 1.20.1 i see a Forge version but we would like to use it in Fabric on that version. Kind Regards

๐Ÿ’ฌ 1 • 1.20.1 • Fabric • 

block ambient sounds

ะดะทัŽั€ั‡ะธะบ: is it possible to make the vanilla block make sounds randomly?

๐Ÿ’ฌ 2 • 1.20.1 • Forge • 

Can't do anything with JEI at all

Tatsuki: So I was tweaking around with AStages and noticed that despite not being available, recipes still show up. Naturally I thought that I should be able to remove them using JEI but it seems that it's not the case at all!

๐Ÿ’ฌ 2 • 1.20.1 • Forge • 

Disable Items

EnzoRBK: I wanna disable tools and armors how do I do this?

๐Ÿ’ฌ 7 • 1.21 • Forge • 

Any way to save the last played date?

unknown.gif: Been trying to make a little script that'll check the last played date so that if you were to log back in a few days later certain things would happen to your inventory (Some foods spoiling, dust gathering up in your inventory, torches reverting to sticks, etc.). I've figured out how to have it grab the current date, though I've been struggling to get it to store the date as data onto the player whenever it logs off. It would technically just be storing it right as they log off as maybe data or nbt, but I'm not sure entirely why it's not working for now so I thought ask here!

๐Ÿ’ฌ 2 • 1.20.1 • Forge • 

Tool Modification

๐•ง๐•’๐•ค๐•ฅ๐•๐•ช๐•š๐•ค_๐•ค๐•’๐•ง๐•–๐••: Evening, could someone perhaps direct me to the documentation that shows me how to change the attributes of different tools? or let me know if changing attributes of tools is possible with KubeJS

๐Ÿ’ฌ 1 • 1.21 • Forge • 

can someone rehearse my sequence recipe?

shazkot: it's supposed to spout lava then spout chocolate then deploy the pecan

๐Ÿ’ฌ 22 • 1.21 • Forge • 

Disable entity collision but still support blocks like signs, torches, etc.

GoldenFurredFox: My code:

๐Ÿ’ฌ 2 • 1.20.1 • Fabric • 

Is it possible to remove the entire mod from JEI?

Anonymous: Hello everyone. I have a mod with 100+ items, but I only need 10. Can I hide the other 90 by manually writing a list of the 10 items I need?

๐Ÿ’ฌ 12 • 1.20.1 • Forge • 

How do call superclass version of a method I am overriding within JavaAdapter?

Trashbox Bobylev: `super.method` doesn't work (`super` word is reserved, apparently)

๐Ÿ’ฌ 1 • 1.21 • Forge • 

What is the symbol for 'or'?

marcnum2: ```js

๐Ÿ’ฌ 5 • 1.20.1 • Forge • 

saving NBT with array

Sylvia ( @ please ): ```js

๐Ÿ’ฌ 13 • 1.21 • Forge • 

Prevent block breaking if using incorrect tool

qwerty97475: I want to make a script for my [1.21.1 NeoForge] modpack that prevents you from breaking wood or stone blocks, unless you're using the correct tool. I have no idea how to do this though.

๐Ÿ’ฌ 6 • 1.21 • Forge • 

animated blocks w/ geckolib

Ducko [Ping Plz]: can you make animated blocks with geckolib using kjs?

๐Ÿ’ฌ 1 • 1.21 • Forge • 

Pig riding script repair

dong beater3000: A while ago I got help making a script that allows pigs to be controlled like horses while being ridden. This was for 1.19.2, and worked very well on that version. Now, I am trying to move pack development over to 1.20.1 (forge) and the script no longer works as expected. I was able to get the game to run and pigs do indeed move when you press the WASD keys, but it has some other issues while moving around that make controlling it significantly more cumbersome. Notably, the main issue seems to be that on this version the pig is attempting to turn to match the direction you input which messes with the camera, which it did not attempt to do in 1.19.2. How could I fix this error?

๐Ÿ’ฌ 21 • 1.20.1 • Forge • 

A way to make bedrock mineable?

ren2090|๐Ÿ”ฎ Guild of Dark Magic: I want to somehow set it's hardness to about obsidian's hardness. Is this doable?

๐Ÿ’ฌ 1 • 1.20.1 • Forge • 

does this work

Zenistoo: LootJS.lootTables(event => {

๐Ÿ’ฌ 3 • 1.21 • Forge • 

How Do I Make Players Spawn In The Nearest Underground Cave When First Making A World?

PenguinMercy: im making a pack wher your a dwarf and you spawn in caves so you can diggy diggy holes and stuff (:

๐Ÿ’ฌ 1 • 1.20.1 • Forge • 

why are my recipes not registering?

Stevemine26: addons: KubeJS Create

๐Ÿ’ฌ 17 • 1.20.1 • Forge • 

Disabling Epic Fight Stamina and Skills for EF 20.14.4

Big_Chungus: Hello, is there any way to disable the skills and stamina from epic fight with kubejs? I want to try and use the epic fight mod with Pufferfish passive skills instead, that way there aren’t any conflicts between the two mods, many thanks.

๐Ÿ’ฌ 1 • 1.20.1 • Forge • 

Make all advancements announce to the chat

throw new NullPointerException(): How can I make all advancements send to the chat? `ServerEvents.highPriorityData` does not exist and I can't add/modify json that way to make it

๐Ÿ’ฌ 32 • 1.21 • Forge • 

How to check whether a biome exists in a tag?

MasterNinad: I got the biome using level.getbiome() method which works perfectly. Now do I check weather that biome is in this tag - mymod:biomes/cold

๐Ÿ’ฌ 1 • 1.21 • Forge • 

1.21.1

Allisonispookie: heya, im assuming kubejs 1.21.1 for fabric is out of the question? desperately looking for a way to add items lol

๐Ÿ’ฌ 5 • Unknown • Forge/Fabric • 

Rarity changes do not apply to some items

TheOneCosmos: ```ItemEvents.modification(event => {

๐Ÿ’ฌ 1 • 1.20.1 • Forge • 

Mechanical Crafter Recipe Not Working (1.20.1)

The Eleventeenth Drawgon: I am trying to make a custom Mechanical Crafter Recipe. I followed all the syntax and yet when I tried it in game JEI won't register it and when I tried to make it in game it did not work. I've checked over it multiple times and made sure all the item ID's were correct. KubeJS itself isn't even giving me any errors so I'm currently stumped as to what could be going on.

๐Ÿ’ฌ 29 • 1.20.1 • Forge • 

Remove item for Lootr

Zer0: I want to remove certalyn itens for the lootr, this method is correct for remove all eyes in the lootr table?

๐Ÿ’ฌ 1 • 1.21 • Forge • 

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 • 

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

๐Ÿ’ฌ 5 • 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

๐Ÿ’ฌ 5 • 1.20.1 • Forge • 

Plugin not registering (Addon, Forge + Fabric)

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

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

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?

๐Ÿ’ฌ 5 • 1.21 • 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.

๐Ÿ’ฌ 6 • 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 • 

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:

๐Ÿ’ฌ 3 • 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?

๐Ÿ’ฌ 3 • 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?

๐Ÿ’ฌ 5 • 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

๐Ÿ’ฌ 8 • 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]

๐Ÿ’ฌ 4 • 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 • 

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...

๐Ÿ’ฌ 50 • 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 • 

Showing 100/10987 posts