Support Tickets


This page is still WIP!

how i store information in kubejs?

Alea: I am creating a pk system for my server with this code:

πŸ’¬ 4 • 1.20.1 • Forge • 

how can I change the dimension of a structure?

Elifian: I need to transfer the structure of a mod from one dimension to another

πŸ’¬ 1 • 1.20.1 • Forge • 

how do i nerf sprint speed

greenapple: i want to nerf the sprint speed of the player, but not the walking speed only sprinting

πŸ’¬ 5 • 1.20.1 • Forge • 

Custom Trim Materials

greenapple: How do i make my new item a trim material for armor?

πŸ’¬ 1 • 1.20.1 • Forge • 

Check if a block has a capability (block entities at least) like FE

Kragnoth: This is probably not unique to just 1.21.1 so I figured I'd ask on another version I script for frequently as well. How do you check to see if a blockEntity has the capability to hold forge energy?

πŸ’¬ 1 • 1.20.1 • Forge • 

how to get monster loot table?

omeranha: is there a method or an event?

πŸ’¬ 1 • 1.21 • Forge • 

Elytra Speed Nerf

Devø: Hello there !

πŸ’¬ 2 • 1.20.1 • Fabric • 

What changed in 1.21?

Impavid: I’m having issues getting a custom dimension / portal blocks to register on startup.. is there an up to date wiki or can someone point me in the right direction for what syntax changed for the latest version?

πŸ’¬ 2 • 1.21 • Forge • 

1.20.1 any way to ignore yaw rotation while using .getLookAngle()?

PierogiPL: Been looking for a solution for this for a while, something that would let me get a custom value for the yaw rotation

πŸ’¬ 1 • 1.20.1 • Forge/Fabric • 

How fix???

Literally Chest: Message not found

πŸ’¬ 1 • 1.20.1 • Forge • 

Custom machine

Simlju23: I want to make my own machine block with a custom inventory. I know how to make a custom block but not the rest. Is it possible to do with kubejs? If it is, is it hard? And is there a way for me to find out how?

πŸ’¬ 2 • 1.18.2 • Forge • 

Make a block unbreakable, unless broken with a tool

trulyyes: I want to have unbreakable blocks which can be broken with tools, for example: jungle log would be unbreakable(like bedrock), unless it's broken with an axe.

πŸ’¬ 1 • 1.20.1 • Forge • 

Anvil custom recipe

Zote364: Im wondering if there is a way to custom anvil combining recipe, like combining gold and iron ingot to produce copper ingot for example. Is it possible to be done in kube js or could that also be done using a smithing table

πŸ’¬ 1 • 1.20.1 • Fabric • 

New person, need help with simple script!

S q u i d: Hello uhm, I have never touched this kinda code in my life, and have no idea where to begin. I am not looking to use this mod a lot truth be told, I am mostly here out of necessitiy to remove a few specific enchantments I don't like. What tutorials would you recommend for getting this goal done? Given that I don't plan to use this tool that often if at all after this.

πŸ’¬ 31 • 1.20.1 • Forge • 

How to Iterate through the players in a level?

RedEgs: Making a custom peripheral using KubeJS and computer craft and I want to get the nearest player to the computer. How can I get all the players in a level so I can iterate through them?

πŸ’¬ 1 • 1.20.1 • Forge • 

Interface in block

Etema: How to create a block that can interact with the interface of a furnace, I know how to create a block and I already did it, but I can't get it to work. Right-click on it and it will open a furnace interface to smelt minerals faster or those exclusive to the furnace.

πŸ’¬ 1 • 1.20.1 • Forge • 

help with LootJS

Kurisu: Hi, what happens is that I want this code to not work when I have silk touch in my hand, but the negation does not work for me, in fact, the script only works when I have silk touch, which is totally the opposite, help 😦 or if there is a way to do it without lootjs

πŸ’¬ 2 • 1.20.1 • Forge • 

