Support Tickets


This page is still WIP!

Creating a structure

RARE PANDA: Im trying to paste a structure.nbt structure obtained with structureblocks on a kubejs event. whats a good mod/method to do this? im on forge 1.20.1

πŸ’¬ 1 • 1.20.1 • Forge • 

Replacing block drops

Mays: I don't know if I'm even doing this proper.

πŸ’¬ 2 • 1.21 • Forge • 

Draining output does not match input

✦ aqt ✦: Trying to add a draining recipe to make stripped logs be able to be drained to make sap, however after the log is drained, it converts to windswept holly logs instead of remaining the same type of log as it was.

πŸ’¬ 1 • 1.20.1 • Forge • 

Issues renaming fluid

Presto: Hi, I'm able to rename items just fine but when attempting to rename a fluid I run into some issues. See images for the code lines I've tried. I also looked through the previous posts and found one (which inspired me to create the top 2 lines). none have been successful yet!

πŸ’¬ 2 • 1.20.1 • Forge • 

recipe with a nbt data

koriie: i want to modify a recipe so that the output has a specific nbt. How can i do that?

πŸ’¬ 1 • 1.20.1 • Forge • 

Extracting "event" properties

Rundas: Hello, I'm wondering whether it's possible to somehow extract a "Consumer<FinishedRecipe>" from the "event" variable in the callback here

πŸ’¬ 10 • 1.20.1 • Forge • 

what am i missing?

☩ Hiruka ☩ - ひるか DEV: i'm trying to use the mechanical crafter by the instructionof the docs, but i don't know which file i'm missing, do you guys have the file for that? Or is that something else?

πŸ’¬ 34 • 1.20.1 • Forge • 

What's wrong?

mateito9943: Message not found

πŸ’¬ 2 • 1.20.1 • Forge • 

Removing recipes?

Cr0w37: How do I remove recipes? ....am I missing something?

πŸ’¬ 56 • 1.20.1 • Forge • 

Make mobs no longer hostile when a certain item is used

Fingernails: I'm trying to make specific items that render certain normally hostile mobs passive or neutral. Does anyone have any idea how?

πŸ’¬ 1 • 1.20.1 • Forge • 

Hide items with specific NBTs

Ekazuya: I'm want to replicate the "blacklisted nbt" part of item obliterator using kubejs to disable some tacz attachments but i didnt find anything either on the wiki or this discord.

πŸ’¬ 2 • 1.20.1 • Forge • 

Tinker's construct smeltery fuel not working, using TconstructJS

Nerx: Keep seeing the use of json files inside the data folder, along with reloading glitches but i'm not able to get it to work, here's everything i got

πŸ’¬ 27 • 1.20.1 • Forge • 

Adding a loot table to custom block

SayoriNovella: Could someone help me interpret this loot table function?

πŸ’¬ 19 • 1.20.1 • Forge • 

[1.21.1] Cannot find function setBlockstateJson

Damonj17: Howdy. Trying to make clones of the vanilla Rose Bush block, and getting some issues, specifically in regards to Blockstates.

πŸ’¬ 4 • 1.21 • Forge • 

Tips/Guidance on re-adding KubeJS integration to a mod (Crock Pot)

doctorCatster: Hello everybody,

πŸ’¬ 7 • 1.20.1 • Forge • 

Immersive Engineering IEEvents.multiblockForm question

Veruty: i am using this addon

πŸ’¬ 2 • 1.20.1 • Forge • 

Custom anvil repair -> Item cannot be retrieved from output slot

phistoh: I have the following script as a startup script

πŸ’¬ 2 • 1.21 • Forge • 

Can you run a command if the player jumps?

Merry: Is that a thing?

πŸ’¬ 11 • 1.19.2 • Forge • 

New PSI Spell Piece

