Support Tickets
This page is still WIP!
Edit An NBT tag in a recipe
DepthDrako: More technical (for GitHub or modding forums):
Adding Super Factory Manager Wires to Immersive Engineering like More Immersive Wires using KubeJS?
PARVUS ๐ฎ๐ฌ๐ณ๐ผโ๐ธ๐ผ๐น: Immersive Engineering adds wires I like the look of.
KubeJS causing threads to stall?
throw new NullPointerException(): https://mclo.gs/dU4aF9V
Making a glowing block
Lucy: Hi, Ive been trying to make glowing blocks similar to AntiBlocks from Chisel however I cant get the blocks to actually emit any light... heres my code so far:
kubejs Json?
Commander_Astra: Hello, is there any way I can make functions that automatically generate json files?
Are numeric characters as a string suddenly no longer valid to use in a mechanical crafting recipe?
CelestialAbyss: I really don't see why this shouldn't be working
Adding consumable for waystones`s teleportation with powerfulJS
Efford13: I'm trying to use waystones` teleportation require 1000mb as a consumable. For this purpose, I am using Kubejs and Powerfuljs. But I don't know why it doesn't work, this is my code:
Kubejs makes my game instantly crash after launch
Cloud: I am using a few mods and i need kubejs for some custom textures for ftbquests, but whenever i add kubejs my game just instantly crashes, i use forge on 1.19.2
Any way to make an item not support an enchantment?
Arius: either directly, or by stripping the enchants off the item when entering the players inventory?
how to remove items from registry on startup
IAmTheGrass: couldnt find it on wiki
Dissolution chamber industrial foregoing input item change
Iverzada: I put MIFA in the Stoneblock 4 and even changing "tag": "c:gears/netherite" to "item": "ftbmaterials:netherite_gear" in datapacks the recipe doesnt has changed ๐
Trying to code a block to drop multiple items with different amounts possible to drop.
Nova: In this case, I want to drop some mekanism resources that have a different number value, (I'll want to drop 2-5 of them instead of 2-3), but it's not working and I can't figure out how to correct it.
Help to fix a Recipe
Bell: So my kubejs is showing this error and I wanted to fix this but I'm totally laic with Kubejs, what I need to do to fix this? I tried to ask for help on the mod discord but no answers sadly so I wanted to do manually
Get forge tags of an item/block from the ID for item/block
nick: this feels like a stupid question to ask that i could look up and find in documentation somewhere, but i cant. Is there a way to get the tags that a block/item (using its associated block/item ID) posseses? and if there is a way, where can i go looking to find answers for similar questions?
can i change the amount of liquids a create basin can hold with kubejs?
Aqua: can i change the amount of liquids a create basin can hold with kubejs?
worldgen.js#22: dev.latvian.mods.rhino.EcmaError: ReferenceError: "WorldgenEvent" is not defined
SOSSALMON: trying to get a new ore to spawn on the moon for northstar redux
crash
Clexz: i have this error when i left click ingame: kubejs:first_click may not be sent to the server!
Can't Dump
Lan: This is my first time using Kubejs (2001.6.5-b16) and Probejs (6.0.1). I have both installed on a client/server. After connecting to the server from client, /probejs only suggests test_availablity which results in:
Fluid creation doesnt work in 1.21.1 Neoforge
Aqua: ```StartupEvents.registry('fluid', event => {
Custom non-rectangle collision box for existing block
ggerald_: I wanna change the model of a vanilla block and have its collision box be non-rectangular, like stairs. is there a way i can do that
How do i create animated item with layers?
ZA WARUDO: Im trying to create an item that looks exactly like singularities from avaritia but i cant get layers to work(it shows as an item with no texture)
Creating custom multi-block machines Modern IndustrializationMinecraft versions 1 20 1
SoulKingBrook: Hi, can someone help? I need to create my own multi-block mechanism for the Monern Industrialization mod on version 1.20.1. How is this possible?
IE Diesel Gen fuels
EntuzjastaPKP: Hello, can I add an acceptable fuel for IE diesel generator? (Diesel from PneumaticCraft)
[KubeJS Iron's Spells Addon] Upgrade and imbuement lists disabled, but functionality not replaced
Grynn: > Using KubeJS 2001.6.5-build.16+forge and KubeJS Iron's Spells 3.1.1.
Apply Persistent NBT
Cyberdragon: I want to apply NBT to a tool item regardless of whether it's found, crafted, or repaired. So basically just if it exists apply NBT, without causing constant checks. I assume some startup method can but I tried to no avail.
Adding KubeJS gives recipes to unwanted items
Estatrix: Howdy! I've noticed that when I install KubeJS alongside Dungeon and Combat, it gives recipes to items that have invalid ingredients. For example, in the image it gives a recipe to Dragonsteel Shields (Ice and Fire & DnC compat). It's a similar situation with a few items from other mods (like cobalt or electrum tools)
Can't make script since key things are missing from the wiki
Tobii: So I've tried to use KubeJS to make some Modpacks a couple of times now but besides making crafting/melting recipes it's basically not usable for my needs since half the wiki is empty and everything (including old tutorials/code etc.) seems to have been either removed or its not mentioned to what it was changed I'm really not trying to do complicated stuff and just having an updated wiki would probably help me achieve what i want but since there hasn't been a change in months since I'm looking into it will there every be an update to it or is it just dead?
haunting chance issue
Red The Woof: im making recipies for bulk haunting and cant seem to give it a chance value for the output on the last recipie (everything else works fine)
Implementing a timer
Poke: Hey guys! I'm trying to implement a 7 (irl) day timer/countdown onto the players UI, what would be the best way to go about this using kube.js? honestly a bit lost on where to even start
The finishUsing function is not being applied in the item registry.
Alex: I want to register an item that behaves similarly to a potion. When used, it should give the player effects and give them the glass bottle item.
Method for giving stages after specific entity death
orato848: I made the script for only player kill. I want that when the entity dies will give the stage even if not killed by a player to all the players offline and online but I'm not understanding how
Inability to use forEachRecipe for liquids
Apoลลo: This should be possible but it just doesnt work, no errors. JEI / EMI recipe does not change. I need to do it this way so it is easier for me to bulk unify liquids instead of having to use datapack files. I have not seen an alternative way to do this better.
Crash when creating a new world, probably a data problem
Sacri Pan /\^._.^/\: https://mclo.gs/JkcfdpY
Problem with Axe Requirement Tag for Logs
Monte carlo: I’ve been trying for two days to write a script that makes logs require an axe to drop items. I’ve checked previous posts, but I couldn’t really understand much. As shown in the image, when I use a tag it doesn’t seem to have any effect. Could someone please explain clearly how I can write this script? Thanks in advance!
Custom blocks not showing texture
Shnewbs: Porting and moving from 1.20.1 to 1.21.1 and I’ve hit a wall. It loads but no textures/models but file directories are right
KubeJS cannot change attackSpeed of tools
Lilith Daemon: Trying to create a script to update the attack speed of several items, but am getting a crash.
kubejs recipeschema ๐
๐๐SrNadien๐๐™: IngredientComponent.INGREDIENT.instance() kubejs 7.2
Giving entities default attributes
Pyrolyzed: Hey all, I'm currently using [this mod](https://modrinth.com/mod/attributesetter) to set the attributes of some mobs to default values. I was wondering if something like this is possible with KubeJS or one of it's addons? I'm on 1.21.1 NeoForge with the latest KubeJS.
Custom block with multiple textures won't show it
EdSuns: Texture won't show, got this working on 1.20.1, now updating to 1.21.1 , thanks for any help.
Save/Read data to block
Enigmaomega: Hello, I'm wondering what the intended method of saving to and reading custom data from a block is for this version.
lootjs
Zenistoo: how do you add custom loot drops to a zombie for example with the drop chance and how many items of it will drop
How can you turn such an item into a perishable item that doesn't get used up in recipes?
Petite: ServerEvents.recipes(event => {
i add my custom fluid , like thermal redstone but my flowing look strange
VelvetCrowe: Message not found
Same mod, same version, still wont let me in
JJ1124: I am trying to make a integrated MC modded server but for some reason the KubeJS mod is not letting me join even though I have the same exact mod file in both the client and server file, I have tried changing the mod version but same results popped up. can anyone help me fix this?
could not create ID error when adding regex
Angel Cartel: there is irons jewerly mod and id like to add create and tfmg ingots for #irons_spellbooks:arcane_ingot_base tag via respective regex but instead i get the error
Locate nearest biome and teleport player command with morejs
Danmatisk: I want to make a custom command that instantly finds a specific biome and teleports the player to it
Ferdinand’s Flowers berry bush help
yeeted_breakfast: I have a question for people who know KubeJS better than me, how do I modify the event of harvesting the berry bushes from Ferdinand’s Flowers so they properly provide crops at 100% mature? Unmodified, the bushes provide yield at 2/3s grown but nothing when fully grown.
Component Based Item Models
∫ntegral + C: I am trying to make an item that accepts some texture ID as a component, and uses said texture to fill in a transparent part of the texture. I have not clue what to do beyond basic registry and attaching the component, or if Kube can even do this.
Furnace TNT
Comfy Echo: Is it possible to make it were, if one cooks gunpowder in a furnace it will blowup when finish cooking? And if so is it possible to make it stronger depending how much i put in it?<a:tnt_boom:588955096461606912>
Thermal Kubejs - Not consumable
Petite: Hi, I'm creating a modpack that uses several mods, including thermal. I want to program new dies for thermal to make certain items, but I'm having trouble creating non-consumable items.
Datapack not loading
SBERLA: So 100% sure im forgetting something that i'm not remembering but i dont know how to solve it.
Does anyone have a collection of how itemstack and ingredients have changed in recent kubejs and
Kragnoth: rhino updates? Seems alot of my procedural code has taken a crap since major back end changes have been made. Or do I need to just dissect the base source code?
Effects if item in inventory
pica: Hey, how could i make a player get specific effect if a custom item is held in their inventory/main hand
farming related things
Mega.: so, im making a farming modpack but im horrible with kubejs so i need some help I want to know how I can make it so that when a custom hoe i made breaks a crop ( including wheat) it drops 2x more drops, and the fortune enchant still applies
How do I dump item ids to Probejs?
Qtqbss: I've installed probejs, and it works for prompting code, but I wonder if I could dump item ids?
Making all new registered molten metals show as ingots in tinkers forge
Buggie30: I added scripts to create fluids and recipes for all of the metals and alloys in mythicmetals and mythicupgrades, but i can't seem to get them to show in the forge as ingots instead of droplets...?
I get an error at the beginning when using it with alienevo mods.
crawl baba: I'm getting this error. Can you help me?
Custom Fluid work with Shadepack?
Mellowitsch: I have a custom Fluid (salt_water)
Custom Villager trade problem with nbt
TimeheroTH: Hello i'm trying to add a new trade for a villager but with arrow + mod nbt i have an issue and doesn't report me any error and invalidate me all the js script and all villager (only the fletcher's trades disappear from jei)
can u make 2 repiair items in kubjes?
GreenApple: i want iron ingots to repair 200durability in iron tools on anvil and i want iron nuggets to repair 50durability, is it posible?
Blocks keep rotation when spawned with a structure block
Um shutup: Hi, i have a problem, i managed to make some blocks face the player when placed... but when generated with a structure block, the block keeps its rotation
Detecting specific part of a tool's component (again)
Ekazuya: Recently Slag n' Ember released a snapshot update that made it data-driven which is good and all but with that the components of items also changed from:
automatic item making based off a tag and recipes
Chdoorwe: so is there a way to basically have an ingot that has a tag on it and basically makes a set of items. like let's say that the tag was mats and any ingot that has the tag mats it would automatically add gears and bolts and rods for the ingots but on top of that it would make a recipe for those based off a universal recipe but replacing the inputs
Make block unmovable by pistons
Danmatisk: I understand I need to change ``pushReaction`` under ``BlockBehaviour.Properties`` to ``block`` but I only have very surface level kubejs knowledge so I do not know how to turn what I currently have into that
How does Minecraft even refer to the insomnia for phantom spawns?
aTameshigir1: What category of thing even is it in Minecraft's logic so I can call for a change in it using KubeJS
Dynamic Block Light Level
Anonymous: So let's take a simple bare bones block that has a light level for example.
Removing block drop loot from EMI
iamspeed140: Im able to disable the drops from a block but I can't get that to show up in EMI.
custom tool texture and model are invisible
rook: im not exactly sure what the problem is here because i feel like i followed the documentation i could find to a T but its still just not working. I also had to delete the tier.level line in the toolTierRegistry just to get Minecraft to launch after adding it.
re-adding missing items
๐ฃ๐ฟ๐ถ๐ฐ๐ธ๐น๐ฒ๐ป: So in my modpack i use a mod called [No Tree Punching](https://modrinth.com/mod/no-tree-punching), but it has some items missing from creative tab and JEI, even though they can be obtained in survival and do have recipes.
Mob Notifier For Players
Enviiyon: Need help on how I could create a script that would check every so often if a specific mob is within a certain number of blocks of the player and notifies them via chat along with a notif noise if that specific mob is found <:SadFingerguns:751170036437221516>
world generator (normal, random seed) with e.g. item right click?
sober sam: specifically, a custom item which can generate a world (preferably normal, random seed) to then enter and it deletes once players have left?
Most Unhinged Idea I've Ever Had
Skemech or something: Could it be possible to make sheep shoot out warden blasts? (was a thought I had to make the game weird and difficult for no reason)
Confused about whats going on here (cancel block place)
binaryclock03: I have this block place event that Im trying to cancel on specific conditions
how can i remove the kubejs identifier from my items?
TruMancow: Message not found
[LootsJS] Modifying an existing block's drop rates
LVMVS: How do modify this block to drop 1-4 nuggets instead of 2-6?
Neoforge 1.21.1 - Adding KubeJS to my mods halves my FPS
Ice Cracker: Been building out a personal modpack and testing performance, see modlist below. This config has me at ~70 FPS @4k for a set location/rotation/time in a random world I generated. Simply adding KubeJS (no addon mods yet) drops me to ~30 FPS in the same spot for some reason, not really sure why. Can post logs if it would help.
how i can add effect in player?
Murilinho145: I'm playing around with kubejs and I'm having trouble applying potion effects to players. I imagine the player's typing isn't ServerPlayer.
What addon is needed to create custom ui?
NanChik: I want create ui where players can increase their attributes
hide JEI category
D.A.V.E.: I really cant understand the mess that is the Kubejs wiki articles on JEI categories. does anyone know how to hide a Recipe category?
How do I determine which block face in blockevents.rightClicked
QuiteQuiet7: Hi, kind of a beginner, i know how to add & remove recipes, but it's my first time working with Blockevents.
How to add attributes to armor?
Skenny: Hi! I want to add Attributes to some of the armour in my mod. How would I start going about that? I have no idea what the code would be, even after reading the entire wiki
Teleportation vector optimization and collision to end teleportation
dylpnaner: Ive been trying to make a teleportation stick that teleports the player 10 blocks in the direction they are looking, or in the direction they are looking until the teleportation would collide with a block. Ive brute forced some of the code, but it is far from optimized or efficient nor does it include the collision detection. I could use some help, as I am awful at vectors as well as JS as a whole.
how to add recipes to the ExtendedAE's ME Caner
MatsuKari: I want to add a recipe for ME Caner from ExtendedAE that inputa some amount of fluid honey + a glass bottle and outputs a honey bottle. Minecraft 1.21.1
trying to add a milling recipe with a chance output
Red The Woof: ```ServerEvents.recipes(event => {
playerdata reset on death
Imp: i want to make a server script that deletes a players playerdata on death! I realise it would have to kick them too. Any pointers? Im very unfamiliar with KubeJS scripts
Trying to create block reinforcement thingy
Anonymous: Im trying to make a system where you can right click a block with a special item and it'll make it require additional breaks to actually break
Edit blocks
egg: Is there any way to edit existing blocks from other mods? I want to make it so that I can place `garnished:sepia_fungus` on top of `farmersdelight:rich_soil`
Need help with custom block
qwerty97475: Currently i'm adding a "clay cooking pot" as a step in crafting a cooking pot from FD
Two events for a trigger to happen
KayZiomalek: Basicly i just wanna know if it is possible to have 2 events to have as a OR/AND to trigger an event. Example: complete advancement A or B to unlock thing C, have advancement A and B to unlock thing C. Also I tried looking for something like this but couldn't find it.
Still Looking for an Artist to help design some items for me
Shugabrush: Is there anyone available to help design some things for my modpack?
Prevent/Remove End Portal in End Entirely 1.20.1
Rage: Is their a way to have KubeJS completely disable the End Portal in the end and maybe just keep the Bedrock Post where the Dragon Egg spawns on top.
Emit events such as entity_die
Blk Wolf: I want to know how to emit events primarily the `entity_die` event if at all possible
FTB XMod Compat Custom ID
Sussy Baka: I try to add custom task to my quests but this is not working
Changing custom tool mining level
imBL4CK: I was trying to change the mining level of my tool (to diamond) but without success, could someone point me to the problem?