Need help with script to remove recipes and spawning of given item from any chest at all

Mako: ```javascript

πŸ’¬ 1 • 1.21 • Forge • 

BlockEvents left click, how to force up

DemonSlayer112 - [Ping for msg]: Hello, i got a simple script.

πŸ’¬ 2 • 1.21 • Forge • 

nbt tags on create sequenced assembly

Big Benk: no idea how this is supposed to work, can anyone help pls <:clhappy:1290459726701658132>

πŸ’¬ 1 • 1.20.1 • Forge • 

prevent villagers breeding?

IIIap: no sex <:politeheh:1182714896165634150>

πŸ’¬ 8 • 1.20.1 • Forge • 

Any way to put both tooltip application and recipe removal in the same file?

Keno: What the title said. Pretty much, I want to disable some items but they have a tooltip saying a short message on how to re-enable them by deleting the file that removes the recipe, but I'd like it to also remove the tooltip if its re-enabled.

πŸ’¬ 1 • 1.21 • Forge • 

Make item that are rendered in the helmet slot be rendered in Curios slots

Cicopath: You know how mob heads like Creeper Head, etc. can be put in the helmet slot, and they're rendered on the player? I want them to also be rendered when put in a curios slot. Any idea how I would go about achieving that?

πŸ’¬ 1 • 1.20.1 • Forge • 

KubeJs incompatible with Epic Knights

frank: This happens when joining a singleplayer world. which is weird as it bring you back to the serverlist.

πŸ’¬ 4 • 1.21 • Forge • 

add cooldown right click a item

solarinfire: helllo if possible or not ,

πŸ’¬ 32 • 1.19.2 • Fabric • 

Banned items

BENZOOgataga: My code is working, I mean it doesn't trigger any error to KubeJS, but it doesn't do anything

πŸ’¬ 1 • 1.20.1 • Forge • 

Prevent off hand item being placed with custom item

Twilight: I have generated a few key items used to activate custom portals. I want these items to not allow anything in the off hand to be placed when used to light the portal. Is there a way to do this through either preventing the place or making the custom items have an event that prevents it.

πŸ’¬ 4 • 1.20.1 • Forge • 

Does BlockEvents.broken work with tags?

ColdComfort: I've been trying to use the #minecraft:crops tag to trigger an event when a crop (such as wheat) is broken, but it doesn't seem to work. (Instead, it triggers when any block is broken.)

πŸ’¬ 25 • 1.20.1 • Forge • 

How do I disable the generation of cocoa, pumpkins and watermelons in the world? with kubejs

Vaaaaz: i need help :D

πŸ’¬ 31 • 1.20.1 • Forge • 

Why isn't my fluid texture not working?

Miko_boi: Bucket color works fine. I'm using a custom fluid texture

πŸ’¬ 17 • 1.18.2 • Fabric • 

run script, when entity in block

Wwelol08: Hello, I would like to know if it is possible to somehow execute a script if the entity is in a block? (for example in water)

πŸ’¬ 1 • 1.20.1 • Forge • 

Can Kubejs acces the cofig folder, to make a custom config file using JsonIO

Lucky [Dungeon Conquest DEV]: Basically making a custom config file so i dont have to tell ppl to go to kubejs/config.js

πŸ’¬ 1 • 1.20.1 • Forge • 

Adding effect to armor

Π‘Π²Π΅Ρ€Ρ…Ρ€Π°Π·ΡƒΠΌ Нахуй: I'm trying to add movement speed when wearing an armor item. I've already tried 5 scripts, and nothing works(

πŸ’¬ 73 • 1.20.1 • Forge • 

1.20.1 any way to ignore yaw rotation while using .getLookAngle()?

PierogiPL: Been looking for a solution for this for a while, something that would let me get a custom value for the yaw rotation

πŸ’¬ 1 • 1.20.1 • Forge/Fabric • 

Is there a way to change pickaxe mining level?

wiljack07: Making a modpack and I would like to change progression in my own way, is there a way of making a stone pickaxe the same mining level as a wooden one?

πŸ’¬ 1 • 1.20.1 • Forge • 

startup error that wont let friends join server

dippy :3: were doing life in the village, i get in just fine but my friends are getting this error message. how do i fix it?

πŸ’¬ 2 • 1.18.2 • Forge • 

Changing engine fuel

Π‘ΡƒΡ…ΠΎΠΉ Π±Π°Π½Π°Π½: Hi everyone, I tried to find an answer to my question on the internet, but I couldn't. Is there any way I can change the recipe for engines from some mods? For example, the engine from Immersive Aircraft or the engines from Create Diesel Generators. My build has diesel, gasoline, etc. fuels. So I don't want to have the same fuels from different mods. Is there any way I can convert the engines from the above mods to other types of fuel,

πŸ’¬ 1 • 1.20.1 • Forge • 

Change crafting type in bulk

Danymaddox: Hey im trying to change all crafting recipes that uses the vanilla crafting table to the spirit altar from Malum. Ideally i would like to do it in bulk, and maybe (if possible) make it so it will only change the recipes from a certain mod.

πŸ’¬ 1 • 1.20.1 • Forge • 

how do I add a recipe to everything with a certain tag?

justeasy: for example If I had #forgetools/hammers how would I add a recipe for everything with that input

πŸ’¬ 8 • 1.20.1 • Forge • 

issue with kubejs

ivy: me and my partner are having an issue with kube js while using essentials to play multiplayer, they will get an error log saying that the versions of kubejs are incompatable, but when checked they were the same version

πŸ’¬ 6 • 1.20.1 • Forge • 

am I dumb? how do fluids work

MildFlames: ```ServerEvents.recipes(event => {

πŸ’¬ 10 • 1.20.1 • Fabric • 

Check if a block can store energy?

Kragnoth: How would I do a check on a right clicked block to see if it can store energy, let's say FE? I was thinking something like getCapability existed, but ... I can't seem to find how to use that in a script.

πŸ’¬ 1 • 1.21 • Forge • 

Smithing recipe transfer enchantments ONLY

OliverWolf: I need to have a recipe transfer the enchantments from an item to the upgraded version, but use tags specified for the output for things such as durability/damage, and only transferring the enchantments from the input item.

πŸ’¬ 2 • 1.20.1 • Forge • 

Blue Skies Villager Gatekeeper Trades Not Edited

Seduced: Hey I just wanted to ask if anyone could help me with something ive been trying to do, so i have these versions (basically 1.20.1 Forge):

πŸ’¬ 8 • 1.20.1 • Forge • 

Adding attributes to mobs

greenapple: adding attributes to mobs

πŸ’¬ 1 • 1.20.1 • Forge • 

Recommended kubejs implementation for registry DataComponentType?

Mango is Me! (Ping when reply): I'd like to registry a custom DataComponentType, but I can't get a simple understanding of how to do it, either by looking at the ready-made mod implementation or the neoforge documentation. <:NotLikeThis:840563930370670594>

πŸ’¬ 1 • 1.21 • Forge • 

Error Unknown icode

NoveIX: Hi it's since this afternoon that I keep getting this error every time I run a script reload:

πŸ’¬ 28 • 1.20.1 • Forge • 

How to register a damage type

Cicopath: Basically, Aquamirea causes the following crash after its Crystallization mob effect is complete:

πŸ’¬ 1 • 1.20.1 • Forge • 

How to make mobs break blocks and climb and jump

greenapple: How to make mobs break blocks and climb and jump. Someone help

πŸ’¬ 8 • 1.20.1 • Forge • 

trying to create a recipe that duplicate a item with specified #tag

nightmare3007: i am trying to create a recipe that will use

πŸ’¬ 1 • 1.21 • Forge • 

Mekanism fluid tank (with 2000mb of milk) and harvestcraft recipe of milk bucket item

KEJWII: so here it is:

πŸ’¬ 2 • 1.20.1 • Forge • 

remove flight

Silly Gothic Foxgirl :3: would it be possible to remove creative flight from survival players? im making a modpack and i dont want players to be able to fly, ive already removed like flight upgrades but some mods might have flight you cant config to remove or remove a upgrade

πŸ’¬ 1 • 1.20.1 • Forge • 

Weird error on starting server (opening world)

Shai: so like im not an expert in this whole kubejs thing but i been using it for my modpack and every time i open a world it gives me an error that prevents the recipes from being removed but whats weird is that if i just run a reload command the error magically disappears and i dont understand what is wrong

πŸ’¬ 124 • 1.20.1 • Forge • 

Extended Crafting NBT Issue

Twilight: I have a recipe that is setup and everything matches to make the recipe I have set however I think something with NBT is causing it to not be allowed to craft. Anyone have any suggestions?

πŸ’¬ 7 • 1.20.1 • Forge • 

using a vanilla blasting recipe for a sequenced assembly

Joemama: Is it possible to use a vanilla Json recipe in sequenced assembly using the "custom" method? If so How?

πŸ’¬ 32 • 1.20.1 • Forge • 

How to get liquid ID

Greddode: Working on IE (Immersive engineering) and trying to add recipe for a fermenter. How do look up ID for liquids for output?

πŸ’¬ 8 • 1.16.5 • Forge • 

How do I iterate over an entity tag?

AngelOfCreation: I want to run event.modify on a list of entities without rewriting the same line 20 times. How do I do this?

πŸ’¬ 1 • 1.20.1 • Forge • 

Difference between removeEntries and removeRecipes?

diNkd: Would I use `removeRecipes` if i wanted to remove `all` types? vs. being specific with `removeEntries`?

πŸ’¬ 1 • 1.21 • Forge • 

what have i done wrong?

Shorkie: havnt coded before

πŸ’¬ 10 • 1.20.1 • Forge • 

Unlocking recipes through selectable options (eg. Origins)

Gridith McGriddles: I want to make a system where the player can select a certain option, like an Origin during world generation, and that determines what recipes they have access to. This way, the player would be able to craft easier/cheaper recipes when on 'cheaper mode' origins.

πŸ’¬ 1 • 1.20.1 • Fabric • 

1.20.1 Move player

PierogiPL: Ive figured out a way to move the player towards the direction the player is facing, i was wondering if its possible to do so while ignoring the player's yaw rotation?

πŸ’¬ 1 • 1.20.1 • Forge/Fabric • 

Help pls this aint working

Isaaxz: heres my script

πŸ’¬ 149 • 1.20.1 • Forge • 

Changing Item's name, regarding NBT

Wendy - Cat: I have no idea of what's going on with the code. Because i see no errors. Nothing on console, nothing in-game. No KubeJS errors, nothing changes...

πŸ’¬ 48 • 1.20.1 • Forge • 

How do I make the always edible all food gluttony script for 1.21.1?

Kragnoth: Trying ```js

πŸ’¬ 36 • 1.21 • Forge • 

World gen data pack

Literally Chest: Can someone pls teach me how to make the world a single plains biomes that replaces all dirt, grass blocks, and water. Additionally, removes grass, tall grass, trees, lush caves, and moss. Thank u! Just reply or add me

πŸ’¬ 1 • 1.20.1 • Forge • 

trying to add bot to single player world

nightmare3007: trying to use curtain to spawn a bot for my farm but the problem " kubejs:sync_server_data may not be send client" keep showing up.

πŸ’¬ 1 • 1.21 • Forge • 

how to check if an gamemode has been changed and how to save inventory when that gamemode has been..

Jimmy: How do I check if a player has changed their gamemode and of example if they were in creative then save that creative inventory and when they changed to survival create new inv for survvial and when they change back to creative the same inv we saved before should appear

πŸ’¬ 1 • 1.20.1 • Forge • 

Hide Recipe Catalyst in REI

mum's spaghetti: Is there a similar way in REI like in JEI to hide a recipe catalyst?

πŸ’¬ 3 • 1.20.1 • Forge • 

How to change ore generation!

greenapple: someone help! how do i make every ore to be 30% more rare

πŸ’¬ 4 • 1.20.1 • Forge • 

How to make a mob climb or jump

greenapple: Help pls!

πŸ’¬ 1 • 1.20.1 • Forge • 

How to add a tier between stone and iron

greenapple: i made a copper pickaxe, and want the tier to be between iron and stone, stone only can mine copper but not iron anymore, and copper can mine iron now.

πŸ’¬ 1 • 1.20.1 • Forge/Fabric • 

How does modifyAttribute work on 1.20.1?

lucy lucy: As per title, I noticed that KubeJS Legacy contains this: `modifyAttribute(attribute, identifier, d, operation)`, but I don't see any documentation for it on 1.20.1. Does it exist? Does it not exist?

πŸ’¬ 1 • 1.20.1 • Forge • 

Persistent data, if anyone wants to figure this out.

SourceOfficial: I'm tired of this not working. Here's what I'm trying to do:

πŸ’¬ 14 • 1.20.1 • Forge • 

Replacing fluid with a tag in recipe

H: can someone tell me why this doesnt work

πŸ’¬ 2 • 1.20.1 • Forge • 

Loading in function result with spread operator alternatives

SirChamomile: Hi folks. I wrote this function to output the ~1000 lines I need for this operation. It works great but I can't get the results to be loaded into the registration call. The blockState object is the issue. I can run the function externally and copy the output into the file, but I'd much rather not do that. I read somewhere on this discord that Rhino can't interpret ECMAscript stuff like the spread operator, so this is my best attempt to avoid it. Anyone got any ideas on why this isn't working?

πŸ’¬ 1 • 1.20.1 • Forge • 

Hiding items in JEI appears to do nothing

IHH54: Hello, I tried to hide a list of items from JEI, but it doesn't appear to do anything. I already tried the solutions proposed in this thread: https://discord.com/channels/303440391124942858/1287791798680551516 , to no avail.

πŸ’¬ 7 • 1.21 • Forge • 

im not a programer. . . what did i do wrong??

Constructor: i copied the code from https://kubejs.com/wiki/tutorials/recipes

πŸ’¬ 34 • 1.20.1 • Forge • 

1.20.1 Move player

PierogiPL: Ive figured out a way to move the player towards the direction the player is facing, i was wondering if its possible to do so while ignoring the player's yaw rotation?

πŸ’¬ 1 • 1.20.1 • Forge/Fabric • 

MoreJS remove modded trades/specific wandering trader trades

marcnum2: There's little to no information on trades in the morejs wiki so I tried applying the normal villager 'removeModdedTrades' event and no dice. The first trade works though

πŸ’¬ 2 • 1.20.1 • Forge • 

How do I get the config of a mod from it's config file?

SourceOfficial: I've seen people using Java.loadClass(), but I don't know how to get the java class I need to load to read to config. for context I'm trying to load the origins.common.toml config file so I can check if any given origin (e.g. the player's current origin) spawns in the nether or not to tag complete a FTBQuest.

πŸ’¬ 35 • 1.20.1 • Forge • 

Create Custom Particles

Lucky [Dungeon Conquest DEV]: Yay, custom VERY detailed particles

πŸ’¬ 26 • 1.20.1 • Forge • 

Give item when used in things like smithing

Derp: I know of the existence of the replaceIngredient, and I also know that it doesn't work with smithing recipes. I was wondering if I could possibly fix this by giving a player an item from something like command when another item (being the smithing template) is used up in the smithing table.

πŸ’¬ 1 • 1.20.1 • Forge • 

JEIEvents.hideItems() doesn't hide items from a certain mod on first load

Erse: in `startup_scripts` i add an item id list to the global object like this:

πŸ’¬ 3 • 1.20.1 • Forge • 

Make Mobs Break Blocks

greenapple: How do i make mobs have a 10% chance to break blocks?

πŸ’¬ 1 • 1.20.1 • Forge/Fabric • 

Make mobs randomly into a breeding state.

running with the wolves -Aurora: Title says it all, I'm looking for a way for mobs that are breedable to randomly enter into a breeding state. I should be able to handle the rest of the code when it comes to setting trigger offset.

πŸ’¬ 1 • 1.20.1 • Forge • 

Keybind respecting user change

Lucky [Dungeon Conquest DEV]: I have a keybind system. code below, but it currently has a redundant system, for trying to only register the keybinds once. it doesnt do anything. I want the system to respsect what the user sets as their keybind in game and not change it to the default every game startup.

πŸ’¬ 9 • 1.20.1 • Forge • 

Rotors and wind turbines

Π’Ρ–Π½Ρ–Π³Ρ€Π΅Ρ‚: Hello, a question for local experts

πŸ’¬ 2 • 1.19.2 • Fabric • 

MoreJS wanderingTrades event isn't working

marcnum2: ```MoreJSEvents.wandererTrades((event) => {

πŸ’¬ 4 • 1.20.1 • Forge • 

Change the tool needed to mine a block

Anonymous: Is it possible to change which tier of tool is needed to mine a certain block? For example if I wanted to be able to mine diamonds with a wooden pickaxe or collect obsidian with my hands, can it be done? If so, can someone please help?

πŸ’¬ 1 • 1.20.1 • Forge • 

LootJS not placing loot

marcnum2: Message not found

πŸ’¬ 2 • 1.20.1 • Forge • 

.getItem for curios slots

Berliumm: legsArmorItem and the normal kubejs inventory checks work but I cant seem to find one for curios slots

πŸ’¬ 2 • 1.20.1 • Forge • 

I was trying to make a 3D armor using GeckoJS

danielmh: I was trying to make a 3D armor using GeckoJS, but every time Minecraft tries to load the model it crashes, I've researched a lot about this, but I only found people with the same problem without a solution.

πŸ’¬ 3 • 1.20.1 • Forge • 

Removing entries in minecraft:enderman_holdable doesn't work?

Arimil: ```js

πŸ’¬ 2 • 1.20.1 • Forge • 

entity.level causes thread deadlock

TheUG: When I try to get entity.level my game freezes, added the thread dump

πŸ’¬ 5 • 1.20.1 • Forge • 

Removing one specific advancement

Anonymous: Hi I'm really new to kubejs and just need some help removing the "story/follow_ender_eye" advancement. I've tried already but I know I'm doing something wrong, could someone show me how to type that out properly or make the script for me really quick? Thanks a ton

πŸ’¬ 8 • 1.20.1 • Fabric • 

How do I make every pickaxe not able to dig, but not the tconstruct pickaxes

Xav1r: ?

πŸ’¬ 3 • 1.20.1 • Forge • 

Help making a block entity

BlackyChan: I already made a post but no one has responded and its been 2 hours. I need help creating a block entity in 1.20.1.

πŸ’¬ 33 • 1.20.1 • Forge • 

Logging features

Cicopath: Is it possible to log placed feature & configured feature JSONs?

πŸ’¬ 13 • 1.20.1 • Forge • 

How to make an stone block to open a crafting table or a chest.

TomasG: I'm just testing things, i'm pretty sure this is possible but the documentation is not the best haha.

πŸ’¬ 8 • 1.20.4 • Fabric • 

Help with creating a block entity.

BlackyChan: I am trying to make a few blocks as block entities but I keep running into errors and I'm not sure of the proper syntax to use. please help

πŸ’¬ 2 • 1.20.1 • Forge • 

Showing 100/6840 posts