Support Tickets


This page is still WIP!

Remove all tags from a mod

Lynn (cool554): Is there a way to blanket remove all tags a mod adds? im currently trying to disable the functions of the trinkets mod but doing event.removeAll('trinkets:*') isnt working

💬 2 • 1.20.1 • Forge • 

Converting translation key to string

Grim: I'm trying to get the name of an entity and convert it to a string to store a completion counter for Gateways to Eternity gates. I can get the name using entity.name, but when I try to do string operations on it, it starts giving me a translationKey. How can I just get the displayed name as a string?

💬 2 • 1.21 • Forge • 

Scaling attributes in Pehkui

Lampent51: I'd assume editing [Pehkui](https://www.curseforge.com/minecraft/mc-mods/pehkui) attributes would be the same as editing base Minecraft ones, but I can't seem to make it work? The `safe_fall_distance` works fine, but `knockback` doesnt. I tried making it `pehkui:generic.knockback` but it wouldnt work either.

💬 1 • 1.21 • Forge • 

Removing curios slots

Pitersonix: As in Title, I hope it's simple.

💬 2 • 1.21 • Forge • 

Checking KubeJS State via Code?

Obscuria: Hi! I'm not familiar with KubeJS, but I was asked to add support for its state system in my mod.

💬 1 • 1.21 • Forge • 

How to read files in KubeJS

Lightning323: How do I do it? Is it even possible? I want to read the JEI blacklist from the config folder and erase recipes from the items listed.

💬 15 • 1.20.1 • Forge/Fabric • 

Trigger entity event (cast spell) when mob attacks using onHurtTarget

marcnum2: The following code causes a spell to be cast every 20 seconds, however, I'd prefer the spell to be cast onHurtTarget.. Is there any way to incorporate this? Maybe I can link the server script to a startup script?

💬 2 • 1.20.1 • Forge • 

Picking Up an item while using fully enchanted armor with that specific enchants said item

