Support Tickets
This page is still WIP!
How to make enchantments compatible with each other?
LgndTheDredgen: I want to have Protection work with Fire, Blast, and Projectile Protection but I can only figure out how to limit pool the enchantments
Checking for Attributes
KingPsychospud7: How can i check for an attribute without throwing an error when the attribute doesnt exist?
Quiz/Trivia Server Script
GermXO: Hello! I had a bit on an old server with some friends where I'd go into the console on the server and ask questions, and then give them an item based on if they got it wrong or right. Is there a KubeJS code that can do that for me manually? And if possible can I give them like a chance at a loot table rather than one singular reward?
add attributes to cursed items
LgndTheDredgen: I'm trying to figure out a way to add attributes to items that have a curse applied, like armor grants extra points and tools and weapons have increased attack and mining speed. If possible have those buffs increase per curse applied
Entity js biome or height spawn question
lx6o: I'm wanting to try to make breezes spawn on either mountains or at a high enough y coordinate but in the wiki I can't find where that would be
Item Registry in 26.1.2
xiaomao2023: In version 26.1.2, how do I customize new tools and armor? How do I define new Tiers? I put in the JS code from version 1.21.1, but it won't run.
Ticketing system
Man Tiu: I have a map with attractions and roller coasters, each with its own economy system, and I’d like each attraction to have a gate that requires a ticket. I want to use unused vanilla Minecraft items, renamed with the attraction’s name, so that when I right-click while holding the item and aiming at the door (or a block near the door), it opens, and after some seconds, it closes. Each door would have its own item. Could someone help me? One item would be enough, I could just reuse the same system for all of them.
KubeJS's data folder doesn't appear to work for me at times.
Spookysquid19 (Pls ping ๐): I've had several times where I've modified something via datapack and used KubeJS's data folder for it instead of making a new datapack entirely and loading it with Paxi. From my experience, it's not always consistent on when it does and doesn't work.
Smithing recipes questions
drong: I am trying to basically port 1.19 recipes over to 1.21 rn, the issue is that i don't wanna use up a smithing template each time
Create kubejs example completely busted?
drong: I just pasted in the example for the Sequenced Assembly and it is giving me a lot of errors.
Basic type tool
ggerald_: I wanna make a tool that is only used in crafting, so basically an item with durability. I set its tool type to ``basic`` and tier tried setting the tier to ``stone`` but it errored. Is there a way to add durability to an item or a basic type tool?
LootJS how to remove item from loot table?
ะะฐัั
ะฐะปะบะพ993: I watched some guides, but nothing worked.
how do i create custom potions with startup events?
โฉ Hiruka โฉ - ใฒใใ DEV: I wanna create new powerful potions with startup scripts
Advancement put in KubeJS data folder doesn't appear
Spookysquid19 (Pls ping ๐): I've been having a lot of issues with datapack stuff in the data folder not seeming to work, but right now I'm trying to add advancements via datapack to backport Werewolves's 1.21 advancements, and I've got the following under `minecraft/kubejs/data/werewolves/advancement/teen_wolf.json`
quern to milling recipe
๐ดโฒ℘tโฝ (ping me): im trying to to add a script to allow all tfc quern recipes to work with create's millstone and crusing wheels, but this script comes from 1.20.1 and it doenst works in 1.21.1
Modify anvil output item (item comparison equality bug)
RoarkCats: __Context__: My original goal was to modify output item *when taken* for gambling like effect, however, I've since switched approaches to just modifying it straight up and then rolling the dice separately on player inv change to make it easier/avoid edge cases
Turning a Hostile monster into a passive animal type mob in 1.20.1 using EntityJS
Anonymous: So, I want the Slugs from Opposing Force (Which is categorized as Monsters) that are tamable to become an extend of the TameableAnimal class, so that it may not be attacked by golems and compatible with DI. I have zero knowledge in modding so I require support on this matter <@696035922030100561>
how do i make infinite bonemeal?
red laser: im stupid and just, idk what to do..
armorTierRegistry event does not work
Rogue: Directly from https://kubejs.com/wiki/tutorials/custom-tiers, I copied the armor tier code and inserted it into startup_scripts/main.js. Booting the game up gave me error, unknown event, which can be seen in the image I provided. I am on NeoForge 1.21.1 (21.208).Here's my code:
Hold-to-use right click effect
KingPsychospud7: I’ve made an item with left- and right-click functionality through ServerEvents.rightClick and EntityEvents.hurt. How can I make the right-click require a 5-second hold, preferably in server-scripts? I’ve seen that I can track the ticks between firstRightClicked and rightClicked, but is that the best way?
is there a way to feed the generated html file of all documention to an ai (dont maul me)
kirb: since im working on a modpack alone and it would take me too much time to always ask here for kubejs support for answers that i might not even receive, i was wondering if the html page/file that anyone is able to generate containing everything about kubejs can be fed to an ai so that it would help me. maybe i should ask to an ai server pater but i wanted to know first how accessible the database would be for the ai (since its alot of stuff)
Questions for Modpack
CostlierSquid: Hello, I have a couple of questions I wanted to ask for some things I wanted to do in my mod pack that I couldn’t quite get right myself. They are listed as the the following:
Help with transitioning an explosion from 1.20.1 to 1.21.1
Deano: ```const blockExplosion = ctx.source.level.createExplosion(
Item components through recipes
prze42: does anyone know how you could set an item's components to something when crafting it? im trying to make Hostile Neural Networks models already have their data item component set to 6 (the basic tier) the moment they're crafted but i dont seem to be able to find a way how
error, might be cuz i dont know much of the changes in 1.21
prze42: Message not found
Stop the player from placing blocks when using the right clicked event
Chase MK: as the title says. I'm trying to make a right click function but if there is a block in the player's hand, it will be placed. Is there a way to disable block placing when using the event?
create block entity that gets data when created then keeps data
Chase MK: I'm making a block that changes texture based on the different phases of the moon. I need advise on how to do that with a block entity since the wiki isn't very clear on how to use them.
How would I make obsidian a netherite minable block instead of a diamond minable block.
Permia: I am trying to change what pickaxe tier is required to mine and pickup obsidian, from requiring diamond to requiring netherite, but I cant quite figure what I would be doing.
Farmers Delight, and Create Confectionery recipe changes?
NotBxnji: Hi I have looked though both <#1254790121807548437> and <#1048591172165189632> for what I am trying to do and I cannot find it in either. I have also looked upon the wiki in [`Farmers Delight`](https://kubejs.com/wiki/addons/farmers-delight) and I cannot find it there.
Compacting help!
nutiadli: Can someone pls code me a recipe where you put a create:brass_nugget inside a basin and compact it to pipeorgans:brass_reed thx (so like in the picture just with a basin)
Add rarity for fluid
EMERALD: How add rarity for fluid in order to higlight this fluid from others?
Can I assign a fluid to an existing bucket/glass bottle
Glarper: I'm trying to add a goat milk fluid to existing goat milk bucket and bottle items so that I can right click it into tanks.
How do i make recipes for the brewing stand?
โฉ Hiruka โฉ - ใฒใใ DEV: I wanna make stronger potions in the brewing stand
Issue reading item component data.
ShadowzOfTheDark: This is probably some kind of user error but I'm not entirely sure what I'm doing wrong. My current objective is to read the entity_data component off an item if it has a custom_data flag and remove the item and spawn the entity based on the entity_data component. My issue currently is that I cannot read the id for some reason.
Check if entity is hostile
KingPsychospud7: Is there some variable or tag that is universal to all hostile mobs, including mobs that are hostile by default and those which may become hostile?
Executing actions at regular intervals (or at scripted IRL times)
DOMEGA2: I am attempting to make it so player have to be within a certain area at a certain time of an IRL day (like 7pm) otherwise something bad happens to them, however i cannot figure out how to make it so this action is executed regularly at this time.
Registered items not getting color
amertune: I have two items I'm trying to create and change the color of, but neither are getting any color.
Is there a way for the crusher to interact with sable physics blocks?
lx6o: I was wondering if there was any way to have the crusher interact with sable physics blocks and drop the said items
Enchanted Book Removal Not Working for Structure Loot
ZonkoTheGreat: I'm not sure why but the book edits I made are not working. KubeJS says no errors and the potions are working, but the books do not apply. Am I doing anything wrong? Thanks!
how do i change AI behavior from mobs?
โฉ Hiruka โฉ - ใฒใใ DEV: I wanna make skeletons and zombies recognize ranged weapons from spartan weaponry as ranged weapons, such as boomerang, tomahawk, throwing knifes and javelins
KubeJEI category order?
Train: Can I change the order of categories in JEI with KubeJEI (or otherwise)?
Player prefix
Pie: Any way I could make it so players have a certain prefix before their usernames, when typing in chat, in the tab menu etc?
how to remove
NaitanYT: guys how to remove item from possible ways to get it
is it necessary
NaitanYT: im new to EVERYTHING about minecraft modding so is it necessary to make shit like on ss, or there is another way?
LootJS
NaitanYT: how to make that you get specific item only first time you kill specific mob?
Is .noMirror().noShrink() not working?
wai_wd (ใโ _โ )ใ: Why isn't my script working as I expect? It's still shrinks to 1x1
How to create a custom recipe with stacked items? 1.20.1
MrLarperson: I am trying to make custom weapons and want to make it stacked items for crafting instead of just one
Recipe to duplicate item with component data?
Goddard: Is there any way to create a recipe which allows me to duplicate an item while keeping its components? I'm using the gallery mod, which gives each painting a held item variant with its own texture. the difference between the paintings is component data
EMI Info tab list all items together
RoarkCats: How do I make my EMI info tab list all items side-by-side together? I want to emulate the following but instead they all combine into a cycling group
How to create a boss-summoning item like Terraria?
FuzzsterTheSecond: The title says it, im looking for help on how to create a terraria like boss summon where you need to right click it and the boss will summon somewhere near the player.
Modify right-click event only if the item has no default logic
KingPsychospud7: How can I add right-click logic only when an item either 1) has no default right-click, or 2) default right-click does not resolve successfully?
Remove Item
KingPsychospud7: Is it possible to completely remove an item from the game server-side, including removing from JEI and any other possible areas where it may be visible? If so, how? I am using KubeJS with no other addons and would prefer to keep it that way.
Equip Item To Compatible Slot (Curios)
KingPsychospud7: The Icarus mod has a series of wings which can be manually equipped to the 'curios:back' slot. I'd like to add right-click functionality to equip them, including swapping any item equipped in the required slot (or first possible slot if all compatible slots are full), but I want the script to work for any compatible slot, whether curios:back or other. How would I go about this?
Is this crash due to Sable or not having kubejs on the server?
Superintendent: https://mclo.gs/KJ4PWWu are my logs, script is quite simple
Annotation-based plugin registration
supernovus: Many mods utilize annotation-based registration of their extensions, e.g. EMI `@EmiEntrypoint`, Jade `@WailaPlugin`, etc.
hiding items with with data components
zero: i want to hide a specific bunch of item (slag:modular_item, where any of the tool heads have have the "slag:material_type":"slag:stone" component) is there any way of doing that? i'm still new around JS and KubeJS so i'm sorry if this is a stupid question
Let's Do Farm & Charm, Herbal Brews and Bakery
Sunder ⌊‹โ›⌉: Heya! I'm coming with a question on how to alter (remove, add, change ingredients, change outputs etc.) recipes from the above mentioned mods with KubeJS. EMI does not show the Recipe IDs for the individual recipes, and an old thread advises against using [Let's Do Addon] Compat as it causes issues with Create, so I am a little clueless on where to begin taking a crack at this.
bulk coloring issues
Sylvie: im looking to use the bulk coloring feature of dragons plus, and i cannot for the life of me understand how it supposed to be input into an ```event.custom()```. i have an general idea, as i have read the dragons plus readme and the related kubejs wiki section, but it still wont work
Create new stripping like functionality
Chase MK: I am backporting Some More Blocks' block carving for the stripped pale oak log and need help getting all the functionality working
Modify an existing entity to have flight and flight 3d pathfinding with entityjs
HoneyVee: I need to modify an existing entity to give it basic flight with entityjs
trying to port to higher versions?
balk guy: i want to port my mod from 1.21.1 to 26.1.2 and theres not much documentation? and there isnt any probejs? are there other mods to replace probejs with? is there somewhere with docs for 26.1.2?
failed to create recipe from event.custom "create:compacting"
๐ซ๐๐ญ๐ซ๐_๐ฌ๐ฉ๐๐ค๐ญ๐ซ๐จ๐๐: Title says it all
Is There a Way to Bypass the 99 Max Stack in KubeJS
ZonkoTheGreat: My friends and I agreed it would be preferable to have all blocks in my modpack stack to 256. But unfortunately, there's some arbitrary code that makes the max be 99.
I think I ruined my ProbeJS files
Spookysquid19 (Pls ping ๐): I've installed a fair bit of mods and made changes since I first used the dump command, so I thought it would be good to run it again. So I ran `/probejs dump` and now VSCode isn't autofilling *anything*. I also keep getting errors that `/usr/share/code/code has encountered a fatal error and was closed` with the stacktrace
Recipe not being removed
The Diamond Fox: Im trying to remove the recipe from create ultimate factory that compacts coal blocks into diamonds. I have other recipes removed that worked fine but for some reason this one isnt being removes with the type output method or the recipe id method.
Trying to modify the attributes (max mana etc..) of iron's spellbooks equipment
dragonmaster26: I'm trying to figure out how to modify the attributes iron's and other addons equipment, this is what I tried as a placeholder to see if it works, it seems to work on a diamond helmet but not on the netherite mage helmet?
phytogenic isolator 1.20.1
AppleKang: I am trying to make recipes for all the trees in oh the biomes we've gone. I am not sure how to do that. I haven't messed with mods like this or any like this before
probejs missing definitions/auto complete?
Acenthus: Been working on some stuff with KubeJS/ProbeJS and it's been going great for the most part. But then I started doing startup script stuff and realized a bunch of random things just don't show up with definitions or auto complete?
Is it possible to use painterjs to paint over players?
clancy: hello, i was wondering if it was possible to utilize painterjs to paint over players every few ticks, something similar to that of censoring a player in real time as an example?
How could I make it so structures don't generate within a certain radius of the world spawn?
Spookysquid19 (Pls ping ๐): For the most part in my modpack, I've been spawned near 0,0, which works with Structurify's min rule. But I recently added Tectonic, and now I'm no longer being spawned that close, making the the Structurify setting vary from useless to unfair. I was wondering if this feature could be done through KubeJS.
craft item with specific nbt
naik: i want to make new crafting for specific suspicious stews and from my research it seems to be based on nbt. how would i make a crafting recipe for suspicious stew with specific nbt?
Help with changing progression table on my own modpack 1.20.1 (End Remastered)
Anonymous: hello i want to use my modpack with end remastered to change the eyes of ender to drop from specific mobs (ex tier 3 dungeon of aether) do i use lootjs, or something else? (modpack is 1.20.1)
Player Armor Change Event?
KCtops6: Is there a KubeJS event that fires when a player changes armor slots in their inventory? The end goal is to add player effect bonuses when a full set of existing (leather, iron, etc...) and custom armor sets are on the player.
Player Armor Change Event?
KCtops6: Is there a KubeJS event that fires when a player changes armor slots in their inventory? The end goal is to add player effect bonuses when a full set of existing (leather, iron, etc...) and custom armor sets are on the player.
Display loot pool rolling
Krispy: So as the title states, I want to make it so my loot crate shows the items being rolled, then the items that were awarded (not something they can pick up) then have them placed in the inventory, id like for them to be set up in a line so its 6 items next to eachother rolling kinda like a slot machine. If you need the code I use to roll for the items I can send that shortly
AnimationJS issue with body parts
DaGamer5T3w: The parts that my animation uses are misaligned to the actual player's rig, and on top of that, it uses the grenade texture to make those parts on the arms visible (which I know can be fixed by simply removing the texture from them, but the main issue is the parts that are supposed to be there being misaligned)
How to delete achievements?
Ilayst11.999999999999: createpropulsion:feed_the_fire_621
Equipment-Specific Loot Tables?
NT ๐ฆพ: essentially, i'm trying to use LootJS to do what Farmers Delight does, which is produce a specific drop if killed with a certain type of tool. i want it to have a chance to drop any random item from a specific item tag.
Mob Curio slots and altered hostility
Anonymous: Im trying to figure out how to use kubejs to add curio slots to some entities and also create team types for mobs so i can make different batches of entities hostile to others that arent normally, any help would be appreciated
removing tag from non root
Lucky56: this is more of a question than a help request, since I'm using a dummy item in a datapack to remove items from non-root tags using neoforge
adding all kubejs registered blocks/items to a specific creative tab
Lens: I have a creative tab I made using a mod and would like kubejs to put all the items and blocks i register into that instead of the kubejs creative tab. is that possible?
How do i run a specific command whenever i interact/kill an specific entity with an NBT Tag
๐ข๐ซ๐ซ๐๐๐จ๐ฅ๐ฎ๐ญ: I was reading some posts in the forum to get an idea on how to do this. But i just couldn't figure it out...
Prevent building a Quantum Link Bridge in the same dimension using Applied KubeJS
hyperstitiousdiskordianwarfare: hello, im not sure if this is actually possible or not but id like to make the quantum link bridges from ae2 only work across dimensions (ie. overworld <-> nether) but NOT in the same dimension (ie. overworld <-> overworld). [Applied KubeJS](https://kubejs.com/wiki/addons/applied-kjs) seems to have a bunch of events pertaining to networks and hypothetically view devices on a network? but im a bit stuck and wondering if i could:
Recipe Ingredient that only matches empty component data
amertune: I'm trying to write a custom recipe for FTB Industrial Contraptions that uses a fluid cell. When a fluid cell is empty, there is no component data.
How can I change a curio's slot?
Spookysquid19 (Pls ping ๐): I need to make the Ring of Grudged go in the `ring` slot and not the `rings` slot. I've tried the following, but it hasn't worked.
Export & Import / Require helper recipe functions from files
RoarkCats: I occasionally make helper functions for my recipes, however, I've always had problems when trying to separate these to their own files so I could easily import/export them between files- I know I'd have to pass `event` in of course, but is this possible with the way KubeJS is structured and what would the code in each file look like?
Player attributes
lx6o: Is there a way to effect player attributes with kubejs
Random chance to apply unique texture to mob
voidmage: I have recently found a really funny texture for cod on planet minecraft (https://www.planetminecraft.com/mob-skin/hot-dog-6220376/), and id like for there to be a really small chance to apply it to a cod mob upon spawning (something like the textures of axolotls). is there a way to do this with kube?
How can I make a custom compass for a structure?
Spookysquid19 (Pls ping ๐): I want to make a compass that points the player to the nearest temple in the Deeper and Darker dimension, similar to how the Wayward Compass in Iron's Spells points to the nearest catacombs.
Create custom Tinkers Construct tool parts
The Kamen Rider enthusiast: I tried doing that a few months ago by trying to make tconstruct diamond tools so i could remove the diamond took recipes and replace them with the tinkers tools (although doing so made netherite gear inaccessible)
Make existing block immovable by any means (teleportation, pistons, contraptions etc)
Viktor Shield: Please help
Custom loot box items
Krispy: Hello, to clarify, im wanting to make an item that will act as a loot box (assume the item all ready exists and for item ids just use the diamond sword id)
Trying to disable left clicking, right clicking, and crouching tied to a potion effect
Dracus: First time asking for support in here but I've been looking at some of the posts for guidance as I experiment with kubejs for an addon to a mod I've been working on!
Trying to make a fluid that hurts
Vigilante: I've been trying to make a fluid that either damages players on contact like lava does, or if that isn't possible, try to make a fluid that applies a potion effect like harming or wither to get the same result. I haven't been able to find anything online or on the wiki about either option, is it something I'd have to set up in server scripts instead of the fluid builder?