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
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
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.
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?
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.
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?
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
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.
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
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
Game has been crashing for no reason with kjs apparently being the cause
ja80991: Message not found
Dynamic crafting missing check for axe or something?
VERY bad name: Ima bad coder so... i probably missed something crucial.. please help.
how to make mob effect that makes you invulnerable to certain damage type? for example tacz:bullet
Lebbog: title says it all
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
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.
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
Modifying player's attribute after equipping/unequipping items
molioron: Hey, I have some attribute X that is modified by certain items.
Relplace inpute inscriber.
ERROR: It just dosen't work. If important I'm using the example ae2 support script for editing some recpies to.
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?
Recipe Help with Kubejs items (Neoforge 1.21.1)
vastlyis_saved: items.js file (item creation script)
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?
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)
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.
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.
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.
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.
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.
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?
[NeoForge, kubejs 2101.7.2] ServerEvents.generateData sample?
Drone: **kubejs-neoforge-2101.7.2-build.321.jar**
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
potion in the script failing to work (it appeared twice)
Wither: ID.java#92: Error in 'ServerEvents.recipes': Could not create ID from 'Potion'!
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.
Lootjs scripts failing to work at all
Wither: These scripts never work no matter how I change them:
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?
LootJS loot pool
Peepo: Hello I was wondering how I could make a mods loot pool rarer or less item count.
How to use .finishUsing?
ัะปัะฑะฐัะบั: Gime me woriking examples please.
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.
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
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
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...
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
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?
slip on any block like ice
Jaofumi: how would i make a player slip on blocks like they were ice
How to change the flow speed of custom liquids to be as slow as lava?
๐๐ฅ๐ซ๐๐ ๐๐จ: title.
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.
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
spawn particles for specific players only
Jaofumi: how can i spawn particles that only show for specific players
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.
Make `var` function scoped
KonSola5: Currently in KubeJS, `var` is **block** scoped, which is not compliant with ECMAScript.
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.
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.
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
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
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
Using Item.of(<item>) for item with nbt then removing it's recipes not working
RQ: ``startup_scripts``
Make only op players able to break/place blocks
Tonitzu: I have this code that in theory should work but it doesn't.
LootJS removing all items that fit a regex from all tables
Catgirl in a Chally 2: i am using this code
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.
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:
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?
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.
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?
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.
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.
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
Replace Vanilla Crafting (Shaped & Shapeless) with mechanical crafting
McZimo: Code:
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.
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)
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
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.
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.
Registering a potion
Dwayne: in `root/kubejs/startup_scripts/cure_potion.js`
Xycraft Extractor Recipe
Raven: Please can anyone help me maybe step by step how I can achieve making a xycraft extractor output recipe…
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
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.
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.
I haven't used KubeJS in a while and forgot what I'm doing wrong
Thijmen: ```ServerEvents.recipes(event => {
fluid registry issue
๐ฃ๐ฟ๐ถ๐ฐ๐ธ๐น๐ฒ๐ป: why is this error happening?
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.
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.
get burnTime in startup event [ItemModificationKubeEvent]?
Drone: Is there anyway to get/check for the burning time at the startup event?
removing a item drop when broken using silk touch with lootjs
Hayes: or separate loot drops when using silk touch also image unrelated
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.
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
Is there a way to record sound?
Brainhole: Is there a way to record sound like recorder of the random things mod?
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
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.
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.
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
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?