Berlium: ```js

💬 2 • 1.20.1 • Forge • 

How to create Item Application recipes using KubeJS Create Addon?

MasterNinad: An example of doing it via JSON, how to do this dynamically using KubeJS Create?

💬 7 • 1.21 • Forge • 

EntityJS how do I add custom sounds to custom mobs?

LgndTheDredgen: I'm trying to update an old custom mob but I don't know how to add custom sounds to it, I also wanna add several sounds simular to how a zombie has multiple hurt sounds.

💬 2 • 1.20.1 • Forge • 

How do anger a mob / make it mad at me

Park1423: I have a mob that normally isn't angered at me because of modded conditions, but I want it to ignore those conditions and attack me regardless.

💬 1 • 1.18.2 • Forge • 

Scoreboard script help

DSTC: Im trying to get into coding and i have been using this to help me learn so im trying to make a scoreboard I have economy craft in my game that adds the scoreboard I used another economy mod that added players ranks and ping in ms above players heads and in scoreboard and is no longer in the game I wanted to make a custom script to do that and was wondering if I could get help with that roman is the newest player to the server after all that was done and none of the ping times update

💬 1 • 1.21 • Forge • 

Cobblemon Raid Dens addon & KubeJS cancel event

MisterLov: Hello everyone, I am a bit confused regarding this stuff. Does anyone know how to deal with custom events from tier mods ?

💬 2 • 1.21 • Forge • 

Another person trying to make a custom sapling/tree, is it possible to extend an abstract class?

𝔽𝕝𝕒𝕓𝕠𝕣𝕥: I'm trying to make a custom tree for my modpack. That means, Sapling, leaves, and the feature to generate the tree shape from.

💬 11 • 1.20.1 • Forge • 

EntityJS help

WaterConsumer: I took the script of a older post here and tried to tweak it a bit. I want certain mobs to avoid lava and tfc bushes. My current code does not work. Any help?

💬 9 • 1.20.1 • Forge • 

Is there a common jar release?

SirEdvin: I am trying to implement some custom kubejs integration for my mod. Is supports both fabric and forge. Is there a common jar artifact I can use for this?

💬 1 • 1.20.1 • Forge/Fabric • 

Convert number to int

Hajsori: Hello I want to convert a number to an int. I already tried this:

💬 31 • 1.20.1 • Forge • 

Bucket for Custom Fluid

Curlooo: I wanna make a few custom fluids, the issue is that the bucket has in-game the "no texture" texture, I tried .bucketcolour() .bucket(), in the event fluid creation, they both are invalid functions as the error says, as well as thickfluid() and thinfluid() I heard that they got removed in the 1.21 version, so my question is how do I make a fluid bucket that works and has at least some kind of texture.

💬 1 • 1.21 • Forge • 

how to remove ore

TSS | bessem_tn: scripts

💬 9 • 1.21 • Forge • 

Looking at a specific mob gives a potion effects

Berlium: I want players to get a potion effects from looking at a certain mob but idk how to do that

💬 1 • 1.20.1 • Forge • 

crafting from an enchanting table

Syrax 🌙: I'd like to make poisonous potatoes enchantable, and *only* when enchanted with a level 30 enchant in an enchanting table, instead of the regular item it replaced the output with a custom item (I already have that)

💬 7 • 1.20.1 • Forge • 

Block Modification for Generated Blocks through GTCEu Tag Prefix Method

Nill Bye: Some background, if anyone can help with this; I'm trying to program some compatibility between TFC and GTCEu, primarily by adding the non-vanilla TFC stone types to GTCEu's ore Tag Prefix. It's done through this code:

💬 1 • 1.20.1 • Forge • 

how do I make make spells from Iron spells and Spellbooks as enchantments?

Cr0w37: I have a spell here added as an enchantment but it doesn't work and I am unsure why please help.

💬 10 • 1.20.1 • Forge • 

Changing tamed mobs attributes

MonoRedBaron: Is there a script I can use to change the attributes of tamed mobs? For example, changing the max health of wolves to 20 when they're tamed.

💬 2 • 1.20.1 • Forge • 

Player Events

Algrate: Hello, I want to know how to make player event scripts. I checked the wiki but player events section wasn't complete. I'm specifically trying that whenever the player wakes up from the bed (when it gets day time) server sends a certain message. Can someone help me? Thank you!

💬 1 • 1.20.1 • Forge • 

Need help for making Brewin' n Chewin' recipes

fisto planet: Needing some help regarding BnC recipes, as I don't know how to properly register fluids for recipes(both input and output). I also want to know how I can assign fluids to items so when you right-click a Keg with their item, they dispense their respective fluid(example: create honey bucket dispenses honey into keg).

💬 4 • 1.20.1 • Forge • 

sound not registering/footstep sound question

MintiestKitKat: i'm attempting to make a block which sounds identical to glass, but doesn't have a footstep sound, but it isn't working. what's going on here?

💬 8 • 1.20.1 • Forge • 

Sync Player Data

Dusty: I have a script that lets players put a coin pouch in a curios slot. Coins will be automatically placed into the pouch and compressed.

💬 2 • 1.20.1 • Forge • 

add blocks that require support

asof: i could implement this pretty trivially with a neighbor changed event, but i'm not aware of anything like that so i'm kinda suck

💬 1 • 1.21 • Forge • 

need help with grass-like blocks

HoneyVee: i need to know how to make blocks like this require support at the bottom, and not be able to be placed on top of each other

💬 6 • 1.20.1 • Forge • 

Looking to add Biomancy recipe for "Bio-Forge" crafting station

tln_: Is there some mod that adds compatability or some known way to target modded crafting stations?

💬 4 • 1.20.1 • Forge • 

Kubejs tool tip colours don't have all the vanilla colour options

Burning Sulphur: trying to add a ```dark_purple``` tool tip but can't

💬 12 • 1.20.1 • Forge • 

Mass replacing Modded items.

D.A.V.E.: Ok. this one is a tall order but I'm going to try. right now my pack has two mods Overgeared and Create: alloyed. they both add Steel armor and weapons/tools. I want to replace any instance of Overgeared's steel armor tools and weapons with Create: alloyed's. this includes both recipes that use them and recipes that have them as outputs. whats the best way to do this?

💬 6 • 1.21 • Forge • 

make block require support, like flower/lantern

Aceplante: I know how to create blocks, but what tag do i need to add to make it need to be supported? Currently it can be placed on walls or midair?

💬 3 • 1.20.1 • Forge • 

How to get a non-static method of a ClassJS class?

radzo73: Based on the example code:

💬 8 • 1.20.1 • Forge • 

Renaming items doesnt work at all

HottingGobllin: here is a code i found on yt but it doesnt seem to work as the items have the same name that they always used to have idk if there is something wrong with the code or something else

💬 1 • 1.21 • Forge • 

Kubejs-Curios item to apply imunity

Inflitraz: I'm trying to make a custom item with curiosCapability to make the player imunnity to blindness, I already try do make it using curiotick and player.potionEffects.remove,

💬 1 • 1.21 • Forge • 

Okay now i get a error thats only happening in turkish language epic instead of epıc can anyone help

Asgore: im tryining to dowland the alienevo mod but this stops me from doing it you guys actually solved this but only in 1.21 can anyone help me with this

💬 1 • 1.20.1 • Forge • 

Need a loot of help to make books from Apotheosis

Gojo_Manjiro: Recreate the enchant books from apotheosis

💬 1 • 1.20.1 • Forge • 

About how quest tags work

Anonymous: There seems to be something called "tags" in FTBQuest's quest parameters, which is "used for kubejs events". How could I use this system to add a scoreboard value when a quest with a said task is completed?

💬 6 • 1.20.1 • Forge • 

help

TSS | bessem_tn: worldgen ore add remove 1.21.1

💬 2 • 1.21 • Forge • 

1.18.2 Fabric Block Modify Script not working

Anonymous: I'm trying to make a script for specific blocks that makes it take longer to break for example stone, I'm using the KubeJS wiki provided script on how to change this, and yet still it crashes. Here is the script:

💬 9 • 1.18.2 • Fabric • 

water purification

LLDJ: So i want to be able to purify the water in a canteen

💬 3 • 1.20.1 • Forge • 

How to detect if certain items are above a block?

sleepingoverrated: *please do not directly provide me with code , i wanna learn

💬 10 • 1.20.1 • Forge • 

Is there a good way to transfer all tags from one block to another?

DayTheMagpie: I'm trying to add all tags from Project: Vibrant Journeys's hollow logs to Quark's hollow logs. I know I can do it the long way adding each individual tag to each log, but is there a quicker way?

💬 2 • 1.20.1 • Forge • 

Is there a way to place a block?

LLDJ: imagine a right click with a item and then i want it to place a block where i clicked. but not replace it. place it against

💬 2 • 1.20.1 • Forge • 

Recipe Help

Plazzy: I'm using the following code and EMI does not display the correct input items:

💬 27 • 1.21 • Forge • 

custom block that can explode like tnt on right click or can execute command on right click

YigitAKLN: ```JS

