Support Tickets


This page is still WIP!

CustomNPCs mobs remove the custom goal

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

πŸ’¬ 4 • 1.20.1 • Forge • 

modifying a recipe isn't working in player inventory

Dozzidog: I've been trying to modify a current recipe to use a different material

πŸ’¬ 2 • 1.20.1 • Forge • 

Editing Food Values

babyaintmoe: I have checked the prior support tickets regarding the topic, but I am sure I did it exactly like I am supposed to. The KubeJS logs don't return errors and I made no spelling mistakes. My changes don't apply to the food items ingame.

πŸ’¬ 3 • 1.20.1 • Forge • 

Can i recreate the flint knapping mechanic from no tree punching with kjs?

Creepy_Forest: So basically when u right click flint on stone, it "breaks" and gives u 2 flint shards. Can i recreate this? also im not using no tree punching cuz the config is broken

πŸ’¬ 12 • 1.20.1 • Forge • 

left click item making it log something

Wikter: Is there a way to make it so if player left clicks an item it would log that info like which player and what they left clicked? Like log in some file or something also to make it write a massage in chat so everyone would see it if someones got it

πŸ’¬ 7 • 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.

πŸ’¬ 3 • 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 • 

Certain Create blueprints do not hide properly in JEI using KubeJS

Ryu_Ronin: I am trying to hide specific Create items/blueprints from JEI using KubeJS on Forge 1.20.1.

πŸ’¬ 2 • 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 • 

How do I check for nearby players?

