Support Tickets


This page is still WIP!

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.

💬 4 • 1.20.1 • Forge • 

Using an item with a UUID as an ingredient

Death: EDIT: After a bit of testing using the original recipes for backpacks, I realized that the UUID of the base backpack and the upgraded pack share the same numbers, so my new question is how do I first get the UUID from the base backpack, then apply it to the upgraded one?

💬 2 • 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.

💬 1 • 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).

💬 1 • 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?

💬 3 • 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 • 

[LDLib2] GUIs work offline but not on server

Mr.Fluff: so the kjs folder is the same on the server and client but it works in a single player but not on the server 🙃

💬 4 • 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?

💬 1 • 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?

💬 2 • 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`.

💬 16 • 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 • 

custom npc

gigerpimp: I keep getting all kinds of load errors I have tried a few different ways but every time i get one error or another hoping one of u can see the error I'm making and help me out if possible

💬 2 • 1.21 • Forge • 

Fluid that behaves as water

lushtub: Hey, I've been wondering if it is possible to make a custom fluid that behaves just as water? meaning that you could place lilypads on it, and it could waterlog blocks. Same function, just a different texture. Is it possible?

💬 4 • 1.21 • 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).

💬 3 • 1.21 • Forge • 

Mass mystical agriculture seeds & Insolator

3le: Hello,

💬 6 • 1.20.1 • 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 • 

Making custom keybind to execute server script

Anonymous: Heyo!

💬 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.

💬 2 • 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 right behind you.: 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 • 

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 • 

Change custom fluid bucket texture

ggerald_: How can I change the bucket texture of my custom fluid

💬 1 • 1.20.1 • Forge • 

Edit mob NBT in entityInteracted event

Manatee: Hello, how can I change a mob's NBT values in an entity interacted event? In this example I want to remove InLove from a cow and set a breeding cooldown.

💬 1 • 1.20.1 • Forge • 

Block or plant breaks when block underneath it is broken

marcnum2: ⁨```js

💬 10 • 1.20.1 • Forge • 

How do you listen to events from other mods?

aaronhowser1: Ngl in actuality I'm not even trying to use KubeJS. I'm a mod dev and my mod has custom events and I want to know what to put in the documentation for it lmao

💬 26 • 1.21 • Forge • 

Help with using EntityJS to modify zombie behavior (image unrelated)

GodlyGaming: I'm tryna make a mod that basically improves and makes the zombies much better in the game. The zombies are supposed to be like the zombies from project zomboid. I wanna use EntityJS to do exactly that.

💬 16 • 1.21 • Forge • 

Wiki for it:

Anonymous: Wiki for how we can use javadocs in kjs please dont say learn java

💬 17 • Unknown • Forge/Fabric • 

KubeJS Botany Pots 1.20.1 Visuals

Rage: I am looking for help with this as I'm trying to get the growth stages to show properly.

💬 16 • 1.20.1 • Forge • 

document 🔒

Anonymous: docs for kubejs

💬 2 • Unknown • Forge/Fabric • 

Is there a way to prevent duplicate tick events after reload?

LeFauxMatt: During development, I've noticed that using `kjs reload server-scripts` will result in my tick function being called multiple times. As far as I'm aware, the only way to solve this is to restart the server. Is there any way I can unload an event and then re-register it so that it only fires once?

💬 2 • 1.21 • Forge • 

client command

Anonymous: how i can add client commands.

💬 13 • 1.21 • Forge • 

Rolling villager trades every day

kummakapitany: Hi, I wanted to create a feature where I rolled the villager trades every day, while maintaining the villager level and profession, only rerolling the trades the villager has.

💬 2 • 1.21 • Forge • 

server_script is not updating after reloading or restarting

YOUR_HAMSTER: Sometimes reloading and restarting doesn't update scripts. Errors that are no longer existing in the scripts are thrown. Is there some type of generated files that can be purged to remedy this?

💬 1 • 1.21 • Forge • 

insert items into a modular router's module list

asof: it doesn't appear to be exposed via ⁨`.getInventory()`⁩, which makes some sense as its non-automatable normally. the context here is that i'm trying to make the router modules be placable independently instead of first placing a router then filling it with modules, as i think it'll make it feel a little simpler, potentially. (ideally it'd also have a new screen in the router's menu directly, but that's more than a little out of scope)

💬 1 • 1.21 • Forge • 

Cast MappedRegistry to Registry?

Dakedres: I'm updating this hexcasting script to 1.20.1 and I'm getting the following error:

💬 13 • 1.20.1 • Forge • 

Pseudo Peaceful Mode

Scout the Saneless [pls ping]: So, my friend posed a request for a peaceful mode run, because they don't like being attacked by mobs, but I like having to deal with food systems, and I play w a resourcepack that changes most of the vanilla mobs and I don't wanna miss out on them, lol. So I cooked up an idea (~~yes, it hurt~~) to make a sort of pseudo peaceful mode, so that when a mob spawns, they're put on a team that the player is also on, which in vanilla, that pacifies them. How would be the most optimal way to do this? I have some pseudo-code for the idea I had in mind

💬 12 • 1.21 • Forge • 

Anyone with presets for “create”recipes

Anonymous: I’m looking too change the chances for recipe due too having a server full of people , I want too make things slower when it comes too automation.

💬 1 • 1.21 • Forge • 

LootJS Remove/Add Loot

IRBan: Currently trying to add loot and remove loot using Lootjs. I'm not getting any errors but nothing is changing for the mobs drops.

💬 30 • 1.20.1 • Forge • 

Showing 100/11239 posts