Support Tickets
This page is still WIP!
Disable falling block drops (torch, shovel glitch, etc.)
Treeways: Hi! I was wondering if it was possible to disable dropped blocks from a torch or from this shovel glitch with either KubeJS or a loot table. (I'm not asking for LootJS support here)
Change Durability of Specific Item On Craft
binaryclock03: Hey Im looking to change the durability of a crafted item based on the players level. I want to increase the max durability the more levels the player has. Im just looking to know how to do the max durability modification.
Question(s)
Fireworkstars4444446: Is it possible for me to know what version a script would work on?
is there a way to register an item into a class
Dracoruff1211: as the title says. i need to register an item into a class for it to work properly with everything
KubeJS Create addon not working?
Chef_BOI_Ardee: I'm planning on making custom recipes for my modpack using this addon, but no matter how I format the code it simply doesn't work. Custom sandpaper polishing recipes doesn't register, mixing recipes I add are non-existent.
How to set variable to string from received data?
absolutely not wawa: ```js
HELP WITH SEQUENCE ASSEMBLY
Adolla: Could someone give me a template for the sequence assembly?
Reloading
Z-LINE: I just started whit KJS and I added a simple recipie for my world with modpack, I dont have Optifine, searching how to reload server scripts and startup scripts says that just put /reload in the command, but it doesnt make anything
How do I add an effect to a certain layer?
RIDJICK12: I want to make it so that when a player is on a certain layer Y, they gain an effect; the idea is to do something like Made in Abyss (focusing on the curse of the abyss).
recipe type registry error
IceMaster1294: I am attempting to iterate over all possible recipe types for an item, but I am getting an error that “No such element with id cucumber:shaped_no_mirror in registry minecraft:recipe_type”
Removing Item from Loot tables
Mark: I removed the clubs from "Basic Weapons" from the loot tables via this script, **supposedly**, but in game ive encountered vanilla and modded structures still having the item. ```LootJS.lootTables(event => {
Create tooltips
Mark: Is it possible to add custom tooltips to any item the way Create does it? like where it can show "Hold Shift for Info" while hovering over it in the inventory and id get some info. Please ping for any response
How to create lava-like fluids?
chimaeraUndying: That is, fluids that ignite the player/mobs/flammables on contact and give off light. I'm not seeing anything in the fluid builder methods that enable these effects, and I'm not finding anything from searching around here either ๐
Not guaranteed chance
Skemech or something: I have a script that makes basically all raw meat not worth eating, but how could I make them only have a chance to be hunger inducing?
NBT Related Itens in Crafting
yan: Hello! I am trying to make a recipe using Sophisticated Storage to craft a ProjectE Alchemical Chest. The problem is: if I use "netherite_chest" in the recipe, the literal item will be necessary, which is uncraftable by default. SS uses "oak, acacia, etc" variants, but they are all NBT variants from netherite chest. How do I add all of em on one recipe to make the alchemical chest?
Disable building withers
beanie_cat: I'm trying to make it so the wither is summoned a different way. Is there anyway to just disable building the wither? Thanks in advance!
Making a Farmer's Delight feast based on the Fiery Fondu from Brewin and Chewin
Sacri Pan /\^._.^/\: What I want to do is reproduce the hitbox of a cauldron (if possible have a burning effect like in a lava cauldron and place an empty cauldron once it served in a bowl 3 times
Is it possible to block specific players from crafting items using kubejs
IAmTheGrass: as in if a player has a specific name they are unable to craft anything
digSpeed
TimeheroTH: Hi i'm trying to change didSpeed but seems to don't work.
Preventing Mob Spawning based on Player(s) stage and Mob Tags
Derpy: I'm trying to make so mobs only spawn after a player has achieved a certain goal (in this case an armor set) but, I'm having trouble figuring out to cancel a mob spawn, or even use mob tags in my code. While I have gotten actual tags setup and example Stages (I'm not using the game stages mod just whats already in place in KubeJS and I've already used the stages in other parts of my code). Any help would be appreciated as I've spent the past hour flipping through other posts in an effort to piece together how I could pull this off.
Modify enchantment compatibility of existing enchantments.
Dryym: Is there by chance a way to modify which items can be enchanted by a certain existing enchantment *without* overriding the registry entry of that enchantment with a new one?
Layers and Connected textures
nicolas-vinc: Hi, how can I create new blocks and variants of it and apply of them connected textures? I have to use a mod like fusion, citresewn, continuity?
BlockProperties not containing facing property when filtered
IceMaster1294: Hi! I’m using AStages (but this is not an AStages problem) and I’m trying to procedurally apply a function (restriction) to a bunch of blocks via a directional block property when it exists. However, I get the error of “directionproperty{…} does not exist in Block{oak_log}” - which is odd, because anything without the property should have been automatically filtered out already.
How do i make a gun item do a raycast and store a bullet value?
IAmTheGrass: im just wondering cos i want to try making a bunch of classes for a modpack without installing gun mods due to compat issues, if this isnt possible let me know
Make arrows break glass blocks on impact
Van: How to make any projectile break any block on impact? Please help it’s for a big server. 1.20.1 forge
Shapeless recipe to change fluids causing bucket dupe.
TravHan2009: Hello, I am adding a shapeless recipe to convert a bucket of PnuematicCraft to a bucket of oil from Stellaris (because for some reason the Fuel Refinery block from Stellaris refuses to accept oil from other mods). I've added the recipe and it works correctly, however it leave behind an empty bucket in the Crafting Table (introducing a way to dupe buckets). Does anyone know how I can force the recipe to consume the empty bucket instead of leaving it in the Crafting Table? Here's the script:
fishing rod model
ะดะทัััะธะบ: i have the same problem as [this guy](https://discord.com/channels/303440391124942858/1306132887942201364) <:hmmm:609911633078124558>
ItemAttributes.modify not working in 1.21.1
Yasashiki: I used this a lot in 1.20.1:
how to set player attributes by default?
NanChik: I want make player attributes less by default
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.
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?
crash
Anonymous: i have this error when i left click ingame: kubejs:first_click may not be sent to the server!
Can't Dump
Anonymous: 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 collision box for already existing block
ggerald_: How do i change the collision box box of an already existing block, i remember doing it before, i forgot how. furthermore, is there a way to make it non-rectangular
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.
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.
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.
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!
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?
Anonymous: 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?
Confused about whats going on here (cancel block place)
binaryclock03: I have this block place event that Im trying to cancel on specific conditions