Support Tickets


This page is still WIP!

Trying to add custom functionality to snow layering

Rex: I'm making a modpack, and I'm trying to make snow stack. Weather, storms and tornadoes does not seem to have a way to turn specific weather patterns off (I don't want tornadoes, just blizzards), and snow real magic is too chaotic in the way it places the layers. Is there a way I can run code on random weather events like snow placement with kubeJS?

💎 1 • 1.20.1 • Forge • 

Why did it stop working?

Farcr: This has always worked, and now stopped working. Nothing within the file changed, the syntax is correct as per the wiki and other scripts, why does this refuse to work? If i remove the bronze ingot entry, then the next registry entry is the one that breaks. Why.

💎 2 • 1.21 • Forge • 

lootable adding function not working properly

Pom: i was wondering if its my lootabke code or kube js code at fault but i tryd adding a lootable inside a block thats being added in a lootable heres the code

💎 6 • 1.20.1 • Forge • 

Fluid texture not working, uses missing texture instead

Nerx: Images provided show the following:

💎 2 • 1.20.1 • Forge • 

Would it be wise to create my basic chunk claiming system in KubeJS?

Yamie: Basically the title says it all, I asked in the Denizen (Plugin scripting framework) Discord server and was redirected here.

💎 6 • 1.20.1 • Forge • 

Error with Malum Runeworking recipe

TomatoSoupter: Tried making a helper function for making Iron's Spells runes using Malum's Runic Workbench and I keep getting these errors

💎 3 • 1.21 • Forge • 

Custom oregen

Yonder: I'm trying to make a custom ore spawn i have a configured feature and a placed feature but i don't see it anywhere, when i try /place it also fails

💎 1 • 1.20.1 • Forge • 

Need help with modifying existing food items

babyaintmoe: Hi! 🙂 I would like to ask for an example script for the NeoForge 1.21.1 version of KubeJS that allows me to modify any given food item. Best case would be something with placeholders where I just gotta insert the item name and the numbers I would like to tweak. I am weak in JS, that's why I can't just copypaste and easily use the Script of this other person that everyone refers to. Feel free to include all possible food properties that are changable so I can pick which ones I might use.

💎 4 • 1.21 • Forge • 

Adding Curio Supports for this item

Silverish Red: I tried tagging it with 'curios:back' and it works but it loses all its elytra flight and dash ability.

💎 3 • 1.20.1 • Forge • 

how to make connected storage blocks like how double chests work

RJames: from what i know you can add this into your block registry

💎 3 • 1.20.1 • Forge • 

EntityJS - Translucent glowing geo layer?

Tyler Geovex: I was able to get a glowing texture working like this:

💎 1 • 1.20.1 • Forge • 

Custom Effect that acts similar to wither but on death runs a command?

Agnes Freak-ital [Cookii]: Basically I want to make an effect that damages the player over time like the wither effect but when you die it runs a command/a lil bit of extra code

💎 4 • 1.20.1 • Forge • 

How can I change Properties for Mods?

Schmutzfink: It just says that Values like armorProtection, armorToughness and knockbackResistance aren't available

💎 1 • 1.21 • Forge • 

I need help with the spawners.

snawk_mong: Is it possible to make the mob spawner automatically break after a certain number of mobs appear? For example, if 3 mobs appear, the spawner breaks automatically, with a count per spawner and not a global count.

💎 1 • 1.20.1 • Forge • 

is it possible to change mob attack damage values

kirb: with kubejs? I want to nerf the warden's damage but i cant find any mod for it on forge so i hope it can be done with kube

💎 2 • 1.20.1 • Forge • 

forgeevents not starting

Veruty: ```js

💎 1 • 1.20.1 • Forge • 

Is there a way for me to use a model (.json) from my ticket in KubeJS? (NeoForge 1.21.1)

Amo minha Baiana<3: Message not found

💎 2 • 1.21 • Forge • 

How do i make item that when right clicked it will make a sound?

Rat wizard: And is there a way to add cooldown to that for example 0.5 second cooldown?

💎 1 • 1.20.1 • Forge • 

[TACZ] Getting Started

Rad Poseidon: I'm trying to customize TACZ to be more well integrated with my modpack. I attempted to remove all recipes matching ammo, but it doesn't seem like the TACZ workbenches use data, or if they do I didn't see any in the source.

💎 9 • 1.20.1 • Forge • 

KubeJS Create/Thermal stone cutter bug

Jerryrod826: I'm not a coder or anything but I'm playing the create above and beyond (with my own additions) and i started getting these errors and i didn't see any problems so i kept playing but i just realized i cant craft a screwdriver and therefore cannot craft precision mechanisms which is a huge problem.

💎 1 • 1.21 • Forge • 

Spawning structures

Moonlit Eclipse: I'm wanting to make a custom structure spawn in a specific location (think lore landmark for a modpack), are there any examples or resources I can look into to get a hint on how to spawn in a structure during world gen with kubejs's scripting? And for the same structure, is there a easy way to get the surface of a given coordinate, or do I need to loop through the top of the coordinate column until I find the lowest air block?

💎 1 • 1.21 • Forge • 

Prevent an item from dropping from an entity

Algrate: Hello, I'm trying to disable an item from dropping from a certain entity. But I have no idea how to do it. Can someone help me? Thanks

💎 2 • 1.20.1 • Forge • 

Altering Regional Difficulty with KubeJS

PotatoBro: Just wondering if this is even possible. I want to but I don't know the first possible step to do so.

💎 1 • 1.20.1 • Forge • 

Backstabs - Double all damage dealt from behind the player's back

Pakaru: Basically i want to add back stabs to Minecraft, all damage dealt within a 90 degrees cone behind the player's back would be doubled. Any help is appreciated, thanks!

💎 2 • 1.20.1 • Fabric • 

I cannot start the mod because of this error any ideas ?

Fapley: Not original minecarft, playing from tlauncher

💎 2 • 1.20.1 • Forge • 

KubejsTweaks Disable/Ignore recipes

Danymaddox: Hey im having some problems with mod recipes failing to parse. I would like to remove/disable them. As far as I know i need to use KubejsTweaks but i cannot figure oout how to do it. Can anyone help me? 🙂

💎 4 • 1.21 • Forge • 

is there a way to create a block that product infinity milk?

čŊéģĨéĒĻæœˆ: like the cow in Jaw from cooking for block head

💎 5 • 1.20.1 • Forge • 

dude

Aleeee: Is it possible to create a casino with Kube.js?

💎 9 • 1.21 • Forge • 

Giving effect to event entity.

RARE PANDA: how in the kubejs do i make an event entity not able to deal damage but still like push the player around? i cant figure out how to apply weakness as its not showing up in the probejs stuff.

💎 2 • 1.20.1 • Forge • 

get anvil slots for enchant comparison

SloppySlime: I am trying to remove enchant fusing (as in putting 2 items with the same enchant give you the level 2 of this enchant) and I've got a script that checks the right ingredient slot of the anvil, however I don't know how to get the left one.

💎 3 • 1.20.1 • Fabric • 

cosmetics

Anonymous: hi so i wanted to make a thing on my server for like permanent cosmetics where people can equip them like if they have access, how can i go about making something like that

💎 1 • 1.21 • Forge • 

PersistentData QuestCompletionCount, pseudo script provided.

RARE PANDA: Hello im trying to make a kubejs (1.20.1 forge) script that saves the counts of each quests completion (in repeatable quests for example) so that it unlocks something when they complete the quest a certain ammount of times. if something like this is already in ftbquests plz tell.

💎 1 • 1.20.1 • Forge • 

Make custom fluid show ingots instead of mb in Tconstruct JEI

J.F. Lifesteal: Normal molten metals in tconstruct show the amount of ingots/nuggets of fluid in a recipe (where 1 ingot = 90mb). How can I do this with a custom fluid?

💎 13 • 1.18.2 • Forge • 

return food container after eating

Mixa279Ua: like i drink a drink and get a bottle back

💎 9 • 1.20.1 • Forge • 

BlockEvent silently registers for all events if ID doesn't exist

Mqrius: Ran into a bug where `BlockEvents.broken('#tfc:mineable_with_sharp_tool', event => {` would trigger on every block, because BlockEvents seems to want a block ID, not a tag.

💎 4 • 1.20.1 • Forge • 

registering new blockstates/properties to add to new blocks or using blockstates from mods

RJames: I know how to add properties to blocks when registering a new blocks using the property() method, however i want to know if it is possible to add/register my own properties so i can use that custom property for the specific blocks i want to make, or alternatively, use properties from other mods. which classes do i need to load to achieve this

💎 2 • 1.20.1 • Forge • 

is it possible to make a kubejs chest-GUI (neoforge-1.21.1)

Tuxy: so that if an item is seletcted itll run a command, etc,

💎 1 • 1.21 • Forge • 

`forEachRecipe` doesn't include newly added recipes

Aurif: I am trying to use `event.forEachRecipe` to iterate over all recipes of a specific type, however, it doesn't seem to include recipes that were added through kubejs itself.

💎 7 • 1.21 • Forge • 

No player needed spawners

T^T: Hello, is there any chance that it's possible to make code where you depends of clicking on spawner with for example create wrench and it's turning into spawner that doesn't need player near?

💎 51 • 1.21 • Forge • 

Making Rarer Mobs Naturally Spawn

EEX5: Alright so I'm trying to make it so rarer mobs(mobs with better armor, tools, even charged creepers) spawn more commonly/naturally. But I have NO IDEA how to use entity events on kube so that's why I need help.

💎 24 • 1.20.1 • Forge • 

Reading json in ServerEvents.generateData

Bord Listian: Is there a way to read a datapack json in the generateData event? I want to make small changes to vanilla files but currently the way to do this is to copy the entire thing into my js code.

💎 3 • 1.21 • Forge • 

can't get removing with a list to work.

PotatoBro: I honestly don't know what's happening. The top list appears to work but then the recipe reconstructs itself.

💎 4 • 1.20.1 • Forge • 

Seeing if its possible or not..

MangoNugget.ðŸ”Ĩ: My girlfriend wants a server with horror mods, personally i dont have much experience with them just that most will kill you almost instantly at any time, so i was wondering if kubejs could restrict the events and entity spawning

💎 1 • 1.21 • Forge • 

removing block cutting recipe

Melon: Im trying to remove the oak wood block cutting recipe but cannot figure it out.

💎 20 • 1.20.4 • Forge • 

Sophisticated Storage Reducing JEI Spam

KCtops6: Hello, looking to use RecipeViewerEvents to significantly limit the number of redundant chests, barrels, etc... appearing on JEI. Looking for some pointers on how to proceed with this. Help is appreciated in advance!

💎 2 • 1.21 • Forge • 

block particle isnt applied to block

JoniCraftHD: ```js

💎 1 • 1.20.1 • Forge • 

cant detect luckperms nodes.

Tuxy: [21:08:55] [Server thread/INFO] [minecraft/MinecraftServer]: tuxmango joined the game

💎 2 • 1.21 • Forge • 

How to disable mod mob summoned structures (i.e. custom golem patterns)

CostlierSquid: Hello, so I'm trying to disable the copper golem spawning from the caverns and chasms mod as unfortunately there is no config to disable it on its own. I have made a script that clears and deletes the entity almost instantly, which is great, but the blocks used in the pattern for creating the golem (carved pumpkin with lightning rod on top) get deleted, essentially wasting your materials. Is there a way to replace these blocks or never have them be removed in the first place. I am aware that the mod itself I believe is hard coded to remove the blocks, but is there any way to combat this? Would really appreciate some help. Thank you in advance.

💎 15 • 1.20.1 • Forge • 

Feature Request / Issue: Need animal protection in claimed chunks with FTB Chunks integration

Lucas Gabriel: In ATM10 (All The Mods 10) version 5.3.1, I'm trying to prevent players from damaging passive animals (cows, pigs, sheep, chickens, bees, etc.) in chunks claimed via FTB Chunks, unless they are the owner or an ally of the claim.

💎 19 • 1.21 • Forge • 

Do composter recipes work?

Phillip and Friends: I tried to make some custom composting recipes with ServerEvents.compostableRecipes, following some example scripts. The script reloads with no errors but the recipe doesn't do anything. Is this just broken on 1.20.1 Fabric, and if so, any chance it can be fixed in the near future?

💎 1 • 1.20.1 • Fabric • 

Adding an existing AI goal to a different AI

Burning Sulphur: <@696035922030100561> , I know how to remove AI goals now. i'm struggling to understand the wiki on how to add AI goals. I want to add the skeleton bow attack to the zombie. I am struggling to understand how to use these examples https://github.com/liopyu/EntityJS/wiki/AI-Creation

💎 131 • 1.20.1 • Forge • 

CustomNPCs mobs remove the custom goal

Andrezinh0: https://www.curseforge.com/minecraft/mc-mods/customnpcs-unofficial

💎 5 • 1.20.1 • Forge • 

I wanna bonemeal bedrock/stone to grow glow lichen on it

QuiteQuiet7: I tried don't with Blockevents.rightClicked and specify bonemeal in main hand, idk how to do that, and I tried asking gpt about it, who was undeniably useless and I know I'm not supposed to post ai code here.

💎 1 • 1.21 • Forge • 

Updating LDLib dynamic texture

Blakil: Am I right in thinking that it's impossible to update dynamic textures with data from the server? I'm facing a chicken-and-egg problem: it's impossible to update data entirely via DynamicTexture in server_scripts. So I have to use client_scripts, which in turn can't reach the server because there's no protocol for transferring large amounts of data?

💎 2 • 1.20.1 • Forge • 

Food Modifications

Kotara4: im trying to edit some food items but its not working

💎 24 • 1.21 • Forge • 

Can someone help me add a custom coolant for powah generators?

Fire_VA: I've been trying to add ether gas as a coolant for powah reactors but everything I've tried hasn't worked and I was hoping to get some help here

💎 1 • 1.21 • Forge • 

Change item attributes after crafting

shrimpo: My plan is to increase my sword's damage every time I craft it in a certain way.

💎 6 • 1.21 • Forge • 

Can i make it to where when you create a world you execute a command or get a item only once

TripleBomb: Hi i’m wondering if i cane make to where a person creates a world they get an item or execute a command only once, even if they rejoin the world

💎 1 • 1.20.1 • Forge • 

2d in inventory 3d model when held for kubejs blocks

YigitAKLN: is this possible if so how please i need it as fast as possible <:prayge:1441401806797148261>

💎 125 • 1.20.1 • Forge • 

Need help: Simulating player kill on mobs for Apotheosis drops (NeoForge 1.21.1)

Kacper:): Hi everyone,

💎 1 • 1.21 • Forge • 

replaceInput with tags

Owleee: I want to, for example, change every instance of `farmersdelight:onion` in cooking recipes to `#kubejs:onions`, but this also affects recipes with the ingredient `#forge:vegetables` as the onion item has this tag. is there a way to only target specifically the onion item but not the tag that contains it?

💎 7 • 1.20.1 • Forge • 

Is player.tick laggy?

Pitersonix: ```js

💎 14 • 1.21 • Forge • 

read minecraft trades using morejs

Henry209809: ```

💎 1 • 1.20.1 • Forge • 

A custom command that requires a player to be in a scoreboard team

MasterNinad: [Latest 1.21.1 Neoforge Build of KubeJS]

💎 1 • 1.21 • Forge • 

[Bug?] KubeJS Create Thinks Tags Contain a Fluid

ratemisia!: 1.21.1, NeoForge 21.1.216.

💎 2 • 1.21 • Forge • 

unify items

NotNagato: hi im trying to unify items and im not sure where to start with it i started manually removing and replacing each recipe that had the item i wanted to replace in but then more and more things came out like block drops and chest loot if there is a way to fix this easier than replacing each item manually can someone please help me T_T

💎 13 • 1.20.1 • Forge • 

prevent default behavior for advancement rewards from advancement event

asof: i'm attempting to intercept the default behavior to make the "loot" reward type only claim when the player actually chooses to claim the item.

💎 1 • 1.20.1 • Forge • 

command builder accept any advancement namespace

asof: there's the "resource location" proprety, but how would i specify what kind of resource it uses? i'd want this command to only accept advancements.

💎 1 • 1.20.1 • Forge • 

Making silly custom items

Wikter: So I made like 2 items so far 1 is air strike which summons tnt from air and second is graveyard that summons skeletons

💎 2 • 1.20.1 • Forge • 

add.items for fabric 1.20.1

mr_ron: how does one add items so they're not hidden in REI if only a few recipes/items are wanted from a particular mod?

💎 1 • 1.20.1 • Fabric • 

Change entity max health with a command

Jmynii: is there a way to change the max health of an entity with a command using entityjs?

💎 8 • 1.20.1 • Forge • 

Manors Bounty and Let’s Do

ruby rock: Hello,

💎 2 • 1.20.1 • Forge • 

make an item unobtainable if it doesn't have specific nbt tag

SloppySlime: title, I want the player to only get an item from a certain source, this source gives the item nbt data that is unique to it. I want the player not to be able to get the item if it's not this specific one.However I don't know how to do that

💎 6 • 1.20.1 • Fabric • 

neofoge 1.21.1 server kubejs script issue

ðŸ„ąðŸ„°ðŸ…ðŸ…ƒ: // hourly_cog_rewards.js

💎 30 • 1.21 • Forge • 

Limit flying player's speed

Holmes: I'm looking to limit players creative or /fly flying speed, and wanted to see if it's possible using kube. No idea where to start looking for that info, so anything helps.

💎 1 • 1.20.1 • Forge • 

Is there a way to change with which attribute iron spell book spells damage scales.

Lebbog: For example with minecraft generic magic

💎 1 • 1.20.1 • Forge • 

Giving a KubeJS recipe priority over an existing recipe

DiscoTech: I'm trying to make a script which uses Create's haunting recipe type to turn moss blocks into Vanilla Backport's pale moss blocks.

💎 12 • 1.21 • Forge • 

Create recipes have "invalid fluid input" with no fluid inputs

aaasperaaa: i'm working on porting a kubeJS script from 1.20.1 to 1.21, and have been getting an error that makes no sense to me:

💎 5 • 1.21 • Forge • 

Removing items from JEI based on ingredients

Meepx13: Title, I would like to remove all create machines from JEI that use andesite alloy (removing industry from create)

💎 1 • 1.20.1 • Forge • 

Failed to synchronize registry data from server

Shiba: For the past few days, I have been creating items on my server, but when my friend tries to join, he gets this error. We have tried everything, even putting the same folder that is on the server into my friend's client, and it doesn't work. What solution is there for this?

💎 3 • 1.20.1 • Forge • 

Add custom damage type in code

Micky: I've seen the 1.20 method for this, but I can't find an equivalent as of yet. Autocompletion is absolutely not helping, and the type provided can't evne be used.

💎 1 • 1.21 • Forge • 

Origins classes with personal recipes

Ezekiel: Hello all! I'm building a modpack with classes and custom recipes for them. Despite the fact that the Origins already has tools for this function, on 1.20.1 Forge it's bugged (tags isn't working, but I need to ban hundreds of recipes), and mod no longer supported.

💎 2 • 1.20.1 • Forge • 

how to get a block to interact with its gui

おすき: I'm not good at coding. I need an item from slots 1 and 2 to be removed from the anvil when I right click on the anvil. I don't understand how I can access the anvil for this and what method to use.

💎 2 • 1.21 • Forge • 

Help trying to make an item with a random single enchant spawn in ANY chest

Soul: been trying to get a mods items to spawn in any chest not just the one the jar file has it set too and cant seem to get it right, if anyone could help that would be amazing.

💎 2 • 1.21 • Forge • 

Hide SpartanWeaponry tooltip properties

Estatrix: Is it possible to hide the Traits/Material tooltip from all items using Kube? They take too much space but I don't want to directly disable them

💎 19 • 1.20.1 • Forge • 

Harder Raid

Vyehart: So Im currently trying to make raids harder and make them custom per Level of bad omen and per wave so far Ive been able to add custom equipment per wave and I can increase the amount of raiders that spawn from a pool of mobs however I want the higher levels of bad omen to trigger the additional spawns but I can only trigger them by changing the default bad omen level or the default multiplier in my script. Right now I have 3 items in my script to test Bad Omen Level a boss like mob that is intended to spawn on a Bad Omen Level 4 Wave 3 of a raid another intended event of only evokers spawning on Bad Omen Level 2 Wave 4 or a raid and the Multiplier that is also supposed to apply per level of Bad Omen. However my script is not getting the level of bad omen used to summon the raid Here is the script I am using. its to large to post as a script in this post.

💎 2 • 1.20.1 • Forge • 

Looking to convert a fix into a datapack

Aeratoth: So I made this fix for an issue I had with the create: factory must grow, and I want to convert it into a datapack so I can share the fix with others. The part that I can't figure out is how to get the "Amount:1000" into a datapack. If anyone knows how to do it, I would be super grateful.

💎 4 • 1.20.1 • Forge • 

how do I make this work to spawn tnt in the dirrection im looking?

Wikter: ```js

💎 2 • 1.20.1 • Forge • 

Is it possible to assign Nbt tag with number value to all instance of specific items?

Delphi: Is it possible? For context i am looking into creating a food expiry system for a modpack/server, and im trying to start with just trying to have food items universally start with a "freshness" level, if one could help me with the other steps that would be cool too but priority is just getting all the good items to have that.

💎 8 • 1.21 • Forge • 

theres a way to multiply the damage of all the weapons of a mod without making one by one?

GHOULST comm(1/5): im sorry, im kinda new with this, im trying to balance a modpack but theres to much weapons to go one by one

💎 14 • 1.20.1 • Forge • 

How do I remove recipes of other mods from my own NeoForge mod?

Ramen: I added KubeJS to my gradle and made a plugin for my mod, but I want to remove other mods recipes from my mod. Is this possible?

💎 11 • 1.21 • Forge • 

Why does this JavaAdapter not work?

Rimevel: ```js

💎 7 • 1.20.1 • Forge • 

setTimeout only works after /reload?

Dusty: Title says it. setTimeout seems to never work, but suddenly is fine after reload?

💎 1 • 1.20.1 • Forge • 

tags not adding to items

weedocto: hey, im trying to add haunted harvest corn to #forge:crops/corn but it just... isnt working?

💎 22 • 1.20.1 • Forge • 

Mystical Customization

Game_MasterHD: It's not about KubeJS itself, but I know the scripts are similar.

💎 1 • 1.20.1 • Forge • 

How to create a block with different models based off blockstate

Korrel_le_clown: I cant figure out how to create a block with blockstates, .setBlockstateJson isnt recognized and .blockstateJson just creates a textureless block.

💎 1 • 1.20.1 • Forge • 

How do i change an items color based on nbt?

Laze: i was testing but could only find out how to change it this way:

💎 5 • 1.20.1 • Forge • 

Block texture not loading

Jack | Zephr: Trying to add a custom block and the texture is just not showing at all. Followed all the stuff on the wiki and looked in here for related questions but can't sus out why its not working. Any help would be appreciated. Also, I have file extensions enabled in Windows 11, so its not that I've added extra text that isn't needed and therefore its not matching what I have in the js.

💎 3 • 1.20.1 • Forge • 

how do i get the id of an ingredient?

Þium: like

💎 7 • 1.20.1 • Forge • 

Using regex in RecipeViewerEvent.removeRecipes

PhénixCraie7: Hello,

💎 15 • 1.21 • Forge • 

Showing 100/10740 posts