mo_mo (ping me): ```js

πŸ’¬ 8 • 1.20.1 • 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

πŸ’¬ 11 • 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 • 

Applying NBT tags to items via crafting

Sharky | Ping me: I currently have

πŸ’¬ 50 • 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.

πŸ’¬ 11 • 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

πŸ’¬ 18 • 1.20.1 • Forge • 

Silk Touch leads to infinite iron.

Nova: I customized drops for a minecraft ore block, and when I use silk touch on it it gives me more than just the ore block. How do I get it to drop only the iron ore block *when* it has silk touch?

πŸ’¬ 14 • 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?

πŸ’¬ 8 • 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 • 

1.20.1 Entity Loads Chunks

PierogiPL: Can i make an entity load chunks, kinda like a player, without the presence of a player needed tho

πŸ’¬ 2 • 1.20.1 • Forge • 

Random Starter Items

Cyan: How can I make it so the player gets a single item from a pre-defined list of items?

πŸ’¬ 5 • 1.20.1 • Forge • 

Replacing Apotheosis Gem loot tables with a custom item

Juni: Hi there! like the title says, i would like to replace all apotheosis gems in all loot tables with a general "gem" item, preferably a item matching to each tier of gem

πŸ’¬ 1 • 1.21 • Forge • 

How can I make a crafting recipe without consuming a certain item but rather wasting the durability

ItzByc (Ping on reply): What the title says pls

πŸ’¬ 1 • 1.20.1 • Forge • 

Cannot apply Custom Attributes/Tiers to Armor - How to build a Custom Piece of Armor?

EXPLO: Hello everyone. I am working on a modpack project that is strictly locked to specific mod versions due to dependencies. Because of this, I cannot simply "update to the latest version," so I need a solution that works within these constraints.

πŸ’¬ 1 • 1.21 • Forge • 

modify item durability

D.A.V.E.: I'm trying to modify the durability from the hammers and excavators of this mod. but the script doesn't work

πŸ’¬ 25 • 1.21 • Forge • 

Any idea to see what land claim an entity is in for FTB Chunks?

Zman.levi: I know the "/ftbchunks info" command exist, but it only returns a 1 if the entity is in a land claim, not specificially which claims it's in.

πŸ’¬ 1 • 1.20.1 • Forge • 

Can I blacklist/whitelist placing blocks in a specific dimensions?

QuiteQuiet7: I wanna make it so that the end dimension doesn't accept any block that isn't native to it and prevent the player from making a base there

πŸ’¬ 1 • 1.21 • Forge • 

Range Method???

♥β˜…TaraTheRatβ˜…♥: This modpack worked fine about 4-5 hours ago, but now it's giving me this error:

πŸ’¬ 35 • 1.21 • Forge • 

add a condition to LootJS.modifiers()

Osana: I want coins to drop when you break an ore, but obviously silktouch can exploit that. Ive tried .when and .conditions, but i don't know how.

πŸ’¬ 3 • 1.21 • Forge • 

Modified ATM9 error

freopt: I added and updated a bunch of mods in ATM9 and I get `Error in 'ServerEvents.recipes': An ingredient entry needs either a tag or an item` but it doesn't tell me where the error is. Some scripts end up broken like the magical soil recipe and botany pots for custom seeds and probably a bunch of others that I didn't notice.

πŸ’¬ 4 • 1.20.1 • Forge • 

Trying to make Vampire Bite

SUPERexter: It can't seem to work, I tried all the events that has something to do with interactions with right click!

πŸ’¬ 5 • 1.20.1 • Forge • 

I want to damage an entity when I right click with a bone

SUPERexter: It can't seem to work!

πŸ’¬ 6 • 1.20.1 • Forge • 

registering blocks that are multiple blocks in size

RJames: i need to explain this first, normally when you place a block, it obviously just places one block, however, there are mods out there which are larger than a single block, provided picture example is tanuki decor, where there are multiple furniture items which range from a 1x1x1 block to 1x2x1, 4x4x1, 1x1x3, 1x2x2 and so on. is there a reliable way to make these kinds of blocks in game using just kubejs

πŸ’¬ 12 • 1.21 • Forge • 

Custom Fluid for Create Splashing. is that possible?

GamerPal: Hello.

πŸ’¬ 27 • 1.21 • Forge • 

Restrict block placement/interaction to certain players

kummakapitany: I am currently using pufferfish's skills to make professions, and i originally wanted to use gamestages, but that mod is not out for 1.21.1. Is there a way to restrict block placement/interaction based on player tags/scoreboard data ?

πŸ’¬ 2 • 1.21 • Forge • 

can't clear villager gift loot from another mod????

SloppySlime: When you finish a raid, villagers may drop you free gifts, I've found the kubejs function to change it (ServerEvents.giftLootTables) despite the lack of wiki entry(which I might write whenever I'm finished with it) but clearing the pool only clears the vanilla items. I have a mod that gives the armor on certain occasion (10% chance) and I can't manage to remove it.

πŸ’¬ 11 • 1.20.1 • Fabric • 

Model errors causing a crash when useing EntityJS to clone Naga from Mowzies mobs

Burning Sulphur: Just trying to make a Naga with a custom owl texture, before i edit the behaviour to remove the acid spitting. can run /summon but then the game crashes

πŸ’¬ 76 • 1.20.1 • Forge • 

Xp boost effect

Isaac: I'm trying to create an effect that boosts xp gain by 2x, I just have no clue how to do it. I checked the wiki and I don't quite understand.

πŸ’¬ 1 • 1.20.1 • Forge • 

any way to add a block update listener to a custom block?

Quadruplay: i'm making a sieve, so i gotta detect when sand/gravel/etc gets placed above. i could use the block placed event, but that excludes other methods of placement such as falling, so my best bet would be to check on every block update which these trigger

πŸ’¬ 1 • 1.20.1 • Forge • 

Preventing Weather Clear on Sleep

Kunfury: Is it possible to prevent the game from clearing the weather every time the night is slept through?

πŸ’¬ 6 • 1.20.1 • Forge • 

Register Tool Tiers with Custom Items

∫ntegral + C: Is there any way to get kjs to acknowledge the existence of custom items before registering tool tiers? I'm trying to register a tier that relies on a custom item but get the error that `kubejs:prismadark_ingot` doesn't exist:

πŸ’¬ 2 • 1.21 • Forge • 

remove cant_accelerate in atm 10

zebjonk: how do i remove a specific tag from a block (in my case the productive bees beehives)

πŸ’¬ 4 • 1.21 • Forge • 

Class NativeEventWrapper not allowed blocks the use of onEvent trigger

Lillo: ```const BuildCompletedEvent = Java.loadClass('com.minecolonies.api.eventbus.events.colony.buildings.BuildingConstructionModEvent');

πŸ’¬ 1 • 1.20.4 • Forge • 

shapeless craft with any item

