Support Tickets
This page is still WIP!
.noShrink not functioning
Spooky.sys: Heyo! Code is below. Did it get phased out? I can't find any documentation on it besides on the legacy wiki and I assume that's not up to date.
Tab creating help
milo: i tried grouping all supplementaries items together in one tab but i get this and i am getting confused
afterExplosionEvent.removeAffectedBlock does not work
Rebby: When I put the exact same block as I got from event.getAffectedBlocks().get(...) it does not remove it. It does not detect the block despite it being the same block. Ran several tests to no avail. I think it's a bug.
Little question
MyFlameKeeper: I checked the KubeJS documentation, and the Item Modify section says that armor parameters cannot be changed. Is this really true, or is it possible to do this?
Script Improvements [Create KubeJS]
CaptainMarTuuk: How would I modify this script to allow for multiple outputs (line 18) and tag-based inputs (lines 19 and 20) as part of this custom recipe? I know it's possible based on the Create KubeJS documentation for custom bulk processing recipes from base Create, but I don't know how to actually make such a recipe from scratch.
Replacing *Some Creepers To Escapees During A Full Moon
Berlium: Im trying to use the builder.spawnPlacement in the entity builder to do this but is it this event or some other one, i wanted to use incontrol but the mod does not support lunar cycles sadly
TypeError: Cannot find default value for object.
Lode: Hi! i'm not all that experienced with KubeJS, i'm just trying to patch in a recipe for the ae2 cables and it returns `TypeError: Cannot find defauly value for object`
Apotheosis Gem Cutting Recipes
Iannazzone: Does anyone know if the gem cutting recipes can be modified? I want to make it so mythic and above can only be created with the max rarity material.
Summon a mob with already tamed AI (EntityJS)
Kimaris: Hello, I was scrolling through EntityJS wiki and I'm wondering if it's possible to summon a mob that already has the tamed AI, with a specific player as the owner.
Checking for an item moving in or out from an inventory
seven: Trying to work out a system that's gonna modify a piece of player's persistentData whenever an item moves in or out from the inventory. `pickedUp` and `dropped` events don't quite work; they ignore movements between inventories like chests and block GUIs. `inventoryChanged` doesn't work either, as it would require to have a parameter for `event` that somehow points to the slot the item came from, which is not a thing AFAIK. Can this be achieved with just complex code logic (a thing I haven't been able to get done so far) or am I just missing something?
How to make the script repeat iteself
Chara: I figured out some of the most basics but thats to advanced for me
issue with making custom Farmer's delight
Wither: I tried to make a iron-diamond knife tiering going from Netherite Knife to Netherite-Diamond Knife but the base damage does not increase at all
Stop Item Use Animation
Hajsori: How can I stop/cancel the item use animation?
Unable to remove ore features in any shape or method
DerpyGuy: `Minecraft version: 1.21.1`
Automatic Weapon Recycling
Naomiβ¨: I'm trying to implement a system where a player can only carry one instance of a specific weapon (e.g., a Glock 17). If they pick up a second one, it should be deleted and replaced with ammunition.
chaoszpack support
Lucas Sick: hi, i have a modpack that uses chaoszpack, and i want to add custom loot to it, but idk if kubejs has support to lost cities/chaoszpack, and i dont know how to make JS code to add loot for chaoszpack, if anyone know how to do this pls help
How do I add an effect to a food item?
imBL4CK: I tried using the item modification event and changing the foodProperties as in version 1.20.1, but without success.
How does NBT work?
ππͺπ»π΄_ππ΅πͺπΆπ»: im trying to add a tooltip to all the different bee spawn eggs from productive to have its respective mod name like all the gregtech bees have "GregTech" underneath it, but nbt is not working??
How can I do this?
MyFlameKeeper: Is there any way to make a script that will prevent mobs from burning in the sun?
How do i make so that when player eat a specific food item it will run a command?
Rat wizard: What are the script for that?
How can I hide multiple recipes with the same recipe ID from JEI?
fuckass ghost themed username: This is my script:
help with making a big block
Monkonpo: For my mod i want to make a space pod (just a decorative one rn I would like later down the line to make it actually usually) from Dragon Ball, but I can't get it to work this is for my alien evo mod addon any help would be greatly appreciated
Are there any example scripts for shooting items other than arrows with bows?
swifswaf: Like for replacing the arrow projectile. So you could use torches as ammo for the bow for example, and shoot them onto the ceiling.
I added a sword blade with the tooltip “Unpolished.” I want it so that when you right-click on the g
bunnua: but it doesn't work
End gateway style block
Toastr125: Is it possible to make a block that renders a particular background texture regardless of view angle like what end gateways do in vanilla?
Passing NBT from recipe ingredient to result
Spooky.sys: Trying to make a notebook for Create that you can tear pages out of and put pages back in. I'm using durability to track how many pages have been torn out, and i'd like a recipe surrounding the notebook with paper to refill it, whilst keeping the atlas nbt that tells the item which map it is. Is there a way to lift the nbt from the ingredient and merge it with the nbt of the output? Thanks!
Accessories Compat Mod for 1.21?
vivi: Is there a mod like KubeJS Curios for the Accessories API? I want to make a custom accessory and it would be a lot easier if there was an addon that did it manually so I didn't have to do a ton of NBT wrangling manually
Smarter Mobs without other mods
Adolla: is it possible to make zombies husks etc to be able to break doors/blocks and have a higher vision range? and is it possible to make all the pillager mobs open doors using entityjs?
Globally boost loot chest roll numbers with LootJS
|QuantumKraken|: I want to multiply the roll numbers of every loot chest by 1.5 at startup using LootJS, is this possible?
Is it possible to disable the use of a keybind unless you're holding an item?
SkippyZii: For instance, I want to disable the ability to cast spells entirely from Iron's Spells and Spellbooks, unless you're holding a `staff` item in main hand, or any other item I set to require. (because in that mod you can cast spells as long as you have a spellbook equipped)
kube is on neoforge 1.20.1 but rhino isnt?
PixelRock: could use some clarification.
Add ambient sound to existing fluid
Neohedron: I did a lot of searching on the discord to see if anyone had tried this before. It looks like the answer is no, you can't strictly make a fluid emit sounds as if via `animateTick`. So what is the next best approach? I really don't want to search nearby blocks for matching fluids for every player.
Help with tags and mining tiers
Anonymous: Howdy yall! im currently trying to make it so that the copper pickaxe from the Overgeared mod cant mine iron, but can mine gold and copper, while the Rose Gold pickaxe from Zoey's Rose Gold mod *can* mine iron. Its part of some customized progression im currently working on, but i'm struggling with the first step of making it so that the Copper Pickaxe cant mine Iron Ores.
How do I change the modid name for my Kubejs stuff
Veaper: For instance any items made within Kubejs is named as such. I want to be able to change it to display the name of whatever else I want.
starting kit
Forestt: Hi, I'm from Brazil, sorry for the language error. How do I write code to start with a kit in kubejs (Atm 10)?
adding buckets for existing fluids that don't have buckets
Davina: basically I'm using brewin and chewin's scarlet cheese for a recipe in my create modpack and i wanted to keep a stock of it with a fluid gauge from create factory logistics but fluid gauges require you to use a container to specify the fluid (eg:use a bucket with milk to specify milk) so i want to add a bucket that holds scarlet cheese
Mineable/sword, Mineable/shears
GamingImperatrix: Minecraft has mineable tags for axe, pickaxe, shovel, and hoe, but it doesn't appear to have equivalent tags for sword and shears.
Vanilla crafter shenanigans
tall man 2: Hi, was wondering if its possible to make a recipe thats exclusive to the vanilla crafter, like you cant make it on a regular crafting table but if you put it in a crafter it does work. wanna try and use it for more interesting progression stuff. thanks in advance
How to go about a script that prevents players from entering certain chunks?
JWazowski: My question is essentially is there an event that only triggers when a player or entity changes chunks?
When creating a spellbook in irons spellbooks js, attributeslib (apothic attributes) do not work.
κΉλ§μ: (using a translator)To be precise, a tooltip error has occurred, and a crash occurs when the item is obtained.
it's possible to registry a new enchantent?
Diju: As I see kubejs by default don't have a support, is there any addon that does it?
repair block hitbox
mr_ron: does kjs allow me to fix the orientation of the hitbox for itemalchemy table?
Some input mistakes
Just_Dude.It: hello, I was trying to rewrite [this](https://discord.com/channels/303440391124942858/1466563696368160990/1466918721967624192) script to work with parcool dodge, and here is what I get (`startup_dodge.js` and `client_dodge.js `)
A doubt regarding removing recipe book
MasterNinad: Is the ```disable_recipe_book``` config option of kubejs similar to this mod?
Can someone help me figure out what a modded soundType id is?
Jammie: ive set a blocks sound type with `block.soundType = "rope"` but it doesnt seem to be the name of the supplementaries material?
Making a custom block spawn naturally
Valkyrie Kayn: I am running an origins server and there is a block that is meant to spawn naturally in villages but doesnt, how do I change this so this block will spawn naturally in all villages?
Customizing XP Drops with Silk Touch Items (LootJS on Neoforge 1.21.1)
Anonymous: I have been trying to create custom ores for a modpack I'm using. I have working behaviors for pickaxe enchants, mainly silk touch and fortune. The only problem is that XP always drops when using silk touch, which is not what I want. Is there any way to create a condition to where XP doesn't drop with the silk touch enchantment?
Ignore Data Components in Trade Costs
GELZlatinous Cube: I am looking to create a trade that accepts any enchanted book regardless of what the enchantment is as the cost.
Make part of nametag not show
Estatrix: Is it possible to make part of a non-player nametag not show? Some entities use an ID on their nametags (something that I'm testing for a small project) like "[123] Horse". Is it possible to hide the [123] from the visible nametag?
Blockstate changing issue
Linke π : First of all, sorry if I missed something obvious, I'm pretty new in KubeJS. Moreover, I tried to go through any posts relevant to my issue, but no success. So, I was trying to get and set a blockstate to event related block. Is there any actual way to get for example specific property of a block like age and increase it by a number? Basically can script change blockstates of blocks?
how could I use multiblocked and kubejs to give ftb quest progress?
hiccupwarrior89: I'm trying to make a lab similar to factorio's using multiblocked, and I need it to detect when the right science packs are in the lab and every few seconds take an item and progress the quest
Add attribute to Item without removing other attributes
Estatrix: I've been trying to add attributes to armor but using an example I found din't help. What am I doing wrong?
Questions about kubejs iss
Ice: So, i was trying to make a spell using the iron spells addon for kubejs, but i haven't been able to figure it out how to do it.
How localize a fluid
EMERALD: I need a localize my added fluid in russian(or in any language, it don't matter), i tryed displayName(in create method), rename(in ClientEvents.lang method) even use TranslateKey() and json files, but nothing is work
Preventing passive mob spawning
DiscoTech: I'm trying to create a script which prevents vanilla mobs from spawning naturally, but still allows things like spawners to work. The script below seems to work for hostile mobs, but not passive ones.
Making Cauldron Recipe in Iron's Spells
β§ druidicmage: Trying to make a recipe for the cauldron and it's crashing the server. Anyone able to help me see what exactly I did wrong? I used the example on the wiki as a base for this
creative search bar broken
π½πππ | Lord ARKΞV: I started KubeJS and added a few custome blocks and items but now the creative search bar is broken, how to fix it ?
Bug: KubeJS Create delays world loading when paired with Tinkers
IceMaster1294: This is a very obscure bug and I’m not sure what is causing it. For whatever reason, loading a world or loading the create a world screen can be SEVERELY delayed when both tinkers construct and kubejs create are both in the game.
Making certain blocks act like infinite fluid tanks for Create's mechanical pumps
Elrol: I added the `molten_vents` mod, but it didn't function like I had expected.
Is it possible for me to remove the crafts from 4 mods and add all the items into a "Gacha" table?
π itstaajaae π .: I have 4 plushie mods that I want to add into a gacha table that people use /gacha to use a coin item to randomly get a plushie. is this possible without addons?
FTB Stuff and Things Jars script errors
AkersA: I have been trying to work this script for 4 days now and keep getting 56 errors for all the jars about fluid output. I have looked at other examples of 1.21.1 scripts for the jars, but couldn't find where i made my mistake. I have also ran this through Gemini and still couldnt figure it out i have attached the Script, Kubejs log, and latest log for the modpack. i know there are other things i need to fix with sluicing and recipes. if anyone could assist it would be greatly appreciated.
How to input a container of fluid in a recipe
JoSchmo34: I'm trying to make a recipe that takes in a container of water and i would like fluid cells, buckets, and other similar things to all be vaild inputs. Is there any easy way to check for this using kubeJS?
Removing the create fan recipe categories
Brickyboy: I'm trying to remove the create fan recipes categories from showing in JEI+EMI.
Trying to make a sword which applies bonus damage (non magic) depending on entity's max health (9%)
Soulbound: 9% bonus damage calculated from the max health basically, I tried this
Making a block explode when something is placed on it
The Goat: I'm aware of the Exploding Coal mod, but it doesn't work properly + a KubeJS script would be more customizable.
KubeJS Iron's Spells: Is it not possible to imbue spells into staves?
SkippyZii: Message not found
Multiplayer LAN problem.
Hyperran99: Okay, so I've been developing a Forge mod-pack for me and my friends to play on and used KubeJS to spice things up a little. When I made a world and invited them, they couldn't get in and got this error message. Later on we disabled KubeJS and low and behold, multiplayer had worked.
Farmer's Delight cutting board recipe that consumes both items used?
B: So I've made this rather silly recipe to make lava using a cutting board, but remembered that the magma block wouldn't be consumed upon crafting, is there a way to make it so that it is?
Can't get accurate biome colours and item in hand doesn't add .color()
Kisaiya: I've been struggling to make a custom slab block that imitates the full sized grass blocks in my modpack. This is my best result so far but the colours seem slightly off and the item model in my hand isn't coloured. Any suggestions to fix these two issues?
removing biomes
JustNatan: trying to remove biomes via tags but it keeps generating anyways so im wondering if im doing anything wrong
Custom weapon attributes
Kammy: So I recently had a custom weapon made by <@211699493190631424> , and although I managed to get it in game, the weapon attributes are... less than ideal for a weapon of it's size, but I can't manage to change the attack speed specifically, any and all help will be much appreciated
Layered block builder
UltraPuPower1: Continuation of https://discord.com/channels/303440391124942858/1479814375207473374
Struggling to understand making blocks with different textures on sides.
TeutonicViking: I'm going to preface this by saying I'm a very big noob at kubeJS, this is some of my first experimentations with it.
how to add condition to spawn portal?
NanChik: I want make nether portal (or portal from mods) must be place at the bottom of the world (y ~-60)
how do i disappear with the original immersive engineering tools?
β© Hiruka β© - γ²γγ DEV: I'm hijacking the old ones to substitute to the new ones, and i want to disappear with the old ones from Jei, how do i do that?
giving players "gills"
stonedgoldfish: is there any way i can make a player be able to breathe underwater but not on land? like i want the air bubbles to appear and start decreasing when a player is on land
Critical hit checks (for server scripts)
Deano: In server scripts relating to damage of some kind whether it's on behalf of the attacked or the attacker if you could check if the hit was a critical hit natively i think that'd come in handy. I mean there's workarounds to get it done but I feel like this should just be made easy personally
Change loot depending on tool used to kill entity
Estatrix: Howdy! I wanted to know if there's a way to change the loot an entity drops depending on what tool is used to kill it.
How do I define an entity's head with EntityJS?
Snowflake: i am very new to both kubejs as a whole and the geckolib format so apologies if this is something very simple, but how would i define an entity's head? i want the model's head to be able to look at the player at all angles
need some help porting a script from 1.20.1 to 1.21.1
tall man 2: hi, sorry if this is a bit dumb but i need help porting this to 1.21.1 for a modpack, what it does is check and entities nbt tags and applies a specific effect to them if they fall within the list written inside. thanks in advance
Is there a way better to buff Iron's spellbooks spells?
β© Hiruka β© - γ²γγ DEV: I wanna buff the spells while double it's mana cost, and keeping their standard mana regeneration to make it slow in standard. Making the iron's spellbook spells a high risk high reward, to balance it with melee weapons, scorched guns 2 guns and iron's spellbook magic
allow tall grass to be broken when using notreepunching mod?
Aceplante: For some reason, i can mine grass by hand just fine, but not tall grass, or either kind of fern, at least without a tool. What is the technical difference between these blocks? What tags differ? I should note that I did not want them to break instantly, and did modify their breakspeed, but I did so to the same number, so why does it suddenly render the aformentioned three completely unbreakable without a tool, whereas i can break regular grass just fine and without issue?
Player Attribute Cap on Respawn Event - Looking for Event & Specific Attribute Get/Set methods
Gambleputty: About as the title states, whenever the player respawns im looking to just implement some simple logic to check one of their attributes within the ForgeCaps category of their PlayerData, and if it goes above a certain state, set it back to a minimum. Im asking specifically as, looking through the player data the attribute appears within the ForgeCaps -> DiminishingHealth category and was curious if that might effect the typings for the persistent data get/set methods. I am willing to provide screenshots of the specific attributes I am looking to set if necessary
Java Method cannot be found
Rundas: Hello, for some reason, kube cannot find a java method.
daily login rewards
Chaos: I'm trying to make a server with create numismatics for currency and I want people to get the currency as a daily reward but I have no idea where to start
Better than wolves fishing mechanics
Skemech or something: This is what I have so far. but I wanna make it so that upon a succesful catch, the baited rod reverts back into an unbaited rod, and they'll share a durability
Over the rainbow
Skemech or something: How can I get every color of sheep to naturally spawn?
good way of removing randomly enchanted items from loottables?
Pafeu: The only way I could think of is replacing every single item with itself but it seems kinda cursed. Is there a better way?
How to make players spawn farther and spawn a structure around them?
Wolfie: I currently have the following script:
need help making a custom command
PhoenixCrew: I am wanting to make a custom command for my server SinnoH Sanctum. Its a command called /daily. This is to get an item in-game every 24 hours but dont know how to make that command. Can someone help.
How do i remove an entire mod id (so all the items in a single mod) from a vanilla tab?
DarcySpike202: For example, I have homesteads, but the modded items are mixed in with the functional blocks vanilla tab. I want to make a custom tab with the items instead. I have already made the tab and the items a re in it, but the vanilla tab items are still there. here is my code:
how to player blindness at night?
Cr0w37: Hey! I wanna give players blindness for the duration of night. But I don't want the particle effects or the icon that shows the effect.
KubeJS-registered cardinal block for some reason always faces east when genned with jigsaw blocks
G_cat [KJSPKG/HehVerse]: I am registering a cardinal block with this code: