Support Tickets


This page is still WIP!

1.20.1 error

Torqs: i need help i making sum ai slop but it has one error and i think it will work this is it and heres the code if u can figure it out i would appricate it

๐Ÿ’ฌ 5 • 1.20.1 • Forge • 

remove all previous loot to then add my own

Pom: how can i

๐Ÿ’ฌ 5 • 1.20.1 • Forge • 

Removing ponders

Layerless: Hi, is there any way to remove ponders from items using kubejs? Id ideally want to remove the magnetic force thing too

๐Ÿ’ฌ 3 • 1.20.1 • Forge • 

Error adding shaped recipe

ArchmageAstra: I feel like I'm going insane because every example that I can find says my formatting should be correct, but I keep getting an error on something that should be insanely simple.

๐Ÿ’ฌ 5 • 1.21 • Forge • 

Load order of files

Mogwump: Probably a somewhat quick question: do recipes/tags always load one after the other or can I use headers with priority to load a ServerEvents.recipes then tags then a different recipes file?

๐Ÿ’ฌ 2 • 1.21 • Forge • 

Crafting table GUI

GlueTasteGood: ive been creating a custom crafting table and i have no idea where to start in trying to make it pull up a vanilla crafting interface.

๐Ÿ’ฌ 1 • 1.20.1 • Forge • 

Getting the original crafting recipe input

IceMaster1294: I am trying to access the input order of ingredients to a bunch of crafting recipes sequentially. When we write recipes for shaped crafting, we use a list and a dictionary as event.shaped(output, [“123”,”456”,789”], {dictionary of values}). How can I go about getting the order of items in the crafting grid for a process like this?

๐Ÿ’ฌ 1 • 1.20.1 • Forge • 

Settings up events for an FTB quest

Layerless: Hi, im trying to make it so that you have to either look at a create superheated blazeburner or right-click a blaze burner with a blaze cake for you to complete the quest, but it seems like the only way to do that is using the KubeJS events section, which unfortunately has nearly no documentation on the wiki whatsoever. Does anyone have any idea how would i go about setting this up? is it even possible

๐Ÿ’ฌ 12 • 1.20.1 • Forge • 

Item food modification giving error

Chef_BOI_Ardee: I wrote the foodProperties modification code 1:1 from the KubeJS website, but the arrow ( ' => ' ) is causing an error. I've tried to write this without it, but it still won't work because then 'food' is not defined. Can someone help me out please? Code and error is in the screenshot attached to this.

๐Ÿ’ฌ 27 • 1.20.1 • Forge • 

any script that changes tacz weapon damage type?

Lebbog: title says it all

๐Ÿ’ฌ 1 • 1.20.1 • Forge • 

Custom harvest tiers between vanilla ones

Alazi: I know that in 1.21, tier.level was removed and replaced with tags, but I don't know how to create my own tag, for example kubejs: incorrect_for_copper

๐Ÿ’ฌ 4 • 1.21 • Forge • 

KubeJS is falling apart from something simple and I don't know what to do

Crimson Ray: All I've done is use this little bit of code and KubeJS falls appart

๐Ÿ’ฌ 7 • 1.21 • Forge • 

Game has been crashing for no reason with kjs apparently being the cause

ja80991: Message not found

๐Ÿ’ฌ 4 • 1.20.1 • Forge • 

json randomly cant find method

Adolla: script:

๐Ÿ’ฌ 32 • 1.20.1 • Forge • 

Dynamic crafting missing check for axe or something?

VERY bad name: Ima bad coder so... i probably missed something crucial.. please help.

๐Ÿ’ฌ 3 • 1.20.1 • Forge • 

how to make mob effect that makes you invulnerable to certain damage type? for example tacz:bullet

Lebbog: title says it all

๐Ÿ’ฌ 1 • 1.20.1 • Forge • 

Check if chunks loaded by player/load chunk with entity

deepa: Trying to check if a chunk is loaded to spawn a meteor thingy in it that'll fly at a specific location, the methods I am using to check if the chunks loaded is odd though as sometimes random faraway chunks will be loaded unexpectedly, causing the meteor to spawn then get unloaded after a few seconds causing my meteor to not land

