Support Tickets
This page is still WIP!
Fluid ingredients not working
TGIReaper: I'm trying to make a create recipe to fix the fact that a Cobblemon recipe eats a lot of glass, but this straight up doesn't work- all i get back is this:
Event for breeding modded mobs
SBERLA: For sure someone is gonna link something about this but i cant find it.
How to add tooltip/lore to item server-side?
Tis: I'm trying to add a warning to an item that can destroy your base if used incorrectly, but don't want to make people install a custom modpack version just to add a single line to client kubejs scripts.
Creating JEI/EMI categories.
Zaksen: Hello, I started creating my modpack and found that I need to create a custom JEI/EMI category for non-standard event-based recipes. Is there a way to do this? I know that [KubeJS Additions](https://modrinth.com/mod/kubejs-additions/versions) can do this, but unfortunately it is not available for 1.20.1. It is not a big problem for me to create a custom mod with a category, but it would be much easier and more convenient if KubeJS could do it for me.
how can i remove the kubejs identifier from my items?
TruMancow: Message not found
[LootsJS] Modifying an existing block's drop rates
LVMVS: How do modify this block to drop 1-4 nuggets instead of 2-6?
Neoforge 1.21.1 - Adding KubeJS to my mods halves my FPS
Ice Cracker: Been building out a personal modpack and testing performance, see modlist below. This config has me at ~70 FPS @4k for a set location/rotation/time in a random world I generated. Simply adding KubeJS (no addon mods yet) drops me to ~30 FPS in the same spot for some reason, not really sure why. Can post logs if it would help.
how i can add effect in player?
Murilinho145: I'm playing around with kubejs and I'm having trouble applying potion effects to players. I imagine the player's typing isn't ServerPlayer.
What addon is needed to create custom ui?
NanChik: I want create ui where players can increase their attributes
hide JEI category
D.A.V.E.: I really cant understand the mess that is the Kubejs wiki articles on JEI categories. does anyone know how to hide a Recipe category?
How do I determine which block face in blockevents.rightClicked
QuiteQuiet7: Hi, kind of a beginner, i know how to add & remove recipes, but it's my first time working with Blockevents.
How to add attributes to armor?
Skenny: Hi! I want to add Attributes to some of the armour in my mod. How would I start going about that? I have no idea what the code would be, even after reading the entire wiki
TypeError: Cannot read property "magnetite" from undefined
Zeratul43: Tried to tidy up my Mekanism recipes using a 2D array, now I got this error. Just trying to add Gregtech's ore equivalents to Mek's processing line. Help!
Teleportation vector optimization and collision to end teleportation
dylpnaner: Ive been trying to make a teleportation stick that teleports the player 10 blocks in the direction they are looking, or in the direction they are looking until the teleportation would collide with a block. Ive brute forced some of the code, but it is far from optimized or efficient nor does it include the collision detection. I could use some help, as I am awful at vectors as well as JS as a whole.
[1.21.1] KubeJs error with Create and Ore excavation.
Fers: After installing the latest version of KubeJS Create the game crash
how to add recipes to the ExtendedAE's ME Caner
MatsuKari: I want to add a recipe for ME Caner from ExtendedAE that inputa some amount of fluid honey + a glass bottle and outputs a honey bottle. Minecraft 1.21.1
trying to add a milling recipe with a chance output
Red The Woof: ```ServerEvents.recipes(event => {
Bulk Renaming Items
D.A.V.E.: Hey I want to rename a lot of items with the same word in them. I'm trying to change the `electrum` in all of Create: C&A's electrum items into `Charged Gold` I was wondering if there was a way to do this without having to write out every item id. E.g. a method to do this
JsonSerializabl error
jacs121: My game crashes any time I open Minecraft, and I got only one error, no fatal errors, no other mod loaded, nothing in the folder other than the mods
playerdata reset on death
Imp: i want to make a server script that deletes a players playerdata on death! I realise it would have to kick them too. Any pointers? Im very unfamiliar with KubeJS scripts
How to properly use event.getMagicData().castCompletionPercent?
Eeeeeeehhh: I tried many things to make spell giving mana in the end of long cast, but it either gives mana every second of long cast or doesn't give any in the end of cast. How I can make it work?
Trying to create block reinforcement thingy
Vini_44: Im trying to make a system where you can right click a block with a special item and it'll make it require additional breaks to actually break
How to make Locking System
Rwstix: I want to make a locking system using the iron's spells and KubeJS and Minecraft teams. The goal would be to make it so if a player from a certain team tries to cast a spell from any other school than the one given (the team they have) then the casting would simply be canceled.
Edit blocks
egg: Is there any way to edit existing blocks from other mods? I want to make it so that I can place `garnished:sepia_fungus` on top of `farmersdelight:rich_soil`
Need help with custom block
qwerty97475: Currently i'm adding a "clay cooking pot" as a step in crafting a cooking pot from FD
Two events for a trigger to happen
KayZiomalek: Basicly i just wanna know if it is possible to have 2 events to have as a OR/AND to trigger an event. Example: complete advancement A or B to unlock thing C, have advancement A and B to unlock thing C. Also I tried looking for something like this but couldn't find it.
Still Looking for an Artist to help design some items for me
Shugabrush: Is there anyone available to help design some things for my modpack?
Prevent/Remove End Portal in End Entirely 1.20.1
Rage: Is their a way to have KubeJS completely disable the End Portal in the end and maybe just keep the Bedrock Post where the Dragon Egg spawns on top.
Emit events such as entity_die
Blk Wolf: I want to know how to emit events primarily the `entity_die` event if at all possible
FTB XMod Compat Custom ID
Sussy Baka: I try to add custom task to my quests but this is not working
Changing custom tool mining level
imBL4CK: I was trying to change the mining level of my tool (to diamond) but without success, could someone point me to the problem?
Create Mod recipe not working
AdmilZhao: Hello! So I am trying to make a recipe with Create Mod and it isn't working. It keeps saying in chat that there's an error but I do not know where to see the error. I looked in the Minecraft Logs and it was not there.
making a noise on firstRightClicked
Lemmy: I've made a new custom item through kubejs and I want it to randomly give you a music disc out of a list
Damage indicator
Hikinata: I'm trying to make a direction indicator of the damage to the player's screen.
Unable to join MP server with kubejs
Wiggles_Araneae: friends of mine are working on a modpack we are using kubejs for items and fluids
Composting Recipes
Sฬทอ ฬง_ฬทอกฬจgฬถอฬขaฬทออขmฬถาฬกeฬดอ ฬกzฬดอ: I have look trough some other peoples post about composting tho is those the only way to make them?
error with lootjs script
Gedsweyevr™: LootJS.modifiers((event) => {event.addBlockLootModifier('minecraft:campfire').replaceLoot('minecraft:coal', '64x minecraft:diamond')})
TACZ reloading
AnderZytolga: Im currently working on a map, and I want more control over the ammo system for it. I came up with the idea of using a type of playerdata to store an "amount" of ammo the player has instead of needing to hold any physical items. I created a script in kubejs that Overides the pickup of any tacz ammo and instead puts it into a persistentData value that I can put a limit on.
Does anyone know how to modify recipe NBT
ๆตๅถ: Does anyone know how to implement the synthesis and modification of the original item NBT by adding iron sword and other items to 1.21.1kubejs-2101.7.1-build.181?
How to change hardness of existing block
binaryclock03: Trying to change the hardness of a block added by a data pack. Tried block modify .hardness(-1) but that doesnt seem to work.
Tinkers Construct: Trying to remove recipe with specific nbt not working properly
Belen: I am trying to remove a tool_handle with copper material, but when I try, it removes all the tool_handle recipes
Complete documentation
Lightning323: A lot of the documentation of kubejs is either not fully explained or simply missing. Documentation is crucial to understanding how to use the mod, without a complete documentation, there are likely entire features that go unused due to average users now knowing how to use them
Scaling Health
Wi13Y82: Scaling Health adding health by item but limiting it to only 10 full hearts. I'm trying to learn datapacks too, but I'm just lost. I have a few different methods in modpack to give health. I want to use Scaling health as of right now I can't figure out how to limit the heart crystals you can use without affecting other mods. I'm at a lost, as I'm brand new with this stuff, but I see some kubejs scripts that seem to be close to what I'm after.
How to alter an existing effect from benefical() to harmful() & vice versa
Shibva: Title should be self expanitory
Is there a faster way to write this if statement?
notm: I'm adding effects to a player if they have are in certain persistent data parts and are sprinting, so my if looks like this:
Is it possible to use KubeJS Iron's Spells to add innate spells to armour? If so, how?
Hoshi: Title speaks for itself - wondering how to add innate Iron's Spellbooks spells to existing armour
Biome Hazards
๐๐ช๐ป๐ด_๐๐ต๐ช๐ถ๐ป: I’m curious if it’s possible to have a specific biome be radioactive and damage players and mobs alike, unless the player wears a gas mask, is this possible with just kubejs?
disable elytra fly/gliding
stressedapple: is it possible to disable elytra flight general using kubejs?
[PAID 10$ or Nitro] Kill counter
Van: Yo can you make a kill counter mod which counts only how many times each player killed another, but doesn’t count a kill if a player killed the same player within 5 minutes. And players can display kill counter leaderboard with /kills, then top 10 killers appear in chat for the person who executed the command. Forge 1.20.1 server-side. I can pay max 10$ cuz im broke and I need the mod so bad. I can buy you a Nitro or decoration if you want. I have 200 players
Effects not working
Tarnisheart: I've registered these effects and they can be applied to the player, showing the correct color of particle.
ExtendedAE Infinity Lava Cell not registering
Arq: Hallo, I'm back again with the same issue, just on a different version this time.
Respawn player at spawn position
ouppy: This is somewhat similar to the post made Here: https://discord.com/channels/303440391124942858/1413592413607428217
Run block event for every tick (Like LevelEvents.tick())
Ayeloo: I want a block to run logic at regular intervals, so using `.randomTick` on the block builder won't do
Need help with a right-click dash item
IQofaCabbage: New in coding but I want to create an item which, when used, uses 1 xp level, lets the player dash on a 5 second cooldown and could also damage the first entity it collides with. what would be the way to do this?
curious and armor effects script crashing
Roaxayne: Startup Scripts and Server Scripts:
sword with affect
Osana: I'm making a glowstick, that when hit with, will make them have glowing for a minute.
Farmer's Delight cutting recipe
Amy: I'm trying to make a custom FD cutting recipe, where one item is cut into two of another item. And, i know this might look silly, i for some reason couldn't find anywhere how to specify how much of the result item would the recipe grant. Can someone help?
Other Temperature options
pipobutter: how would one go by making more temperature options in 1.21.1 neo forge. i would use https://legacy.curseforge.com/minecraft/mc-mods/create-heat-js but is both wrong version and loader. if anyone has any solutions/ideas @ me.
scheduleInTicks not executing on first instance of event
TofuToons: Hello! Running into a weird issue with my server script when during the first instance of an `.entityInteracted` Item Event after loading into the world (single player) `.scheduleInTicks` isnt being executed properly. Basically runs through the script as if those schedules are not there. But then on the second instance it works fine. Really unsure why this may be happening and any help would be appreciated <:tofugivelove:1419554684049293395>
not a kubejs question
Scar: is there anyway to fetch packsync's packages from url with pack code, like without booting the game, just install it via the api or sum?
DUPE BUG
แฒผแฒผืฉเนเนษญษญเธัแฒผแฒผ: with 1.21.1. if you have a code setup like this, Where you are trying to not consuming a plank with the recipe. if you have more than 1 plank in the stack. and shift click the recipe output. it'll double the planks in the grid. and will go beyond the max stack value of 64.
Replace other ingots from loot.
แฒผแฒผืฉเนเนษญษญเธัแฒผแฒผ: Is it possible to replace items in loot like you can with recipes?
Adding sound event to forge event
Aceplante: I would like to add the minecraft:entity.generic.splash sound to this event, but everything I have tried causes a crash. What would be the proper way to do this?
Crash script preventing certain mods from being installed to a modpack
dong beater3000: I've seen a few people wondering if this is possible to do from a pack dev perspective, is there a good way to intentionally crash the game or otherwise prevent the game from being playable if a mod off of some sort of mod blacklist added to a modpack? Better yet if a custom error message could be logged.
how do i texture buckets from bucketlib with kubejs
Creepy_Forest: i want to make a ceramic lava bucket like in the mod, but i dont need a bajillion buckets so i decided to add just one for lava. i got the thing working, but how do i give it textures?
Making sophisticated backpacks only equip-able in curious back slot
YourMom (goonie): Heyo, just trying to make it so sophisticated backpacks dont go in the chest slot. Since it doesnt use a tag to do this,
Not giving feedback after reload
๐Lunasulpix๐: Just a quick question, after following tutorials I see that when people go to reload KubeJS via /reload it gives the feedback response "Reloaded with no KubeJS errors!" once it's reloaded. However I don't seem to get that Feedback and can't seem to find where to enable it if it's even an option so whenever I update a datapack I'm left checking every couple minutes if it's reloaded already to make sure the datapack works. So my question is just is there a way to enable that Feedback or is that related to something else?
How can I remove armor trim recipes from jei
xceing: I've tried doing this, but the recipes in jei still appear after reloading.
give an effect in a radius
LgndTheDredgen: I've been at it for weeks but I cant figure out a way to give an effect to nearby mobs in a radius when you hit a mob
trying to change a specific block a mob is standing on to another
Tacocat!: like if a cow walks on grass block, change it to coarse dirt
How to register a custom Flint & Steel item?
qwerty97475: I want to register a "Bow Drill", which would function like a Flint and Steel but with less durability
How can I get a blood bucket?
wrath: I am playing the Superior Modpack in curseforge in the 1.20.1 version and I dont know where to find or produce a blood bucket.
block with model not loading model
Oval Pot: I have a block with a custom model, but it isnt loading. My model.json and texture.json are named the same thing, and called during event.create, is there something im missing?
I wanna add sounds on right click!
GeorgePara61: I wanna add a sound that plays when I right click an item!
Attributes for weapon damage/speed are not working in a mod.
Orginlock: I was wondering how these values were calculated so the mod can be changed to accommodate? Is anyone able to explain this.
Dimension locked recipe
Create: Can i make so a recipe can only be done in a specific dimension? (specifically the Ad Astra mercury planet) I would like it to be possible for any recipe, even if its addon related but its not needed. The second longer recipe is a custom create recipe.
Teleport me into Dimension when Z is <10000 and I'm in tfc:ocean biome
Mellowitsch: Hi, I wanted to write a script that teleports me to another dimension, for example to the Nether, whenever I’m in the Overworld and my Z coordinate is greater than 10,000 and I’m in a tfc:Ocean biome.
[Crash] [1.21.1-Build 295] Incompatible with GTCEU 7.0.2
Len Kagamine: It <a:explosione:834703038614732830> trying to create a world. Logs included; replicatable in a blank instance with both mods and their latest dependencies.
kubejs doesnt capture pixelmon events?
Zerito: When I try to capture any event of Pixelmon using NativeEvents.onEvent(), the class loads, but when I do anything that should trigger the event, nothing happens.
summon a mob when hit
LgndTheDredgen: How can I summon a mob when I get hit by a mob
How to disable a right click event when right clicking a certain entity with an item
kirb: i have looked the milked goat example on the wiki, but im not sure where to look for components to build the code with
How can I change my paxel's mining speed, enchantability, etc.
iamgold3nn: I am trying to make a paxel item using PaxelJS and CucumberJS 7.0.7 in 1.20.1. the workaround I have found is modifying the item right after startup, but I've only managed to change the attack damage & speed, there isn't really anything documented and their modifying page is awfully vague for my needs
probejs turned my modpack into a piece of digital garbage
Misha279Ua: i have a big modpack (over 350 mods), and i used kubejs to add some crafts & items, but i done this without probejs VScode addon, and when i decided to start using it, i downloaded the mod, and used the command, but after this my game just freezed, and now every time i join any world, i see only blue screen, and even i deleted all files that had "probe" in their names, it still doesn't work
Change walking sound and how often it plays based on speed
stonedgoldfish: Title says it
How do I search for capabilities on .getArmorAndBodyArmorSlots()?
Diju: Message not found
Toggle Boolean Block Property with In-World Right Click
Bubbline: All other threads I checked that asked a similar question were ignored or did not share any found solutions.
Item components
egg: How am I supposed to add item components to an ingredient/output? I want to make a create assembly line recipe that produces some assembly required sandwiches with a custom name (as an easter egg for using that recipe)
reversed potion curio item
Misha279Ua: is it possible to make that if you don't have a specific curio item, you will have an effect applied to you, in xaeros map mods there are effects that disable your map, and i want to use them to make a map atlas
Custom Create milling recipe not processing
Albert Fingernoodle: I am trying to create a custom milling recipe and it shows up in JEI and accepts items, however when I put the items in it never actually processes them:
Custom command script after restart only works after using /reload again
Xaturas: Hey yall,
creating and spawning a tacz bullet entity
duck: got a little bored and decided to try and make a block that shoots tacz bullets, but I can't get it to work
unable to increase hp of player when wearing a piece of armor
Rex: i want to make it so when player wears any armor, his hp is increased by the armor value of said armor piece, so to test it out i wrote the given script
How do i make my item take damage and turn to a different item when it looses all its durability
Mr Mind: this just consumes the item