TheStraying11: PSI has these API method to register a spell piece: ```java

πŸ’¬ 3 • 1.20.1 • Forge • 

Adding recipes breaks current recipes

egg: I'm trying to figure out why adding `ServerEvents.recipes(event => {})` to the server scripts causes my modpack to explode

πŸ’¬ 5 • 1.21 • Forge • 

KJS Iron's spellbook problem on declaring school on if

Diju: I making a script spellOnCast to find the school that I made in KJS, and remove a specif attribute from the player, but the school outputs like

πŸ’¬ 18 • 1.21 • Forge • 

make an NPC cast spells from book

markburns.: Hi! Is there a way to make an NPC cast spells written in the spellbook they're holding? Like the recruit from the Villager Recruits mod.

πŸ’¬ 6 • 1.20.1 • Forge • 

Every allowed string syntax for `Item`s, `Fluid`s and `Ingredient`s?

KonSola5: I know of:

πŸ’¬ 31 • 1.21 • Forge • 

"server" is null error when starting world

Xevian: I get this error every time I create a world. The error goes away when I /reload. I'm really not sure what to do here...

πŸ’¬ 3 • 1.20.1 • Forge • 

How to summon particles facing your direction upon left click with a certain item?

Merry: Can someone please tell me? There being no leftClicked makes everything annoyingly hard

πŸ’¬ 2 • 1.19.2 • Forge • 

textures on different sides

Your Least Favorite Comedian: I did see a post similar to this but they were on 1.20.1 and i am for sure on 1.21.1. and i am getting the default purple and black texture ingame. please help (the pear is only a test/joke block)

πŸ’¬ 24 • 1.21 • Forge • 

How do I reference other files in KJS?

gulas: Things like @.see and @.link do NOT work unfortunately. I'm assuming it has something to do with an outdated version of JS running or smth?

πŸ’¬ 15 • 1.20.1 • Forge • 

Unknown message ID: kubejs:first_click

Shiba: since i deleted kubejs from my minecraft server, this message is been flooding my entire console all the time and i dont know why

πŸ’¬ 5 • 1.20.1 • Forge • 

How to check if the entity has a certain tag?

Pafeu: ```js

πŸ’¬ 2 • 1.20.1 • Forge • 

How do i make it accept tags?

☩ Hiruka ☩ - ひるか DEV: Here i wanna that the TAC zero gunsmith table accepts any kind of steel, but i always get errors, i tryed making tag tag and item tag, but none works, cus it seems that it only accepts item, but not tags. Is there a way that it can accept tags? Like, some kind of stuff that list items from a tag as tags?

πŸ’¬ 93 • 1.20.1 • Forge • 

MobEffects help with modded status effects

daawiid: As the title says i was wondering if its possible to use MobEffects with modded potion effects, im currently using this piece of code to make weapons apply status effects on hit but i want them to also apply modded effects but im not sure if thats possible. FYI its not mine, i got it from here

πŸ’¬ 1 • 1.20.1 • Forge • 

Overriding item texture after changing the nbt

Pafeu: No idea what am I doing wrong here the item always uses the original texture capturing_gem.png.

πŸ’¬ 8 • 1.20.1 • Forge • 

Entities hurting themselves with spells (Spells JS + EntityJS)

Balúncio: Soo, im trying to figure out how to stop the fire dragon from ice and fire mod from hurting himself with the spells i chose for him, which are fire ball and heat surge, anyone has any tip?

πŸ’¬ 4 • 1.20.1 • Forge • 

OKay so, i've been looking in the documentation and i don't know how the recipe removal works

☩ Hiruka ☩ - ひるか DEV: i mean, just the part where it mentions:

πŸ’¬ 23 • 1.20.1 • Forge • 

need help with upon right click breaks and replaces blocks with particles and drop an item too

RJames: making code where i right click two blocks on top of each other, and then it sets blocks, runs minecraft commands for particles. is there a different way to deal with this, i mean instead of using set block and a minecraft function to make break particles.

πŸ’¬ 4 • 1.20.1 • Forge • 

Native event called when switching held item?

Micky: I'm trying to find a native event that is fired when the player switches its currently held item. It seems natural that it would be there, but I can't find one. I'd rather rely on it than a call every tick.

πŸ’¬ 2 • 1.21 • Forge • 

cake

Π΄Π·ΡŽΡ€Ρ‡ΠΈΠΊ: is there a way to change the hunger value of a cake?

πŸ’¬ 13 • 1.20.1 • Forge • 

Using Kubejs BloodMagic

GEXZY: I used the Thermal Series to create the craft on the Blood Altar, but the standard craft is not removed from the mod. I don't really understand it, please help me a little

πŸ’¬ 1 • 1.20.1 • Forge • 

Help with item event script

Rat wizard: so what do i replace these event.entity.level.dimension and event.entity with to properly make it run /playsound command?

πŸ’¬ 27 • 1.20.1 • Forge • 

Drop Prevention

Zeryiel: How do I prevent the item waystones:warp_stone from being dropped (by Q or death) and placed in a chest? In other words, how do I keep it in the player's inventory indefinitely, regardless of anything else?

πŸ’¬ 1 • 1.12.2 • Forge • 

ProbeJS causes extreme VSCode slow down in server scripts

mo_mo (ping me): Is this normal? IntelliSense is EXTREMELY slow, like it can take up to a minute to load suggestions. It's only slow in server scripts as well.

πŸ’¬ 7 • 1.20.1 • Forge • 

I am stupid and need help

BatFan_Attic: I am trying to make a block interaction script where if I right click a charged lightning rod ( aka lightning rod during thunder weather ) It will give me an item called lightningbottle. But I don't under stand where to even put this. or how to add those conditions

πŸ’¬ 21 • 1.21 • Forge • 

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

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

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

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

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

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

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

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

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

Showing 100/10780 posts