๐Ÿ’ฌ 15 • 1.20.1 • Forge • 

Iron's Spellbooks KJS not working

Pitersonix: iron.js in server scripts:

๐Ÿ’ฌ 5 • 1.21 • Forge • 

How to read custom NBT in 1.21?

Kazini: Hey! I have tried looking for example scripts using NBT, but found conflicting information about people using NBT and others that mention that the NBT system was replaced by components, but with no clear distinction as to whether this implies a removal of the NBT capabilities.

๐Ÿ’ฌ 3 • 1.21 • Forge • 

how do i change an items size

Dracoruff1211: i need to change the size of this item to be at least 2x its current size else itll be a bit funky, and have mixels

๐Ÿ’ฌ 10 • 1.20.1 • Forge • 

Modifying player's attribute after equipping/unequipping items

molioron: Hey, I have some attribute X that is modified by certain items.

๐Ÿ’ฌ 3 • 1.20.1 • Forge • 

Relplace inpute inscriber.

ERROR: It just dosen't work. If important I'm using the example ae2 support script for editing some recpies to.

๐Ÿ’ฌ 22 • 1.20.1 • Forge • 

how do i give item custom nbt tag upon crafting them ?

VERY bad name: how do i give item custom nbt tag like from tconstruct? "tconstruct:harvester tier): wood" so it can break like copper but not iron etc?

๐Ÿ’ฌ 12 • 1.20.1 • Forge • 

Recipe Help with Kubejs items (Neoforge 1.21.1)

vastlyis_saved: items.js file (item creation script)

๐Ÿ’ฌ 18 • 1.21 • Forge • 

Is there any way to implement anti xray?

Wach: I thought of adding an anti xray resourcepack into the assets folder, but that didnt work because xray(resourcepack) overrides it. I dont really care about xray mods, only the resourcepack. Is there any way to change the assets in the scripts? Or any other way to solve my problem?

๐Ÿ’ฌ 1 • 1.19.2 • Forge • 

datagen recipes

NotNagato: hey im trying to get this to work im really lost on what ive done wrong here can anyone please help (all names and stuff is right)

๐Ÿ’ฌ 83 • 1.20.1 • Forge • 

Dynamic crafting works on logs but..

VERY bad name: I tried adding myself something to the script cuz of my idea but it dont wanta to work.. I cant figure out why.

๐Ÿ’ฌ 3 • 1.20.1 • Forge • 

Replace item in hand on right click BUT keep the tag data

s0v_: Hi, I'm trying to make it so you can "activate" and "deactivate" a pickaxe - which is basically replacing the item in hand. It works good so far, but I'm looking for a way to keep the nbt data between the two, namely the enchantments.

๐Ÿ’ฌ 1 • 1.20.1 • Fabric • 

Code to give any player with a tag a specific advancement.

- อ€ฬ— แ—ฉแ‘Žแ—ชแ–‡ฦแ—ฏ อฬ–-: Basically looking to make it so the server checks if a player is tagged with X and if so, they gain x Advancement immediately.

๐Ÿ’ฌ 1 • 1.20.1 • Forge • 

How do I replace potion effect with another on infliction?

Megabit: I have two redundant bleed status effects in my pack and I want to make it so when the debuff is inflicted on an entity the game immediately replaces it with the correct one by clearing it and adding the right one. I know what this would look like in psuedocode I just have no idea how to make it work with this.

๐Ÿ’ฌ 3 • 1.20.1 • Forge • 

Help with kubejs and Thin Air mod.

¸,.•DemonsHeart•.,¸: Hiii, so recently I've been trying to make a server where there would be custom dimensions and origins, and i wanted to see if it was possible to add new air conditions to the Thin Air mod using kubejs.

๐Ÿ’ฌ 2 • 1.20.1 • Forge • 

Modify liquid interaction with the player

Anonymous: Hello, I have a question, can I modify an existing liquid and change its interaction with the player? For example, making water work like lava, slowing down entities, or making lava stop an entity from burning?

๐Ÿ’ฌ 1 • 1.20.1 • Fabric • 

[NeoForge, kubejs 2101.7.2] ServerEvents.generateData sample?