💬 1 • 1.20.1 • Forge • 

Is this right to change how long it takes to mine a block for 1.18.2 fabric?

Anonymous: ?

💬 14 • 1.18.2 • Fabric • 

Weak Item Component Matching

Scout the Saneless [pls ping]: Guess who's back trying to mill her specific player heads! Still trying to wrap my head around this, as the recipes generate, but they won't initiate. I assume there's no `weakComponent` thing like there was in 1.20 in the form of `weakNBT`.

💬 17 • 1.21 • Forge • 

random item

Aiko: i just want a script that onces you defeat the boss it gives you a random item

💬 4 • 1.19.2 • Forge • 

`player.setSprinting` Doesn't really work.

Neohedron: was doing some brief testing for an idea I had and it looks like `player.setSprinting` is more of a suggestion than an actual means of stopping a player from sprinting. I figured this would be an easy means to prevent the player from sprinting unless certain conditions are met, but a player can easily circumvent a recurring `setSprinting(false)` call by just holding down the sprint key. After a few ticks `isSprinting` returns false, and continues to do so, even though the player is clearly sprinting. Am I going to have to eat the player's sprint input instead? How would I do that?

💬 1 • 1.21 • Forge • 

How to procedurally generate recipes for wooden planks from modded logs?

motley: Good morning/afternoon/evening everyone,

