Support Tickets
This page is still WIP!
Updating Block State on Right-Click Interact with Specific Item, Weird Limitations
AshenOne: My intention is that, upon right-clicking an un-lit Realistic Torch with a lit (item) one held in the Player's hand, they will be able to re-light the un-lit torch block.
EntityEvent.hurt error
Inflitraz: I trying to make a event to apply slowness, poison to mob target or heal the player with entityHurt, but it's giving the erro "Unknown event 'EntityEvents.hurt' Someone can help?
Removing Oreganized and Caverns & Caverns attributes
EinBurgerMeister: I've been trying to remove life steal from sanguine armor and magic protection from silver armor but haven't been successful yet
Updated wiki
Guygun: is there a 1.21.1 wiki for iron spells addon and for entity js
custom block texture
Π΄Π·ΡΡΡΠΈΠΊ: is there a way to change a custom block's texture/model depending on graphics settings like leaves?
Tag Script not Working?
Yez: Is the simpleplanes tag taking priority over kube's changes? How do i change it if so?
Custom MobBucketItem bad arguements
π½ππππ π£π₯: I don't care if this item can pick the squid back up, but I want a bucket of squid that when used, places a squid in the world.
Industrial Foregoing Generator fuels
Nova: I'm not sure if anyone can help with this, but I am trying to adjust some things used as fuels for the IF pitiful generator. I have the KubeJS addon for IF, but I can't find any reference on how to handle fuels. I have checked the IF mod, the addon, and the main KubeJS wiki, but I couldn't determine how to change things. Any help/advice is appreciated.
remove villager profession
Aceplante: I am currently not using MoreJS and hoping this is possible without it. I simply wish to completely remove a villager POI/profession, lets say the fisherman. While I have another mod that could allow me to remove all the trades, i dont want that block to be chosen as a valid jobsite at all.
need help with creating an item with a component
Anonymous: I want to make a custom item for the mod Dyson Cube Project and realised that with this command :
Has a way to apply enchants on a item on create startupevent ?
Inflitraz: I want to make a class of tools that ever has a enchant, has a way to make that?
How to change Mod Display Names?
Rblx_Jannis: Greetings I am totaly new to KubeJS and saw this feature on the wiki, but when I use this code:`Platform.mods.botania.name = 'Plant Tech Mod' `"
trying to create multiple crushing/milling recipes for very similar inputs/outputs
apollo: Hey, I'm currently working on my create modpack and I'm trying to integrate a specific mod (smokeleaf industry). smokeleaf uses tags that group all the buds, weeds, and seeds into their own respective tags, i was wondering if i could use the tags to create a singular recipe but with outputs relating to respective inputs? currently, i have it set up like this:
I need help with changing a furnace craft
Anonymous: I'm playing with a few mods including kubejs and I dont know how I'm supposed to change a furnace recipe while using the craft recipe exporter addon and I dont know how to code at all please help
any way to force biomes to only generate past a certain distance from x0 z0?
soup can: would like to prevent certain biomes from appearing within x distances from the world spawn, as they'll be far harder to be in in this modpack.
Help with EntityJS
MistaUnlucky: Hello everyone, forgive me if this was already answered but I'm trying to figure out how to add mob AI into my custom mob. I've been trying to understand but from looking at the wiki it doesn't really show me the stuff I want to add. For example, it seems that the example provided in the Github Wiki only shows how to make your mob float around ("wyrm" example) but I've been trying to just make my mob walk around and I haven't been able to figure it out. I've also tried looking it up here but also left myself unanswered. This is the code I have so far from the Startup Script.
How do you block players from entering the nether unless they do an advancement
§ Turtle Zen: I want to be able to do it on kubejs where players cant go into the nether unless they do an advancement or pickup something
Wanting loot to drop when a crop reaches a certain stage
Nova: As of right now, when ever I brake the hemp crop, it always drops straw regardless of it's growth stage, so hypothetically I could place and break it an endless number of times to get lots of straw.
Cutting Board Inventory
ryan: Ive been trying to access the cutting board inventory and ive only realized that its inventory is structured differently to other minecraft inventories. Chests just have `Items : []` and then fills the array while farmers delight specifies the size of the inventory and then the items via `Inventory: {Size: 1, Items [ ] }.` How do i go around this and access the inventory
remove by ouput and input
Aceplante: I need to remove all ingots output by recipes that input nuggets. I attempted to use the following but it did not work:
I can create a bandana like that with kubejs?
nicho_bibf: i want to create a bandana special cosmetic
Custom gems apotheosis
bαΊ‘n: Hello everyone, I'm currently customizing gems for the Apotheosis mod 1.21.1.
mob's griefing control
lão ΔαΊ‘i: Hello, I’m using Jujutsu Craft, and its mobs are exploding and destroying blocks everywhere. Is there a way to control a specific group of mobs so they don’t grief, without affecting other mobs? I just want to reduce the destruction caused by Jujutsu mobs because it’s getting annoying. I looked through all the entity types but couldn’t find any property that controls griefing.
My logger is breaking, send help
UltraPuPower1: It is not hindering me, but it is making me really confused
How can I open a LDLib UI with a keybind?
Kimaris: Hello, I am trying to make a script that makes a LDLib UI open upon pressing a keybind, but I'm having trouble to register it in the first place.
make all zombies spawn with helmet?
hazelfan913: hello! im trying to make all zombies spawn with: 'candlelight:cooking_hat' and i havent been successful. here are the scripts i tried:
How to make a copy of another block with different textures?
leepicgamer: title is kind of self explanatory. I'd like to make a block that works identically to pink petals, but with a different texture.
how do i make new eyes of ender that go to different structures
valurae: this is my current script but it does not work.
trying to make a 3D item and its giving me a hard time with the model
silent_hunter_7286: I'm having treble getting KubeJS to read the Json file for the models and the PNG file for the textures. if anyone has any info for me to work with it would be apperceived
How do I remove recipe that results in an item with a component?
Chrys / Cotton / Gossy: Iron's Restrictions adds a manuscript item which has dynamic recipes generated based on the spell school.
Different results of RecipeViewerEvents.removeEntries in client vs server scripts.
Luna Lycan: Quark adds a "Seed Pouch" and displays a variant of it for ALL holdable seeds in EMI. Which can quickly fill up with mods since it allows for example `#c:seeds`, `#c:mushrooms`, `#minecraft:saplings` and more (vanilla + quark alone already amounts to 35 additional entries).
Boating
GamingImperatrix: We all know custom fluids are whacky because they're hard-coded in. In 1.20.1, if you pop a boat on a custom fluid, it will immediately sink.
Preset command string options
seven: Is there a way to add "preset" options for an argument of type STRING in a custom command? My command looks like this:
Examples for Custom Spells for Irons Spells
Nexar/Mushroomu: Hello, I am having trouble making custom spells for Irons. Right now, I am just trying to make copies of the existing spells for practice, but I've come across multiple problems as the spells are written in java and kubejs is well in javascript. Before I state my problems, I should preface this that I'm not that well-versed in javascript and its quirks, so the limits of my knowledge is basically the wiki. At the end of the day, I would just like examples of custom spells using kubejs as I learn best reading from examples (I would also prefer if they were in the style of the way the wiki does it.) To continue, my problem is that I don't know how to get the targetEntity from the spell. Iron Spells does it like this in Java:
Help on Seawater Implementation
Midnighttigger: I want to implement a more realistic thirst system related to water, making water resources into (River) and (Saline) varieties based on their biome and making them only renewable in those biomes. The modlist includes mods such as create and toughasnails.
Need help with recipe with components
Pecora Irlandese: I have a recipe and want to use an item with a specific nbt (or tooltip text), I can't find any way to do it on the wiki, how can I do?
Immersive Engineeering
NadienDEV: Port 1.21.1 Kubejs Immersive engineeering
add nbt to items on startup
Aceplante: I would like to add an attribute modifier to items on startup, so thats I can do it once instead of for all output recipes. How do I add nbt tags to items through startup modification?
Couple How-To's I need help with.
PotatoBro: 1. How can I detect if an area is pressurized/has an atmosphere with the mod Ad Astra (https://www.curseforge.com/minecraft/mc-mods/ad-astra)
Is it possible to make mobs spawn in a specific structure when it initially generates?
Gambleputty: about as the title says, tried looking into the methods of doing so thru datapacks but couldnt rlly make sense of it. Any advice?
Trying to join my friend's server, I keep getting this when I try to join
♥ ~ ππππππΆπΎ ~ ♥: Message not found
Entityjs Knockback Proyectile
InfiinityMC: hope everyone's doing well! I was wondering if there's a way to add knockback to a geckolib projectile in EntityJS. I know it's possible with the arrow projectile builder using .setKnockback(), but is there any equivalent for entityjs:geckolib_projectile? Thanks in advance!
need help with loading a piece of the mod
rybek: can someone help me with that ?
Custom Aether Gloves
Pafeu: Not much to say I'm trying to create custom Gloves using Aether's Class.
Font renderer, text width
n1xx1: I'm doing some rendering in kubejs (I know... I will eventually bring it to a mod)
Intercepting and cancelling sprinting and jumping
seven: As title says, I'm trying to prevent sprinting and jumping for players, based on an arbitrary flag in players' persistent data. I saw a client snippet that intercepts the keybind for sprinting somewhere as well as a forgeevent being listened for in regards to jumping but I can't find any of these two snippets. Can someone point me in the right direction to achieve this?
im just trying to make a create modpack for me and my freinds
Beanssssssssss: but i cant sem to find out what the issue is
Is it possible to intercept the spawning of a structure during world generation?
Rynareen: Is it possible to intercept the spawning of a structure during world generation—whether modded or not—check if it is at a certain distance from the spawn point, and then cancel or allow the spawn using KubeJS? <:hmmm:609911633078124558>
1.20.1 Item modification
definitely not a Darkosto fan: I am trying to make this weapon (boomerang) get damaged per use (effectively hit a mob), is this right?, I didnt understand if there is something missing even i read the website guide:
spawning structures from one mod into a another mods dimension
MelodicBoyGaming: iam trying to take the structures from the fossils and Fossils and Archeology: Revival and Forgotten Ruins into the Tropicraft dimension to make like a jurasic park dimention for my mod pack. iwas just wondering idf there was a wahy to do that or no. I am using forge 1.20.1 for it
.noShrink not functioning
Spooky.sys (Ping on reply!): 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.
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.
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.
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
Anonymous: 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
Anonymous: 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
Anonymous: 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 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 (Ping on reply!): 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.
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?
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
Anonymous: 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