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.
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?
Can't remove "incorrect for wooden tool" block tag (Neoforge)
NoMoreStars: Been trying to remove this tag using the following code:
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
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).
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
Plugin not registering (Addon, Forge + Fabric)
Evan: https://github.com/evanbones/emi-plus-plus
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
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?"
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?
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
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.
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.
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?
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.
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.
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
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
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:
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.
What is happening here
โฉ Hiruka โฉ - ใฒใใ DEV: This error confuses me, i don't know what is happening and neither why:
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
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
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.
Do anyone know how to create a custom bucket, like the wooden bucket mod
uwuertywgohr: Message not found
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?
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?
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.
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:
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
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?
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.
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?
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.