💬 9 • 1.20.1 • Fabric • 

Need help with a TNT Crossbow

Anonymous: I'm trying to make some sort of a tnt crossbow, for 1.18.2 fabric, where whenever a custom crossbow shoots, it shoots out tnt (cant be just explosive arrows)

💬 2 • 1.18.2 • Fabric • 

Custom commands not working

Beef Cake: I am simply trying to make a custom command and make sure KubeJS is working as I expect,

💬 4 • 1.21 • Forge • 

Error with LootJS when trying to remove a drop

tln_: This is what I currently have and it's throwing out an error when I put it in server scripts

💬 12 • 1.20.1 • Forge • 

Disable Right-Click

Eccentrikk: Playing around with Create Sifter mod and looking to disable "hand sifting" which allows you to use the mesh exactly like Create sandpaper but instead of polishing, it sifts the block in your hand (or off-hand).

💬 7 • 1.21 • Forge • 

RecipeViewerEvents.removeEntriesCompletely & StartupEvents.modifyCreativeTab bug? together

dejeh: startup script:

💬 1 • 1.21 • Forge • 

Play sound when open custom block inventory

Jere: Ive created a custom inventory on a block with kubejs, how do i go about altering blockstates when its open, playing sounds etc?

💬 2 • 1.21 • Forge • 

Custom script to pull tag data

Gunslinger: Delete if not allowed , however I’m trying to see if there’s a script that can be made to pull all tags from the mod packs for certain items , example if I wanted all armor tags to be pulled and dropped into a json file for me to view.

💬 1 • 1.20.1 • Forge • 

structure gen with blocks from other mods

Mr. Pickle: i have no clue why it does not work, but when the structures try to spawn, they just don't spawn.

💬 1 • 1.20.1 • Forge • 

How to turn spells into enchantments?

Cr0w37: Hey! how do I create enchantments that apply an attribute to an item? All help is greatly appreciated.

💬 1 • 1.20.1 • Forge • 

Remove blocks from structures with MoreJS

Gojo_Manjiro: How to remove expecific blocks from structures? like blast furnace from villages and etc

💬 1 • 1.20.1 • Forge • 

How to add blockstates

Danymaddox: Hi! ive created a custom block and i want to add custom blockstates to act like amethyst cluster, but dont know exactly how to do it.

💬 8 • 1.21 • Forge • 

How to add a custom recipe for smelting

Kotara4: I want to add a smelting recipe to make hardened leather from regular leather by smelting it. I already have the hardened leather item.

💬 5 • 1.21 • Forge • 

How can I make an end biome generate in the nether

Anonymous: I want a modded end biome to generate in the nether, and its mobs too. This is my first time so I have no idea what I'm doing

💬 7 • 1.20.1 • Forge • 

IE custom blueprint recipe that uses durability

Feliks: Is it possible to make a custom blueprint recipe that uses durability from a tool instead of fully consuming the tool with KubeJS/KubeJS Immersive Engineering?

💬 1 • 1.20.1 • Forge • 

Recently updated old project, resuming development, but Internal Error in KubeJS?Could not create ID

𝔽𝕝𝕒𝕓𝕠𝕣𝕥: So I'm resuming a project I had abandoned for a while, updated my mods, starting to fix scripts that broke as a result of updates, updated Forge version, and so on.

💬 35 • 1.20.1 • Forge • 

Dungeon now loading and Iron spellbooks

Darknight8151: Hello I need help for item of Ironspell book loot in dungeon now loading 2% 😭

💬 46 • 1.20.1 • Forge • 

Converting excess effect intensity into duration

