Support Tickets
This page is still WIP!
how i detect the gamemode of a player?
Caden: ``if (!player.isCreative) {`` isnt working, and i didnt see anything else in the suggestions
can block entities be edited or used?
Sylvia ( @ please ): i know that normal blocks cant be made ticking but can blocks that already tick be read? and can you get the nbt of them and blocks around them?
kubejs sharing
Caden: is it possible to "package" a kubejs project as a .jar mod so that I can share the mod with other people easily?
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.
Add a new heat source for create
Sylvia ( @ please ): I'm trying to make a new heat source for the create mod
How is the .item() Block Builder Method used?
ThreeForths: I would like to associate an Item with a block using the .item() method. However I can't find documentation for it.
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.
Change all creatures attributes
g: Is it possible to change creatures attributes? Like, all mobs of certain type'll spawn with modified attributes
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.
Adding non-Vanilla Attributes to items (specifically armor here)
Gelopsys: The game crashes when the item is on screen because it can't find the attribute, its looking in minecraft attributes and idk how to redirect it to the mods attribute.
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
[]20112x: 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.
why the heck this is not working?
β© Hiruka β© - γ²γγ DEV: this is so fudging annoying:
How to read arbitrary NBT without parsing getNbtString()?
ManFromIcyWastelands: Warning: I have optifine installed.
can i force an item texture?
LgndTheDredgen: some mods item textures are glitched and i cant directly replace them to fix it, but can I make a script that forces an item to use that texture instead?
EnderStorage recipe edits not working?
skoolboi: Not sure why, but the following code in my server_scripts isn't modifying the recipes. Any ideas why?
How do i intercept end crystal damage?
RARE PANDA: I'm trying to make it so the player cant break an end crystal from too far away. This script doesnt even say hi, and the entityevents.death doesnt either.
Using NBT tags to use specific buckets with the Ceramic Buckets Mod
PotatoBro: Pretty simple and straight forward. Don't know how else to add onto it.
Kubejs Worldgen Help
CostlierSquid: Hello, so I found on the wiki that apparently the worldgen stuff in server events is apparently not that good in 1.20.1, but essentially, I just wanted to replace block x with block y, but I wasn't sure how to do this. I saw that it should be done via datapacks because its easier, but I wanted to see if I could just do this via scripting first. If possible, I would love to know how to do both if someone is willing in the event one of the options does not work
Can i make shafts and cogs ect use stress with kube on 1.21.1?
Zeus_32: Title
Add others redstone block
TimeheroTH: StartupEvents.registry('block', event => {
Java Adapter problems
milo: Trying to extend the `CoilItem` class' `useOn` method to allow placement on usually unsupported blocks.
Executing Commands using KJS
EEX5: I’m trying to make it so that when a player joins, a command such as a game rule runs. So like in gregtech odyssey for example, the command /title runs when the player joins or something. I wanna do something similar but am unsure is there is a OnJoin event or something. If not, I could do it like when a player chops down wood; just anything early game ig.
Items are registered *after* tool tiers?
mo_mo (ping me): Is kubejs registering items after registering tool tiers? I can't set the repair ingredient to a kubejs-registered item: `Failed to read ingredient from kubejs:bronze_ingot: Item with ID kubejs:bronze_ingot does not exist!`
ClientEvents rename doesnt work
DaddySpin (Reflection > Mod): im not sure why but this client script doesnt work at all
blocks to not cull on themself
Mr.Fluff: Q: what render mode do i need for blocks to not cull on themself
Better way to speed up effect duration
Jaofumi: i'm trying to make the effects the player has timer speed up and this was the best i could come up with so i was wondering if there was a better way of doing this
Locking the use of a keybind
Pakaru: Basically, I want to prevent players pressing M to open the Map without having a map item in their inventory. Is it possible to lock a keyboard keybind using KubeJS?
Cloning a modded block?
Yez: I'm trying to copy the block of sky sky block but its crashing mid load.
Fluid replacement in melting recipes doesnt work?
Amy: I'm trying to replace certain TConstruct molten metals in smeltery recipes with their Gregtech counterparts. For example, when melting an iron ingot, i want it to output GT's `liquid iron` instead of TC's `molten iron`. Unfortunately I just can't get it to work, no matter what. I already made it so GT's fluids have the proper tag and can be used in place of TC's fluids for casting/alloying recipes but when it comes to melting, it still outputs TC's fluids for some reason.
Thermal Foundation making own Augments
Xsmer: So yeah i wanted to add my own augments but idk how and Yes i was looking in Wiki and Yes i was using ChatGPT and it went from kubejs trough data packs and trough making Completly new addon which is Hard, i am on forge 1.20.1, please someone help π₯²
entityjs questions about spawn control
kirb: event.addSpawn('kubejs:sasuke', ['#minecraft:is_overworld'], 20, 3, 5);
Making a /setspawn and a /spawn command for a server
Jörgen Automobilen: Basically I need a /setspawn command to well set the spawn of the server to a certain point for /spawn to go to I'm kinda new and inexperienced... pls go easy on me
[Create] Adding Mysterious Conversion (via reflection) causes client script crash
Starwort: I'm trying to add Chromatic Compound mysterious conversion recipes back into Create 6 (as Create still has the code to make this work) - but I can't get the Mysterious Conversion recipes back; it causes this error:
Shaped Recipes not registering properly
fisto planet: Making a modpack and to cut down on bloat im merging all wooden pressure plates, wooden buttons, boats(including boatload variants and chest variants), and sleds(snowy spirit). Apparently only the Button recipe works since it's the first recipe, but everything else after that doesn't register properly. I have no clue what to do since im new to KubeJS and it seems like every other recipe other than the shaped ones are working fine.
Limit stack size in inventory
Emyrian: Is there a way to limit the stack size of inventory slots for a custom entity inventory? For example, I want the stack limit for my Drying Rack slots to be 1.