Drone: **kubejs-neoforge-2101.7.2-build.321.jar**

๐Ÿ’ฌ 1 • 1.21 • Forge • 

How can I animate the item stack for only one hand?

Andrezinh0: I'd like to filter between the mainhand and offhand stacks so that only one of them receives the animation

๐Ÿ’ฌ 7 • 1.20.1 • Forge • 

potion in the script failing to work (it appeared twice)

Wither: ID.java#92: Error in 'ServerEvents.recipes': Could not create ID from 'Potion'!

๐Ÿ’ฌ 1 • 1.21 • Forge • 

Replace texture from another mod

๐”ž๐”ด๐”ฆ: Hi! I want to replace a screen from another mod with kubeJS neoforge 1.21.1. I have permission from the authors of that mod. But cant get the correct events.

๐Ÿ’ฌ 6 • 1.21 • Forge • 

Adding Mods to ATM10 Recipe Errors

Momo: Hi there!

๐Ÿ’ฌ 2 • 1.21 • Forge • 

Lootjs scripts failing to work at all

Wither: These scripts never work no matter how I change them:

๐Ÿ’ฌ 29 • 1.21 • Forge • 

Preserve nbt data in a crafting recipe?

Phillip and Friends: Is there a way to copy nbt data from an input ingredient and apply it to the output of a shapeless or shaped recipe?

๐Ÿ’ฌ 2 • 1.20.1 • Fabric • 

LootJS loot pool

Peepo: Hello I was wondering how I could make a mods loot pool rarer or less item count.

๐Ÿ’ฌ 1 • 1.20.1 • Forge • 

How to use .finishUsing?

ัƒะปั‹ะฑะฐัˆะบั: Gime me woriking examples please.

๐Ÿ’ฌ 1 • 1.20.1 • Forge • 

Making multiple armors via hex coloring

ItzByc (Ping on reply): I want to make some armors that interact as a leather armor like with the texture colors, since it will be a customizable armor that will work with dyes.

๐Ÿ’ฌ 1 • 1.20.1 • Forge • 

Running a mod's command after a short delay when an advancement triggers?

Plazzy: Since datapacks are proving complicated for this, I wanted to know how I can get KubeJS to run a command for the player shortly after they get an advancement (not immediately though)? The syntax for advancement events are a bit unclear to me so I'm trying to see who might have some pointers

๐Ÿ’ฌ 2 • 1.21 • Forge • 

How to ignore a recipe

Bell: I want to ignore this recipe because I'm not using Ars on my modpack but I'm using allthemodium mod but for some reason I don't know the right id, I tried all the combinations but none of them did disable this recipe and none of them is working, some of them that I tried

๐Ÿ’ฌ 2 • 1.21 • Forge • 

prevent particular enchant being applied to specific item/s [Fabric - 1.20.1]

mr_ron: is there a way to do this? i've seen chatter about maybe it's possible with morejs but as yet i've not seen how, so maybe explain a bit if possible and you know...

๐Ÿ’ฌ 1 • 1.20.1 • Fabric • 

Biome/Dimension Locked Recipies

beannn: A Quick question, Just curious if its possible, id like to make some recipes locked behind certain dimensions or biomes

๐Ÿ’ฌ 3 • 1.20.1 • Forge • 

any idea for this?

Renegade4339: so uhhh, i want to make it so that i can pick up iron's ink types out of a basin using a glass bottle. any idea what's the script for this?

๐Ÿ’ฌ 8 • 1.21 • Forge • 

slip on any block like ice

Jaofumi: how would i make a player slip on blocks like they were ice

๐Ÿ’ฌ 1 • 1.20.1 • Forge • 

How to change the flow speed of custom liquids to be as slow as lava?

๐•€๐•ฅ๐•ซ๐•Ž๐• ๐•†๐•จ: title.

๐Ÿ’ฌ 4 • 1.20.1 • Forge • 

Custom 1 block tall door?

SoundsDotZip: I'm wondering if it's possible to make a custom door that is only 1 block tall instead 2.

๐Ÿ’ฌ 1 • 1.20.1 • Fabric • 

ClientEvents.generateAssets() .json() doesn't seem to be working