Astro Gamer: I want to be able to make it so if you have an effect whose intensity surpasses a certain number, it's intensity is set to that number and the duration is increased based on how much you lost

💬 63 • 1.20.1 • Forge • 

How to spawn Wither Storm after X days + global announcement?

Ellement Is State Sanctioned: I’m trying to make a KubeJS script for my modpack that automatically spawns the Level 1 Wither Storm into the world after a late-game amount of time, something like 300 to 400 Minecraft days or whatever is considered a reasonable timeframe for players to beat bosses and the Ender Dragon first. The idea is that once the time condition is met, the Wither Storm spawns somewhere in the world at a random location and all players receive a global chat message like “The End has come.” to signal that the final phase of the pack has begun.

💬 15 • 1.20.1 • Forge • 

Additional hunger loss per dimension

archemagos: 1. Am I getting it right that I can hook the player's hunger loss, and apply additional hunger loss?

💬 46 • 1.21 • Forge • 

Need help for remove stage

Zozo: Hi i need help for remove stage or restart all echo for me and get what i have already do, i accidently unlock all quest because i wanted unlock one quest because stuck and now all stage are "completed"

💬 8 • 1.21 • Forge • 

Is there a way to replace all outputs of a sequenced recipe/remove junk outputs?

Aster: I want to change the precision mechanism recipe to output precision mechanisms 100% of the time but I am not sure how to do this.

💬 4 • 1.21 • Forge • 

Is it possible to make something happen every, say, 200 ticks instead of every tick?

Holpip: I'm making a modpack for me n' my friends, and I used this script–which is 90% made by desync–to change the default player size of an origin, but I don't want it to trigger every tick. to be overly specific I would like it to run once when the origin is selected and again every 20-60s just in case someone finds a way to change their size. I've tried using `PlayerEvents.onInventoryClosed` but the origin selection menu doesn't count as an inventory (probably obvious but it was worth a shot).

💬 8 • 1.20.1 • Fabric • 

Scripts run as expected locally but do not run on server

AB: I have a 1.20.1 forge server with kubejs and rhino installed. I have these startup scripts:

💬 3 • 1.20.1 • Forge • 

Recipies with NBT tags

Kaspuh: We have run into one issue as we want to make a script that would let us "convert" items with specific NBT tags (specifically from Camphor that allows to create custom coins with specific "Issuer" NBT tag) into our custom server items. We thought the easiest sollution would be to make a recipie that allows us to craft a new custom item from that Camphor item, with a specific Issuer NBT. So is it possible to specific NBTs items into the recipie espeicially if that NBT is a custom one?

💬 1 • 1.20.1 • Forge • 

add mob spawn using AND instend of OR

this_sia: Is there any way to add a mob spawn using AND instead of OR? For example, adding minecraft:salmon to biomes that have both the minecraft:is _ocean tag and the forge:is_cold tag?

💬 1 • 1.20.1 • Forge • 

How can I remove structures and ores from a certain mod generating?

EEX5: I saw something like this on CABIN, where some structures and ore generation was disabled but I'm unsure how to recreate it

💬 19 • 1.20.1 • Forge/Fabric • 

Data File Not Working on Server

Opanyo: When I make datapacks through kubejs on my client they work as normal. I just uploaded my modpack to my server and the kubejs data file isn't working. What could be causing this?

💬 12 • 1.20.1 • Forge • 

is there any way to work out if a block leftclick is happening when the button is released

asof: the event runs twice, the second on release, but i can't find anything that'd let me disambiguate the two states?

💬 5 • 1.21 • Forge • 

Worldgen.remove not work

TheEndOfMarker: kubejs\startup_scripts:

💬 2 • 1.20.1 • Forge • 

Make pre-existing modded placeable item be unplaceable

tln_: I'm unsure how I'd go about this, so I'm pretty curious if anyone's tried it before.

💬 24 • 1.20.1 • Forge • 

How do you change the Display Name of an item based on Nbt?

♣Khalito♣: I know how to do it without nbt but I'm not sure how to do so with it