Π΄Π·ΡŽΡ€Ρ‡ΠΈΠΊ: ```js

πŸ’¬ 19 • 1.20.1 • Forge • 

Pickaxe generation

DarkstNight: So I have created several materials and want to make pickaxes based off of the materials. I have tiers for several ones and just want to see if it works, but there are instances where there is a material and a material type that match up. Here's what I want to happen: when two match up ie. superdense (infinity, space_time, dimensionally_transcendent, or interdimensional), making it use superdense stats, but multiplying durability by (infinity, space_time, dimensionally_transcendent, or interdimensional) and adding (1 (adding and extra 1 as it goes up through the tiers (infinity to space_time to dimensionally_transcendent to interdimensional))) to the rest of the stats.

πŸ’¬ 15 • 1.20.1 • Forge • 

lootjs drops from wiredredstone [FABRIC - 1.20.1]

mr_ron: i have this:

πŸ’¬ 1 • 1.20.1 • Fabric • 

Looking for a way to increase creature spawn attempts.

The743rdTankBat: I'm trying to increase the total number of creature-type mobs in my modpack. Is there a way to increase the number of creature spawn attempts the game makes on worldgen?

πŸ’¬ 1 • 1.20.1 • Forge • 

is it possible to change the default dimension in kubejs

Vanilama: im making a modpack right now and i want to make the player start in the aether instead of the overworld

πŸ’¬ 38 • 1.21 • Forge • 

bow charging idle animation for custom item

Bread Management: would it be possible to make the player have the animation of charging a bow play on loop whenever a specific item is being held?

πŸ’¬ 1 • 1.20.1 • Fabric • 

Script

Aleeee: I can create a `/stats` command with Kube.js that tells me my deaths, blocks, distance traveled, and playtime.

πŸ’¬ 11 • 1.21 • Forge • 

How to get Every Number in a dynamic range

Owen: im looking to know how to get a script to run for every number within a range that can be specified. so for example, if the range is 5, then it would run the script with the number being 1, 2, 3, 4, and 5. kind of like

πŸ’¬ 2 • 1.20.1 • Forge • 

Error java.lang.UnsupportedOperationException on what seems like a correct script

Lillo: I know this isn't the correct version nor the correct loader, as i am using neoforge on 1.21.1, but i couldn't find a solution and i need your help. I was trying to create a custom quest with the FTB Quests mod that needed to trigger when the player reached a specific level of a specific building of the minecolonies mod. that seemes impossible to do, as there was no communication between FTB and KubeJS, so i headed this way, using a script to check both at the start of the world and at the completion of a building (using minecolonies api) and to check a map of needs and quests id to complete an empty quest via command. This has lead to an infinite amount of errors i have been able to fix, but this one. i've been running in circles and i can't find a logical solution to this. the server_events.js file is in the main kubejs folder, while the other scripts are in the server_scripts folder (i've read that this is the only way to make it work, but it seems there's a problem between kube and rhino). KubeJS is updated to its latest version

πŸ’¬ 2 • 1.20.4 • Forge • 

Perform block action on all chunks?

Kragnoth: I want to make it less obvious which chunks the player is in range of, and I want to spawm blocks/etc. Is there an event that I can tie into that will do this quietly without causing too many cascading chunk loading errors? I'd like to let's say do like what snowfall does... only with ash and block changes.

πŸ’¬ 6 • 1.21 • Forge • 

Custom Command Warp

Estatrix: Is it possible to make a custom command that works like a warp?

πŸ’¬ 19 • 1.20.1 • Forge • 

How to add attributeModifiers to items for the offhand slot?

Jimbob: There appears to be no option to specify the slot for attribute modifiers. Like below, I want to create a feather that when held in the off hand gives +5% Attack Damage, or any other attribute. However, at the moment this only changes the attribute when the feather is in the main hand, how can I make this work when its in the off hand? (This is in ItemEvents.modification)

πŸ’¬ 2 • 1.20.1 • Forge • 

limiting custom enchant levels

Cat :3: so there is this one mod that i like and after configing it enchants have multiple levels however i think some enchants should be stuck at the base level (with the default config which counts them as max level theyre too op)

πŸ’¬ 27 • 1.20.1 • Fabric • 

Can't set player's absorption amount

Raio: `event.player.setAbsorptionAmount()` doesn't seems to work, no errors either

πŸ’¬ 2 • 1.21 • Forge • 

How to use BlockBuilder.color()

Dusty: Title says it pretty much. How is it used? I can't find a single example on google.

πŸ’¬ 1 • 1.20.1 • Forge • 

trying to figure out and understand how 'randomize' a recipe using the world seed

Tacocat!: in CABIN and A&B, there is a recipe that is different for every world. im trying to figure out how they codded it by looking inside the files but its a little dificult to understand considering im not very good at coding. was wondering if someone could assist so i can reverse engineer it.

πŸ’¬ 1 • 1.20.1 • Forge • 

Item.getItem() method not working properly?

milo: Trying to get the internal item for this block class' constructor as it is required. It seemingly isn't returning the internal item and is returning as air. I have verified the item id i am using is correct; and using `Block.getBlock()` works correctly and does return the internal block.

πŸ’¬ 39 • 1.20.1 • Forge • 

Change item durability

Kotara4: i want to make the slingshot from supplementaries be unbreakable, what is wrong

πŸ’¬ 12 • 1.21 • Forge • 

[1.21 NeoForge] Issues with ArmorMaterialBuilder.repairIngredient and linking Armor Items

Night: I'm encountering two issues while trying to register custom Armor Materials and Armor Items in KubeJS for Minecraft 1.21 (NeoForge).

πŸ’¬ 10 • 1.21 • Forge • 

Showing 100/10703 posts