CelestialAbyss: Checking through the exported results and I immediately see that the json files have not been generated internally, so not sure what is wrong

๐Ÿ’ฌ 5 • 1.21 • Forge • 

spawn particles for specific players only

Jaofumi: how can i spawn particles that only show for specific players

๐Ÿ’ฌ 1 • 1.20.1 • Forge • 

How to make a curious item render on head?

ItzByc (Ping on reply): I'm trying to make a plushie of my kubejs making be able to sit on my head and me able to unequip it.

๐Ÿ’ฌ 1 • 1.20.1 • Forge • 

Make `var` function scoped

KonSola5: Currently in KubeJS, `var` is **block** scoped, which is not compliant with ECMAScript.

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

No kubejs output (of errors or loaded) but commands working

pawelik001: As said above, installed latest available kubejs, rhino and architectury api. using minecraft 1.20.1 with forge 47.4.0, but when clicking F3 + T, there is nothing happening, only reloading resource pack, no output from kubejs. /kubejs commands are working.

๐Ÿ’ฌ 2 • 1.20.1 • Forge • 

Changing the specific item used to tame an entity

charlierogersCretoxyrhina: I’m currently trying to streamline a private modpack I’m playing by removing duplicate features/mobs. Anyway, the mod bountiful critters adds a humpback whale, which is bred through the mod’s krill item. I prefer the Ben’s shark’s mod krill, and I want to make it so the whale is bred by the Ben’s shark’s krill. So, does anyone know how to change the item for this? I was told entityJS doesn’t help with that, apparently.

๐Ÿ’ฌ 1 • 1.20.1 • Forge • 

no friendly fire

Zenistoo: any way i can make it so mobs dont attack eachother for example a zombie with a crossbow accidentally hits another zombie i want it so they dont attack eachother anymore

๐Ÿ’ฌ 1 • 1.21 • Forge • 

How to change or add recipes for a series of Integrated Dynamics mods

ะกะฝะฐะนะฟTih18: The problem is that Integrated Dynamics uses some other system for recipes and has not yet figured out how to work with these

๐Ÿ’ฌ 3 • 1.20.1 • Forge • 

How to make block like crafting table that would have special recipes

-Ghost-: Smth like so when you put Netherite and gold to normal crafting nothing happens but when you put gold and netherite to special crafting it gives you gilded netherite

๐Ÿ’ฌ 1 • 1.21 • Forge • 

what this actually means?

ISReeDShow: idk what this error means, help

๐Ÿ’ฌ 24 • 1.21 • Forge • 

How do i make/add custom block models?

Vampy: (as in decorational blocks)

๐Ÿ’ฌ 16 • 1.21 • Forge • 

Using Item.of(<item>) for item with nbt then removing it's recipes not working

RQ: ``startup_scripts``

๐Ÿ’ฌ 3 • 1.20.1 • Forge • 

Make only op players able to break/place blocks

Tonitzu: I have this code that in theory should work but it doesn't.

๐Ÿ’ฌ 8 • 1.18.2 • Forge • 

LootJS removing all items that fit a regex from all tables

Catgirl in a Chally 2: i am using this code

๐Ÿ’ฌ 6 • 1.21 • Forge • 

MutableItem property .armorProtection not existing?

Mercury: I was trying to modify the armor that different items give, however during startup it says that this property does not exist. There is nothing in the wiki about it, so I was wondering if its supposed to happen or if there is a workaround.

๐Ÿ’ฌ 1 • 1.21 • Forge • 

How do I register a block?

