Support Tickets
This page is still WIP!
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.
need help with items/tags
CrystalFlux: how do i get the first item in a tag
Craft to Exile 2 modpack
sabenebe: kubejs failed to load error.Non [a-z0-9/._-] character in path of location. Can u please help? I dont know what to do i tried installing the older versions of kubejs and it didnt work.
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
block ambient sounds
ะดะทัััะธะบ: is it possible to make the vanilla block make sounds randomly?
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!
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!
Create an item
Joaco2702: I'm trying to create a new item for recipes and such, but for some reason it just doesn't appear in the game.
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
can someone rehearse my sequence recipe?
shazkot: it's supposed to spout lava then spout chocolate then deploy the pecan
Disable entity collision but still support blocks like signs, torches, etc.
GoldenFurredFox: My code:
Is it possible to remove the entire mod from JEI?
m1naj: 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?
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)
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.
animated blocks w/ geckolib
Ducko [Ping Plz]: can you make animated blocks with geckolib using kjs?
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?
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?
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 (:
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.
Gregtech Material creation is sus
Rundas: First off, I have posted this in the support channel on the gregtech discord, but I'm unfortunately being ignored.
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
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.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
Rarity changes do not apply to some items
TheOneCosmos: ```ItemEvents.modification(event => {
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.
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?
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.
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
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
Plugin not registering (Addon, Forge + Fabric)
Anonymous: https://github.com/evanbones/emi-plus-plus
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:
garnished spawns errors unrelated to my customizations
shazkot: is there a way to silence them?
Lost Cities hardcoded blocks customization
LughtMon: Hello, I want to change some bit of a code to generate one block instead of other one.
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.
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?"
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.
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:
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?
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?
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.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.
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
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
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
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.
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.
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
Custom Storage Item Help
WildFire905: I want to create an item which when right-clicked will open a custom menu for storage.
how to set max mana to 0 (iron's spells)
NaitanYT: im new to kubejs so idk from what even to start
Mekanism injecting recipe not working
teriyakiboi: The log is saying Empty tag: TagKey[mekanism:chemical / mekanism:hydrogen_chloride]
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.
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
KubeJS (non-fatal) error
babyaintmoe: I added the log file as I can't decipher the issue.
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
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
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...
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
why dosent this work?
TrueBornc: been following a youtube totrial and everything looks right but idk
sound does not play
Orka: BlockEvents.rightClicked("sheh:pebble", event => {
Custom flowers crashing worldgen
Zoe/Fermine: My flowers all work when placed but they end up crashing worldgeneration when I try to place them.
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.
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...
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.
ReferenceError: "RarityJSEvents" is not defined.
DAMBRR: [21:58:17] [INIT] KubeJS 2001.6.5-build.16; MC 2001 fabric
How to achieve the effect of replacing gravel with sand in the original position after destroying
Orka: As the title suggestsโค๏ธ
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?
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.
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.
[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.
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.
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?
attributes of armor dont stack
Sheiny: I'm copied code from: https://gnomebot.dev/paste/1422383110607077548/1422383110607077548/1422383110900940820
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.
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.
Client Event Making Block Emit Particle not Working SPECIFICALLY with custom KubeJS blocks
marcnum2: The code:```js
Change / Transform Block Exploded by TNT and / or Alex's Caves Nuke
marcnum2: Here's my block
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.
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
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?
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
placed block capabilities?
Cr0w37: I want to know how to increase enchantment level based on certain blocks placed around the enchantment table if possible?
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
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)
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 :/
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
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 :
Adding Aether Freezer Fuels
ShabyFrost: I would like to add snowballs as fuel for the Aether's freezer block.