💬 3 • 1.20.1 • Forge • 

Make fluid that you sink and cannot swim in

Aceplante: Similar to lava, but i want to make it so you cannot swim upwards in it at all.

💬 4 • 1.20.1 • Forge • 

Getting the error dev.latvian.mods.rhino.EvaluatorException: missing ) after argument list

ᒪᗩᐯᗩ: How do i fix

💬 39 • 1.21 • Forge • 

how to shoot a custom ars nouveau spell with js code?

leon: i want to shoot magic spells with a code

💬 153 • 1.20.1 • Forge • 

Mod Structure Spawns

lynxwing: Hi, I'm very new with coding and mods in general and I only want to tweak a handful of things in this modpack that I've compiled.

💬 13 • 1.18.2 • Forge • 

I need help creating a script what replaces a modded block with a different modded block when-

Gabomon08, Slayer of Dragons: generating the world. Hi guys, recently ive been playing this modpack called deceasedcraft they have cars and whatnot but its not a good car mod, so i downloaded immersive vehicles... the problem is that the gas stations inside the mod have the other fuel pump and it doesnt work with MTS, so i wanted to create a datapack that replaces all those fuel pumps with the mts fuel pump, then during my searching for someone to teach me how i came across KubeJS and realized this could be easier for me to do since there seems to be already similar things done with it. If i could get any help it would be greatly appreciated since ive been struggling getting any help and im trying to get this done by friday

💬 580 • 1.20.1 • Forge • 

[01:25:32] [ERROR] ! ID.java#92: Error in 'StartupEvents.registry': Could not create ID from 'kubejs

Mr.Fluff: i cant for the life of me fix this

💬 56 • 1.21 • Forge • 

Checking whether an entity is in a specific structure

heimdal: I feel like I must be missing something obvious, but for the life of me I can't figure out how to check if an entity interaction event is taking place in a specific structure. I've checked the target (entity), player, position,... there doesn't seem to be any sort of getStructure, isInStructure, or really anything hooking to structures. Closest I could find is player.isInsideStructureTracker which seems to just say whether they're inside a structure, not a specific one.

💬 5 • 1.21 • Forge • 

Custom Create recipe error, but only on first load

✨ Iris ✨: When my server loads, I get this error:

💬 1 • 1.21 • Forge • 

how to prevent BlockEvents.leftClicked firing twice?

IIIap: ```js

💬 9 • 1.20.1 • Forge • 

Make a projectile deflect off of a Wither in its second phase (similar to an arrow)

hyperstitiousdiskordianwarfare: Any idea on how I would even get started on this? Tried making it immune to the projectiles damage type but its not quite what I wanted.

💬 9 • 1.20.1 • Forge • 

armor stat change

whatisthis5123: Hello i would like to make simple mod to change horse armor stats and rebalance a bit i don't know JS at all i did some simple mod on MC unrelated to KubeJS I use Fabric i have watched few tutorials about this topic but it looked bit confusing so many files and tutorial only talked about one single file: https://www.youtube.com/watch?v=OgwUBxfQ-1s and i guess this way no longer works in 1.21.11 please help me someone

💬 2 • 1.21 • Forge • 

how do i remove the kubejs tag

ᒪᗩᐯᗩ: how do i remove the blue writing that says kubejs

💬 6 • 1.21 • Forge • 

unguarantee zombie conversion on hard mode

mr_ron: does kjs provide a way to have zombies kill villagers instead of converting them on hard mode?

💬 1 • 1.20.1 • Fabric • 

Are there any block and/or node coding applications around for kubejs?

Deano: I think itd be really useful for me

💬 41 • 1.20.1 • Forge • 

code

SnakDog: Why does kubjs say it doesn't know the recipe type: mekmm:replicating?

💬 4 • 1.20.1 • Forge • 

Remove specific block in all structures

MercyMaster1: I want to replace the crafting table and some other blocks that generate in structures with air. Not the whole structures themselves tho. Just the blocks I choose

💬 2 • 1.20.1 • Forge • 

Showing 100/11256 posts