smoothcraft: ```

๐Ÿ’ฌ 3 • 1.21 • Forge • 

Cancel Immersive Engineering multiblocks in select dimensions

Alator: Hello! I'm in the event rabbit hole more than I understand, so let me know if there is a better channel for this question than here:

๐Ÿ’ฌ 4 • 1.20.1 • Forge • 

Messed up food

Skemech or something: I have a script that makes basically all raw meat not worth eating, but how could I make them only have a chance to be hunger inducing?

๐Ÿ’ฌ 8 • 1.19.2 • Forge • 

How to display custom usernames/nicknames above players' head the way plugins can?

Leveloper: Hello! As the title states, I want to be able to render completely custom text above players' head *instead* of their username. This is because I have a custom nickname system that I would like to be used. Is this possible? If so, how? I am willing to use addon mods if necessary.

๐Ÿ’ฌ 1 • 1.20.1 • Forge • 

Running a script for all mobs from a specific mod.

ren2090|๐Ÿ”ฎ Guild of Dark Magic: Basically, I want to cancel all mutant mobs spawn events that spawn above y=0 in the overworld. Is there a way to target everything from the mod, or do I need to target them each individually?

๐Ÿ’ฌ 2 • 1.20.1 • Forge • 

Make entities cast spells without modifying normal behavior

Estatrix: As the title said, is there a way to add a chance to cast a spell under certain conditions? The exaple on EntityJS isn0t exactly what I want.

๐Ÿ’ฌ 24 • 1.20.1 • Forge • 

KubeJS Thermal - Tree Extractor Issue

PolPop: Here is my code:

๐Ÿ’ฌ 2 • 1.21 • Forge • 

How can I make piglins attack other entities?

Andrezinh0: I tried using EntityJSEvents.addGoals, but I realized it doesn’t work because piglins use buildBrain.

๐Ÿ’ฌ 44 • 1.20.1 • Forge • 

mob loot removal

Algrate: I have a modpack and I'm trying to remove a modded item that drops from a ravager, can someone help me? Thanks

๐Ÿ’ฌ 1 • 1.20.1 • Forge • 

Replace Vanilla Crafting (Shaped & Shapeless) with mechanical crafting

McZimo: Code:

๐Ÿ’ฌ 3 • 1.20.1 • Forge • 

Immersive Engineering blast furnace

harrison: I'm trying to make an Immersive Engineering Blast Furnace recipe that takes a custom cobblestone bucket (cobinc_addons:wooden_bucket_of_cobblestone) and outputs a lava-filled wooden bucket (woodenbucket:wooden_bucket) with 1000 mB of lava.

๐Ÿ’ฌ 8 • 1.21 • Forge • 

Can't Use Potion in MoreJS Custom Brewing?

Vansten: Using MoreJS, the below example works when using a place holder item (in this case emerald)

๐Ÿ’ฌ 9 • 1.20.1 • Forge • 

is there a way to make mobs immunity/resistance to certain types of damage?

Adolla: i have a mod named "wither reincarnated," which amplifies the wither by a lot but it gets easily wrecked by Scorched Guns 2 weapons. it has a 2nd phase that makes it immune to bows, but not guns. i would like to know how so that guns arent as op against bosses

๐Ÿ’ฌ 9 • 1.20.1 • Forge • 

Failing to set delta motion on mobs

ENNWAY: i'm attempting to give shovels the property of knocking enemies in mid-air and stunning them. stunning functionality is 100% complete and works as intended but for one reason or another kubejs doesn't seem to like entity.addDeltaMotion very much.

๐Ÿ’ฌ 1 • 1.21 • Forge • 

Is it possible to add a tag to every item at once?

PotatoBro: I see the event.removeAll but is there an alternative like event.addAll because this mod im using was made really badly and I need to get it on a whitelist, but I want every item to be in the storage.

๐Ÿ’ฌ 3 • 1.20.1 • Forge • 

Registering a potion

Dwayne: in `root/kubejs/startup_scripts/cure_potion.js`

๐Ÿ’ฌ 12 • 1.21 • Forge • 

Xycraft Extractor Recipe

Raven: Please can anyone help me maybe step by step how I can achieve making a xycraft extractor output recipe…

๐Ÿ’ฌ 10 • 1.20.1 • Forge • 

Worldgen modded block removal

Algrate: hello i have a modpack and there is a block that generates in rivers and in caves "immersive_weathering:silt". im trying to prevent it from generating. I've tried many ways i could find on the internet but couldnt make it to work. can someone help me? thanks

๐Ÿ’ฌ 300 • 1.20.1 • Forge • 

How many ticks since entity killed?

Artemis8bit: I want to track how long it has been since a player has killed an entity (say 100 in game days) so I can make it into a custom FTB Quest.

๐Ÿ’ฌ 6 • 1.21 • Forge • 

Issue in adding custom recipe for an item with specific nbt

Legend/Lele: Trying to add a custom recipe in atm10 tts for a modularbee item.

๐Ÿ’ฌ 26 • 1.21 • Forge • 

I haven't used KubeJS in a while and forgot what I'm doing wrong

Thijmen: ```ServerEvents.recipes(event => {

๐Ÿ’ฌ 42 • 1.18.2 • Forge • 

fluid registry issue

๐—ฃ๐—ฟ๐—ถ๐—ฐ๐—ธ๐—น๐—ฒ๐—ป: why is this error happening?

๐Ÿ’ฌ 24 • 1.21 • Forge • 

Item right click into chest-like GUI with complex cycle mechanic

hey: I am trying to create a clash royale battle deck GUI system for minecraft java 1.20.1 using kubejs.

๐Ÿ’ฌ 30 • 1.20.1 • Forge • 

How to do startup scripts?

kuyataki: Im still learning java with like 2 weeks worth of knowledge. I am trying to make a startup script that can run a "/reload" command when you launch the game. I need this because im running into a problem where im trying to join a minecraft server with my modpack and its telling me that some items cant path to their nbt tags. Something to do with preloading the creative tab. "/reload" Fixes this problem hence why I need help with a startup script for it.

๐Ÿ’ฌ 3 • 1.21 • Forge • 

get burnTime in startup event [ItemModificationKubeEvent]?

Drone: Is there anyway to get/check for the burning time at the startup event?

๐Ÿ’ฌ 5 • 1.21 • Forge • 

removing a item drop when broken using silk touch with lootjs

Hayes: or separate loot drops when using silk touch also image unrelated

๐Ÿ’ฌ 3 • 1.20.1 • Forge • 

Automatically generating EMI world interaction recipes from RecipeManager?

selene ๐ŸŒ™: so, i've been trying to automatically generate EMI [world interaction recipes](<https://github.com/emilyploszaj/emi/wiki/Adding-Recipes#adding-world-interaction-recipes>) to replace create's manual item application recipes (which i can then hide with [recipe filters](<https://github.com/emilyploszaj/emi/wiki/Recipe-Filters>)). i *was* able to get it working using a more manual approach, but i *really* want the process to be fully automatic, pulling all the data straight from the RecipeManager.

๐Ÿ’ฌ 3 • 1.21 • Forge • 

create (mod) output having a tfc food trait

2002perc: im trying to make a create compacting recipe with the result having a tfc food trait

๐Ÿ’ฌ 1 • 1.20.1 • Forge • 

Is there a way to record sound?

Brainhole: Is there a way to record sound like recorder of the random things mod?

๐Ÿ’ฌ 1 • 1.20.1 • Forge • 

Is there a way to add modded mobs naturally despawn like hostile mobs

Aary: I want to make a mob from a different mod to despawn when players get far away like a vanilla hostile mob

๐Ÿ’ฌ 2 • 1.20.1 • Forge • 

custom fuel block

Remag: hey so im trying to make a block work as a furnace fuel but i cant seem to get it to work, im sure its something simple but theres hardly anything on the wiki.

๐Ÿ’ฌ 15 • 1.20.1 • Forge • 

Help with block proximity script with sound

FKDeth: Hi, I'd like to create a script that plays a custom sound from a texture pack or Kube.js assets when I approach certain blocks (which can be added or removed). My idea is to make a Geiger counter sound when I approach "radioactive" material, but I can't get it to work, and ChatGPT isn't very helpful.

๐Ÿ’ฌ 2 • 1.20.1 • Forge • 

Hide SpartanWeaponry tooltip properties

Estatrix: Is it possible to hide the Traits/Material tooltip from all items using Kube? They take too much space but I don't want to directly disable them

๐Ÿ’ฌ 1 • 1.20.1 • Forge • 

SetBurnTime partly ignored?

Aceplante: ```js

๐Ÿ’ฌ 3 • 1.20.1 • Forge • 

modify default repairIngredient

mr_ron: is there a way (provided or other) anyone knows of to have iron tools, weapons an armour be repaired with iron nuggets instead of iron_ingots?

๐Ÿ’ฌ 25 • 1.20.1 • Fabric • 

Showing 100/10584 posts