Support Tickets
This page is still WIP!
repair block hitbox
mr_ron: does kjs allow me to fix the orientation of the hitbox for itemalchemy table?
Some input mistakes
Just_Dude.It: hello, I was trying to rewrite [this](https://discord.com/channels/303440391124942858/1466563696368160990/1466918721967624192) script to work with parcool dodge, and here is what I get (`startup_dodge.js` and `client_dodge.js `)
how do i check if a player is currently in falling snow?
Deano: i know how to check whether the player is exposed to the sky, whether its raining, but not how to check the biome temperature.
A doubt regarding removing recipe book
MasterNinad: Is the ```disable_recipe_book``` config option of kubejs similar to this mod?
Can someone help me figure out what a modded soundType id is?
Jammie: ive set a blocks sound type with `block.soundType = "rope"` but it doesnt seem to be the name of the supplementaries material?
Making a custom block spawn naturally
Valkyrie Kayn: I am running an origins server and there is a block that is meant to spawn naturally in villages but doesnt, how do I change this so this block will spawn naturally in all villages?
What things should be avoided if possible when making KubeJS scripts?
Lampent51: For a multiplayer server, are there any common pitfalls I should watch out for?
Customizing XP Drops with Silk Touch Items (LootJS on Neoforge 1.21.1)
Anonymous: I have been trying to create custom ores for a modpack I'm using. I have working behaviors for pickaxe enchants, mainly silk touch and fortune. The only problem is that XP always drops when using silk touch, which is not what I want. Is there any way to create a condition to where XP doesn't drop with the silk touch enchantment?
farming for blockheads market
milo: so i've recently been trying to add custom tabs and items from other mods into the market block from farming for blockheads
Ignore Data Components in Trade Costs
GELZlatinous Cube: I am looking to create a trade that accepts any enchanted book regardless of what the enchantment is as the cost.
Make part of nametag not show
Estatrix: Is it possible to make part of a non-player nametag not show? Some entities use an ID on their nametags (something that I'm testing for a small projects) lik "[123] Horse". Is it possible to hide the [] from the visible nametag?
Blockstate changing issue
Linke 💠: First of all, sorry if I missed something obvious, I'm pretty new in KubeJS. Moreover, I tried to go through any posts relevant to my issue, but no success. So, I was trying to get and set a blockstate to event related block. Is there any actual way to get for example specific property of a block like age and increase it by a number? Basically can script change blockstates of blocks?
how could I use multiblocked and kubejs to give ftb quest progress?
hiccupwarrior89: I'm trying to make a lab similar to factorio's using multiblocked, and I need it to detect when the right science packs are in the lab and every few seconds take an item and progress the quest
Add attribute to Item without removing other attributes
Estatrix: I've been trying to add attributes to armor but using an example I found din't help. What am I doing wrong?
Questions about kubejs iss
Ice: So, i was trying to make a spell using the iron spells addon for kubejs, but i haven't been able to figure it out how to do it.
How localize a fluid
EMERALD: I need a localize my added fluid in russian(or in any language, it don't matter), i tryed displayName(in create method), rename(in ClientEvents.lang method) even use TranslateKey() and json files, but nothing is work
Preventing passive mob spawning
DiscoTech: I'm trying to create a script which prevents vanilla mobs from spawning naturally, but still allows things like spawners to work. The script below seems to work for hostile mobs, but not passive ones.
Making Cauldron Recipe in Iron's Spells
✧ druidicmage: Trying to make a recipe for the cauldron and it's crashing the server. Anyone able to help me see what exactly I did wrong? I used the example on the wiki as a base for this
why isnt event.remove({ mod: '@createcasing' }) working
Nyx: im trying to remove all the crafting for the encased items and leave craft for the one casing the mod adds but
creative search bar broken
𝕽𝖆𝖕𝖍 | Lord ARKΞV: I started KubeJS and added a few custome blocks and items but now the creative search bar is broken, how to fix it ?
Bug: KubeJS Create delays world loading when paired with Tinkers
IceMaster1294: This is a very obscure bug and I’m not sure what is causing it. For whatever reason, loading a world or loading the create a world screen can be SEVERELY delayed when both tinkers construct and kubejs create are both in the game.
Making certain blocks act like infinite fluid tanks for Create's mechanical pumps
Elrol: I added the `molten_vents` mod, but it didn't function like I had expected.
Is it possible for me to remove the crafts from 4 mods and add all the items into a "Gacha" table?
🎀 itstaajaae 🎀 .: I have 4 plushie mods that I want to add into a gacha table that people use /gacha to use a coin item to randomly get a plushie. is this possible without addons?
The Escapee - Part II
Berlium: The Entity is almost done I just need to copy the axolotl's swimming goals + the lingering cloud effect of the creeper + add pitch/vertical head movements + better body to model allignment + pitch/vertical body movment when on water
Anyone know why this isn't working? Can't find much info on the LootJS wiki page.
vizthex: I wanted to add Quark's shard drops (2 - 4 when you break a glass block) to various modded glass blocks, but it gives me an error about the method not existing - and i can't find what i need to use on the LootJS wiki. Does anyone know how to fix it?
FTB Stuff and Things Jars script errors
AkersA: I have been trying to work this script for 4 days now and keep getting 56 errors for all the jars about fluid output. I have looked at other examples of 1.21.1 scripts for the jars, but couldn't find where i made my mistake. I have also ran this through Gemini and still couldnt figure it out i have attached the Script, Kubejs log, and latest log for the modpack. i know there are other things i need to fix with sluicing and recipes. if anyone could assist it would be greatly appreciated.
How to input a container of fluid in a recipe
JoSchmo34: I'm trying to make a recipe that takes in a container of water and i would like fluid cells, buckets, and other similar things to all be vaild inputs. Is there any easy way to check for this using kubeJS?
Removing the create fan recipe categories
Brickyboy: I'm trying to remove the create fan recipes categories from showing in JEI+EMI.
Trying to make a sword which applies bonus damage (non magic) depending on entity's max health (9%)
Soulbound: 9% bonus damage calculated from the max health basically, I tried this
Making a block explode when something is placed on it
The Goat: I'm aware of the Exploding Coal mod, but it doesn't work properly + a KubeJS script would be more customizable.
KubeJS Iron's Spells: Is it not possible to imbue spells into staves?
SkippyZii: Message not found
Multiplayer LAN problem.
Hyperran99: Okay, so I've been developing a Forge mod-pack for me and my friends to play on and used KubeJS to spice things up a little. When I made a world and invited them, they couldn't get in and got this error message. Later on we disabled KubeJS and low and behold, multiplayer had worked.
Farmer's Delight cutting board recipe that consumes both items used?
B: So I've made this rather silly recipe to make lava using a cutting board, but remembered that the magma block wouldn't be consumed upon crafting, is there a way to make it so that it is?
Can't get accurate biome colours and item in hand doesn't add .color()
Kisaiya: I've been struggling to make a custom slab block that imitates the full sized grass blocks in my modpack. This is my best result so far but the colours seem slightly off and the item model in my hand isn't coloured. Any suggestions to fix these two issues?
removing biomes
JustNatan: trying to remove biomes via tags but it keeps generating anyways so im wondering if im doing anything wrong
Custom weapon attributes
Kammy: So I recently had a custom weapon made by <@211699493190631424> , and although I managed to get it in game, the weapon attributes are... less than ideal for a weapon of it's size, but I can't manage to change the attack speed specifically, any and all help will be much appreciated
Layered block builder
UltraPuPower1: Continuation of https://discord.com/channels/303440391124942858/1479814375207473374
Struggling to understand making blocks with different textures on sides.
TeutonicViking: I'm going to preface this by saying I'm a very big noob at kubeJS, this is some of my first experimentations with it.
how to add condition to spawn portal?
NanChik: I want make nether portal (or portal from mods) must be place at the bottom of the world (y ~-60)
how do i disappear with the original immersive engineering tools?
☩ Hiruka ☩ - ひるか DEV: I'm hijacking the old ones to substitute to the new ones, and i want to disappear with the old ones from Jei, how do i do that?
giving players "gills"
stonedgoldfish: is there any way i can make a player be able to breathe underwater but not on land? like i want the air bubbles to appear and start decreasing when a player is on land
Critical hit checks (for server scripts)
Deano: In server scripts relating to damage of some kind whether it's on behalf of the attacked or the attacker if you could check if the hit was a critical hit natively i think that'd come in handy. I mean there's workarounds to get it done but I feel like this should just be made easy personally
Change loot depending on tool used to kill entity
Estatrix: Howdy! I wanted to know if there's a way to change the loot an entity drops depending on what tool is used to kill it.
How do I define an entity's head with EntityJS?
Snowflake: i am very new to both kubejs as a whole and the geckolib format so apologies if this is something very simple, but how would i define an entity's head? i want the model's head to be able to look at the player at all angles
need some help porting a script from 1.20.1 to 1.21.1
tall man 2: hi, sorry if this is a bit dumb but i need help porting this to 1.21.1 for a modpack, what it does is check and entities nbt tags and applies a specific effect to them if they fall within the list written inside. thanks in advance
Is there a way better to buff Iron's spellbooks spells?
☩ Hiruka ☩ - ひるか DEV: I wanna buff the spells while double it's mana cost, and keeping their standard mana regeneration to make it slow in standard. Making the iron's spellbook spells a high risk high reward, to balance it with melee weapons, scorched guns 2 guns and iron's spellbook magic
allow tall grass to be broken when using notreepunching mod?
Aceplante: For some reason, i can mine grass by hand just fine, but not tall grass, or either kind of fern, at least without a tool. What is the technical difference between these blocks? What tags differ? I should note that I did not want them to break instantly, and did modify their breakspeed, but I did so to the same number, so why does it suddenly render the aformentioned three completely unbreakable without a tool, whereas i can break regular grass just fine and without issue?
Player Attribute Cap on Respawn Event - Looking for Event & Specific Attribute Get/Set methods
Gambleputty: About as the title states, whenever the player respawns im looking to just implement some simple logic to check one of their attributes within the ForgeCaps category of their PlayerData, and if it goes above a certain state, set it back to a minimum. Im asking specifically as, looking through the player data the attribute appears within the ForgeCaps -> DiminishingHealth category and was curious if that might effect the typings for the persistent data get/set methods. I am willing to provide screenshots of the specific attributes I am looking to set if necessary
Java Method cannot be found
Rundas: Hello, for some reason, kube cannot find a java method.
daily login rewards
Chaos: I'm trying to make a server with create numismatics for currency and I want people to get the currency as a daily reward but I have no idea where to start
Better than wolves fishing mechanics
Skemech or something: This is what I have so far. but I wanna make it so that upon a succesful catch, the baited rod reverts back into an unbaited rod, and they'll share a durability
Over the rainbow
Skemech or something: How can I get every color of sheep to naturally spawn?
good way of removing randomly enchanted items from loottables?
Pafeu: The only way I could think of is replacing every single item with itself but it seems kinda cursed. Is there a better way?
How to make players spawn farther and spawn a structure around them?
throw new NullPointerException(): I currently have the following script:
need help making a custom command
PhoenixCrew: I am wanting to make a custom command for my server SinnoH Sanctum. Its a command called /daily. This is to get an item in-game every 24 hours but dont know how to make that command. Can someone help.
How do i remove an entire mod id (so all the items in a single mod) from a vanilla tab?
DarcySpike202: For example, I have homesteads, but the modded items are mixed in with the functional blocks vanilla tab. I want to make a custom tab with the items instead. I have already made the tab and the items a re in it, but the vanilla tab items are still there. here is my code:
how to player blindness at night?
Cr0w37: Hey! I wanna give players blindness for the duration of night. But I don't want the particle effects or the icon that shows the effect.
KubeJS-registered cardinal block for some reason always faces east when genned with jigsaw blocks
G_cat [KJSPKG/HehVerse]: I am registering a cardinal block with this code:
How Do I Add ALL the items in a tag into a specific category?
DarcySpike202: I want to make a category and move items from my vanilla category into my custom one, but i dont want to do event.add for EVERY SINGLE ITEM. is there a way that i can just use the tag? i have tried this but it doesnt work.
In fluid transformation
jaime_la_pluie: I'm trying to make a recipe where you drop item in a fluid to make another item but can find a way to do it can anyone help ?
When changing (adding) durability to Lucky's Wardrobe armor pieces, the durability doesn't get added
Ooorange: When changing (adding) durability to Lucky's Wardrobe armor pieces, the durability doesn't get added but the items behave as if it did? I'm not sure what I'm supposed to do about it. I would like for them to have dura but can't figure out why it doesnt want to change them from unbreakable
How do I replace the name/tag of an item?
valurae: As in I want copperequips:copper_boots to turn into copperized:copper_boots
What is the input format for color?
UltraPuPower1: https://kubejs.com/wiki/ref/BlockBuilder#color
Trouble with placing features via command
Mono: this is essentially a spell to grow plants on barren stone, i'm using SummoningRituals's complete event which I have confirmed with other rituals I am using correctly.
Help with custom container
Kimaris: Hello, I'm trying to make a script that allows the player to open a container UI upon pressing a keybind.
Fluid Tooltips and names
UltraPuPower1: Trying to get tooltips and names working on fluids, in summary, what a nightmare :p
Custom Models
Chipmunk: I may just not be able to find it, but there should really be somewhere on the wiki that properly explains/walks you through making new items with custom models?
[EntityJS] nonliving entity affected by gravity?
MintiestKitKat: is it possible to make a nonliving entity that is affected by gravity? / in general, has a movement controller?
Struggling to figure out a way to write down some laws of gravity.
unknown.gif: I've for a few days now been trying to work on setting some "laws of gravity" using GravityAPI and making an overall Startup script for it.
How do I make custom ender eyes?
Veaper: It's for a modpack I am working on. I may make multiple posts here.
Getting used fluid in recipe
Miko_boi: Let’s say a recipe uses the potions tag so any potion fluid can be used to spout the item. Could I get the potion the player decides to use in the recipe and use it somewhere else (I.e applying said potion to the food as an effect)?
Custom Enchantment
Pafeu: I'd like to make an enchantment that would just apply the unbreakable nbt tag to the item but cant really find any examples of how could I mess with the items nbt on enchantments.
Mob Spawn Reason Whitelist
Anonymous: I am currently trying to disable natural spawns for horses, but still preserve the ability to spawn horses by spawn egg, summoning or breeding. I have found out how to disable spawning completely by placing the attached in the server_scripts file, but I have no idea how to proceed.
Registry player death
jovlax: How can I registry player death and then apply the command?
[Create Heat JS] Blaze burner custom heat level interaction
Gobz: Hi,I'm trying to implement a new heat level with Create Heat JS that a blaze burner could get to given appropriate fuel type but i didn't find any info about it,
Why this script doesn't work?
Kimaris: I made a simple script to convert all deepslate affected by an explosion into cobbled deepslate, but it doesn't work for some reason, I tried searching in the wiki but couldn't find any clue.
Structures locatable but don’t spawn in the world
Tesohh: hi, i’m not sure if this is really a kubejs issue, but i’m trying to add custom structures, so i made a data pack and put it into my kubejs/data. I can locate the structure, but nothing is actually there when i tp to it.
remove output by item id?
Aceplante: for some reason I am unable to disable all outputs with a certain id?
Custom item with crafting durability.
MrEizy: How can I make it so my custom item with durability is not used when crafted instead it removes durability?
Font use
𝕮𝖑𝖊𝖆𝖓38: Hello I'm clean, I would like to know if I could have permissions to use the default8.png assets from last font addon for my addon, ofc I won't be taking credit for the asset, but I'll provide credits along with a link to the original for java, I'm actually putting this in a bedrock addon "bugrock" not through marketplace I'm going to have it posted on cf and mcpedl and the addon will be released in like 2 to 3 years from now, because it's very high poly, anyway if I can't that's fine with me, because it's always good to ask just in case, so thanks for your time. And thanks for reading this, have a nice day!
Clarification on High Priority Data
DaddySpin (Reflection Enjoyer): I just want to confirm that High Priority Data is what I think it is and to my understanding it's basically event.custom but for general Json files and datapacks? Please correct me if I'm wrong and if I'm slightly right can someone please provide some example usage and syntax?
This isn't working.
PotatoBro: I do not know why, it gives an empty output, but the tag works. All the syntax is correct. Even the little nickname with the tiny ' ' is fine. I honestly do not know whats happening to make it bug out like this. I would ask of the Modern GT server, but I was banned for talking about Epstein.
What's the deal with these four mistakes?
MC-Nirvana: log: https://mclo.gs/KbvYA5J
how do i make a recipe drop more then one item on the mechenical crafter?
WEIRDERS23: im trying to make a bone recipe for automation
can't get keepIngredient to work.
5H4RP_B1T3RZ: i'm trying to keep the altimeter when crafting a slice map.
Trying to nerf an enemy's projectile through KubeJS
tln_: This is the script I found:
Error Changing attackDamage Despite item.getItem().getTier().getAttackDamageBonus() existing
cryocaustik: I pulled a list of items I wanted to modify and compiled an array of those IDs, then iterate over that array to modify the attackDamage of those based on a multiplier.
Use onHurtTarget inside of EntityJSEvents.addGoalSelectors
marcnum2: I want an action (casting a spell) to happen when an entity attacks, is this possible?
Track Individual Items
Owen: I'm trying to make an item's durability drain over time, even when not being held. The main thing I'm struggling with is tracking each item separately. I'm assuming I'm gonna be using NBT data, but how would I track an individual item?
Anyone know how to add multiple weighted LootJS entries with separate rolls?
vizthex: fixing a modded block that has no loot table, and i want it to drop 1 - 4 Gunpowder and 0 - 2 Ghast Tears - but i don't know how to add multiple weighted loots with different amounts, and the wiki doesn't give an example.
Can I use entity js with palladium to give a mob a energy beam render
Monkonpo: I want to make it so my mob shoots a energy beam and without entity js it does the damage no visuals and I was just wondering if I could use it to make it work this is for a alien evo mod
Custom KubeJS item as a consumable for enchant table
LolsShow (Podcasting ARC): I want to make my custom item - raw cobalt - be a more powerful version of lapis in terms of higher enchant random rolls in enchant table.
Increase custom stat upon shooting a bow
[LOST] Pille: Ive checked the other threads here and saw that I need RangedJS.