Support Tickets
This page is still WIP!
Global Lootable Replacement of Iron Armor with a Custom Iron armor!
Xavier_: I wanna know how i can do it so it replaces all loottables consisting also the custom modded one that has iron armor in them im trying to replace iron armor with a custom iron armor i made in the loot tables with kubejs + lootjs
[NeoForge] How can I add listeners for Cobblemon's events?
Neon Electrode: i'm trying to work off of the [CobblemonEvents](https://gitlab.com/cable-mc/cobblemon/-/blob/main/common/src/main/kotlin/com/cobblemon/mod/common/api/events/CobblemonEvents.kt) class to make a test script that just prints to console whenever a battle is fled (`BATTLE_FLED` in the list)
Allow all saplings to be placed on specific block
Neem: Say I want all saplings to be placeable on a block like white concrete. Is there any way of making this happen? I was able to make this happen easily by just giving white concrete the minecraft:dirt tag, but that adds unintended behaviours to the block that I do not want
make item unequippable
Quadruplay: is there any way to make an item unequippable? i've tried using astages, but it crashes with another mod in the pack.
How to make a quest that follow the ingame day/night cycle?
WordierLight296: Is there a way to make the quest trigger when a specific time of the day occurr?
Unable to register custom fluid
MC-Nirvana: I followed the tutorial in the official KubeJS documentation to register a fluid, but it failed. After finding a way to register it, I discovered the resulting fluid had no material (displaying as a black-purple block).
I don't know why, but KubeJS keep making the diamond recipes using diamond instead of diamond steel
☩ Hiruka ☩ - ひるか DEV: This is annoying, i tried for 3 hours to solve this problem and the problem stick like a tick in your skin, it don't works
Custom Kubejs block can't be placed as a simple block feature in a datapack
marcnum2: ```js
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 my own recipes in botania?
Mrkgrshtraklar: I tried many options, but nothing worked
Rename items
gem: this is my current script and ahhhh it doesnt work and im not sure why
How can you edit the effects a beacon gives?
Benja[REDACTED]: Another option would to add another block like the beacon if that's easier.
how to change amount of maximum hunger points?
NanChik: I mean like in mode "mite" where you get extra points of hunger when you reach new exp lvl
Starter Base Design that spawns when you create a world?
Shugabrush: I'd like the player to be provided with a starter base when the world loads up, but I can't come up with or find any good ideas for a base. Can someone help me out? It should be a big base, with plenty of room for Applied Energistics 2 and all.
wierd error once again
Dracoruff1211: this worked before, not sure why it isnt ***once again***
I don't understand anything
kashi: For example, if I want to deal magic damage within a radius of 10 blocks around myself, how should I do it?
trying to make an ae2 Energy Cell Block but im having problems with the block entity
Ggki: this is my current code, the game loads and generates the item fine, but when i try to place it down i get this crash
Can textures be changed with tags?
swifswaf: If I added a tag to an entity, could I have a script that changes its texture depending on the value of that tag?
Helper functions/constants common to both startup_scripts and server_scripts
Tesohh: hi, im trying to define some custom blocks (infinite ore blocks) and i want to define them as a type/class. i then will keep an array with all ore node definitions. However i need the array to be accessible in both startup (for registering the blocks themselves) and server scripts (to define the loot tables with LootJS). can this be done?
Server hosting error, unsure of the issue
Anonymous: Trying to host a neoforge server but am running into an error I don't know how to solve. Unsure which mod it stems from KubeJS Create is installed
Assign a Tool Tier onto an already existing item?
zharok_01: Hey! So there's a tool called Dimensional Carver in Alex's Mobs—it's sort of a pickaxe, but it cannot really mine anything, except break tears in dimensional fabric... So, my question is, can I assign a tool tier to it retroactively?
Custom recipe that contains an item holding any amounts of water
niel64: I'm trying to fix a broken Firmalife recipe that contains an item holding water. Been trying to search for a way to make it accept any container with water, however I've only managed to do so with the vanilla water bucket, which isn't as helpful with TFC. I'm aware of KubeJS TFC addon, but sadly that only supports a different version of TFC from what I'm currently playing.
Spawn a mob when a mod spawns
Berlium: I'm using Jockey API and I want to make a hoglin spawn near a piglin cultist but the code isn't working
Custom drink's effect give stopped working when I made it give a bottle
ScarlettFrost: That, yeah
Can i give the player an effect when being near a specific entity?
HolyCartoon: Basically title, i know how to do this with commands but Im new with javascript and I have no idea with kubejs
Does global not work in startup scripts?
gem: im making my own custom item remover script
Ae2 Certus quartz being anle to be broken by create drill.
Create: Title explains what i want to do but how would i do that? Its not affected by it tequiring a tool. It also doesnt drop the certus quartz crystals when its supporting block is moved(think like how dripstpne acts) All that makes me think it has some property that requires it to be broken by a player.(idk if its a tag) Idk if lootjs could help, i tried to do that by just adding drops but it didnt work.
Remove item
gem: hey i know this is probably a very simple thing but im still struggeling,
Basic help with data components
Your Local Flarf: I'm kind of new to KubeJS and couldn't find any documentation on adding data components to items. I just want to be able to modify/add stuff like attack damage or modded components to custom items, but have no clue where to start since the [wiki page](https://kubejs.com/wiki/concepts/data-components) is currently blank
how do i make a block entity that has one inventory slot that can hold a lot of items
Kruta Zhaba(the coolest frog): nonfood(256) food (32)
Make an effect prevent the usage of items based on a tag
Sinn Sinnamon 💚: As the title says, im trying to stop an item from being use/consumed when under the effect given
lootjs first time messing with loot tables
Insomnia: i need help to add a item to the ancient city chest loot table, ive been looking online and every place i look its diferent so im confused.
EntityJS attacking animation fails
Apollo: Ok so im trying to figure out why my game crashes anytime I try to cause an attacking animation to happen
Adding blockstates to vanilla blocks
DANMATISK: I intend to add a blockstate to netherrack similar to the grass block's "snowy" property where the block above it changes the property to true
How to add tooltip to fluid displayed in recipe viewer?
MasterNinad: Title. ItemEvents.modifytooltip works only for items, not fluids. I have tried the code in <#1358396464203825342> but it dosen't work (for me atleast, am I missing any critical thing?)
Dyable Custom Armour
lasted: Is it possible to create custom armour that can be dyed like leather?
Does kube js work on 1.21.11?
Awesome: I feel stupid asking this but I can't check myself at the moment, and I won't be able to for 2 months so I thought I'd ask before I start what I'm working on.
Question
Dumor1990: This is a app i can test my script for neoforce thing minecraft java?
How can I remove all recipes with a specified fluid as output?
Starwort: As per title - I tried using `event.remove({output: "<fluid_id>"});` but the recipes are still there. Is there a way to remove all recipes with a fluid as the output or do I need to just remove each recipe by ID?
Armor/Weapon Stat Order
tln_: Trying to get Armor and Weapon stats to be in the correct order on the tool tip, but unsure how to do it.
Define object reference that persists between script reloads
Micky: It would be really, really ideal to keep a constant reference to the `server`, often passed within events, in some custom class I am writing, instead of always needing to pass `server` into the functions that require it.
How to detect when firework explodes?
Geyrnauch: Trying to make a thing where pillagers firing rockets out of a crossbow will cause REAL explosions, not firework explosions, when going off.
Hiding every OTHER recipe feature?
the grungle: any way to hide every recipe from a mod besides a select few? (using REIEvents)
botania brew help
Create: Ive been trying to get the botania brew registry from kubejs botania to work but it hasnt and idk how to do it.
Issues nerfing waterfall swimming (walk speed slowed and bad ground detection)
Astral: So I've got most of this working but it also drastically slows down horizontal movement for some reason, which together with the faulty ground detection, makes it almost impossible to walk through flowing water even while touching the ground
Modifying block hardness and resistance
Mini_Martini: I am trying to modify and existing block in ae2 to be unmineable like bedrock, but able to be destroyed by an explosion of high strength. what would be the functions for that? all I have found is .setHardness and .setResistance, but they throw errors on boot probably because they are not functions within the skystone object.
change attribute display
Quadruplay: i'm looking for a way to change how non-default damage attributes are displayed. (blue is what minecraft shows, green is what i want)
Set window title from script
hyperstitiousdiskordianwarfare: Is there way to set the window title from a script directly through kubejs? i know you can set the window title through kubejs in its client config. usecase is setting the window title to my modpack name and the version dynamically generated from a fancy menu variable which is set by a placeholder. the script that i have so far seems to almost work but it resets after minecraft loads its own window title.
Enabling ore spawning after certain point in progression (tied to Majrusz's Progressive Difficulty)
LolsShow (Podcasting ARC): I want to make ores appearing in existing world after reaching Hard and Expert Modes of MPD mod. How is it possible (if possible at all)?
Shaped Recipe output inheriting data from input
Scout the Saneless [pls ping]: What I wanna be able to do is make a crafting recipe that take some component data from the input and apply that info to another part of the output.
How to hide pre-existing tooltip
Rhioost: Hello, how may I hide the highlighted text that comes with the mod?
Remove Create Diesel Generators Burner from valid heating block in JEI
hyperstitiousdiskordianwarfare: I'd like to stop the Create Diesel Generators Burner from showing up in JEI as a valid burner for the Heated condition. I've already tried hiding it from JEI and I have it in Item Obliterator. Any idea how I would go about doing this?
How to get when an item was smithed?
Annie: It doesn't seem to fire the event for... `ItemEvents.crafted((event) => {` so I'm unsure how to capture it.
Help creating a new create sequence recipe with a Create: New Age Energizer step.
Zurite: Like the title says, I'm trying to add a sequence recipe using the energizer. My current idea is to create a custom recipe, but it seems to not like me very much at the moment. If it's possible to use the energizer within a regular create sequence recipe I'd love to hear it :D
Productive keeps stats
Mays: Is it possible to have the item to keep its previous attributes and just change the tool to it results and keep any other data it had, such as enchantments apotheosis reforges/gems
Hooking up another mod to make a custom item
LolsShow (Podcasting ARC): I want to add a custom spear for Rose Gold from [Additional Additions](https://modrinth.com/mod/addadd) and use arguments and base from [Backported Spears](https://modrinth.com/mod/backported-spears). I know that you can do it, but how?
Can i use kubejs to change all ingame text colors to §5 (dark purple)
Cloud: I already changed some texts in the main menu to the color i wanted manually by adding the §5 in some lines in en_us.jason but doing all of it manually is way too time consumming there is 6000 lines of code in that file, any ideas to make it automatically changed all the text to the color i want ?
How to make mobs spawn in specific structures/biomes?
Kammy: I've spent the last few hours reading over the wiki but, I can't seem to understand what I'm doing wrong, if someone can point me in the right direction it would be a big help
How to prevent KubeJS trying to automatically put a fluid colour on a custom bucket item?
Geyrnauch: See the screenshot for details -- I have created custom bucket textures, but KubeJS keeps putting this annoying (default white) water-like fluid over the top of it. It would be great if this didn't show at all!
Removing placed_structure / patches ?
JustNatan: trying to remove chalk patches amd cork trees from arts and crafts
Change a specific Jei renderer
Sinn Sinnamon 💚: I have this mod but I wanna change one little thing about the rendering (mainly because it doesn't work)
how to make biome specific villager trades?
Kruta Zhaba(the coolest frog): it's for my modpack
How to modify ALL items at once?
𝓗𝓾𝓫𝓮𝓻𝓽𝓪: How would one go and modify the properties of all items or all items of specific type? To ie. make all items edible or all food inedible.
hasCollision not working
Danymaddox: Hey guys! Im trying to make ash block from Supplementaries to have no collision (so create plough can harvest layers/block) but i cannot modify the block no matter what i try. Here's my code:
Kubejs
Rantspider: Is this the right place to ask about a kubejs script? I wanted to set up something on an ATM10 server so when you do /rtp instead of teleporting you instantly a gui pops up where you can select the overworld, nether, end etc I know nothing about that as when I've made little servers for me an a few friends in the past I've always just used plugins or whatever but apparently ATM10 only likes neoforged as I've read online it's been racking my brain for hours trying different scripts to see if they work but nothing happens
Help with unifying recipes (AKA: Please stop adding squid parts to your Farmer's Delight addons)
DiscoTech: I have four different mods in my pack which add some form of squid drop, whether it's the whole squid or just the tentacles or both. Some of their recipes use conventional tags. Some use their own mod-exclusive tags. Most don't use any tags at all.
Is it possible to add one loot table to another with lootjs?
Burning Sulphur: I know it is possible with datapacks, that's how fishing works. But i can't find any examples of people using a loot table instead of an item in .addLoot()
make ae2 crank charge thermal machines
Ggki: as the title says im trying to make the ae2 crank charge thermal machines (spesificly the energy cell for now)
Write Enchanted Books
archemagos: I want to add a cool mechanics where player write a long spell inside a book and use a lapis lazuli in offhand with book in main hand to trigger item swap for enchanted book.
Trying to add create sequenced assembly support to some AE2 recipes
Bladereaper: Hi, Currently I'm trying to understand how sequenced recipes for for KJS but its odd..
prevent Tempad in Biome
mr_ron: wondering if kjs supplies a way to prevent the use of Tempad https://modrinth.com/mod/tempad in a particular biome?
How to make a spell that shoot projectile?
Evan: how to make a spell that shot some thing like an arrow for example.
detect and disable lgbt quark bees?
Aceplante: I know this is a long shot, but anyways: quark currently renders lgtb bees in game even if explicitly disabled in the config, at least in versions 1.16.5 and 1.18.2.
Playing sound when a quest gets completed
Ekazuya: I'm trying to make it so certain quests play a custom sound when completed and while this:
how do i make a villager only bed?
Kruta Zhaba(the coolest frog): so players have to make their own beds to skip the night
Change texture of custom fluid bucket
ggerald_: How do i change the texture of the bucket of my custom fluid
Add nether_quartz_ore to terralith:scarlet_mountains
AnderZytolga: I want to have nether quartz generate in scarlet mountains (because nether is disabled) and I cant see to get anything working
Changing what can break certain blocks
Misho: Hello everyone! I am planning on making a mod pack with similar progression to Terraria's, but I am very new to this stuff. I want to somehow make some of the blocks and ores to be only minable with certain pickaxes, but I am not sure how this could be done. If anyone is able to help me find out what to do I will be beyond grateful. Thank you and God bless!
Custom command replace
Estatrix: I'm trying to make it so that I can have custom commands that replace already existing commands, in this case, "Immersive Messages" mod.
Hot Item
Chdoorwe hellsin: how would i make an item that dmg the player when its in the player's inventory
Custom 3x3x1 mining tools
The Spy: Hello, I'm trying to create custom 3x3x1 mining tools E.G. Mining Hammer/Excavator I also want functionally to have the hammer/excavator to only mine one block of it's mining type while shifting
Getting an error after modifying weapon stats
tln_: A startup script, so it prevents me from launching my instance!
How to store a scoreboard in a variable
Tropico: It might seem simple but I can't figure out how to store a player's dummy scoreboard in a variable to reuse it later in a conditional statement I've only found how to see all the scores but not their values could you please help me
Force Open Inventory
capa2: I configured that allows me to toggle on and off the inventory crafting slots (which i have currently triggered by the luck potion effect), and everything about this code works so far other than i want it to try to open the player's inventory when they rightclick the custom block I made, allowing them to craft until they close their inventory (because i really dont want to make a mod with that functionality it seems very hard and this method seems to work for what I need it to) .
Curio attributes don't stack
Wyvernity: ```StartupEvents.registry('item', event => {
Default Item NBT data for Thermal Series Augments
Nerx: trying to make custom integral components with some templates i found in this server, there are 2 slots for other items which i have no clue what they were, so i just placed some random create and minecraft junk into them for now to test, does anyone know what i should actually place in there?
Sound Registration and Startup Event not working
Kydian Nestoris: Neither the voicelines registration nor the StartupEvent login is working. No errors are shown for KubeJS, probably not even read => folder structure problem. I've attached the one I have + both files that don't work.
Converting translation key to string
Grim: I'm trying to get the name of an entity and convert it to a string to store a completion counter for Gateways to Eternity gates. I can get the name using entity.name, but when I try to do string operations on it, it starts giving me a translationKey. How can I just get the displayed name as a string?
Scaling attributes in Pehkui
Lampent51: I'd assume editing [Pehkui](https://www.curseforge.com/minecraft/mc-mods/pehkui) attributes would be the same as editing base Minecraft ones, but I can't seem to make it work? The `safe_fall_distance` works fine, but `knockback` doesnt. I tried making it `pehkui:generic.knockback` but it wouldnt work either.
How to read files in KubeJS
Lightning323: How do I do it? Is it even possible? I want to read the JEI blacklist from the config folder and erase recipes from the items listed.
Trigger entity event (cast spell) when mob attacks using onHurtTarget
marcnum2: The following code causes a spell to be cast every 20 seconds, however, I'd prefer the spell to be cast onHurtTarget.. Is there any way to incorporate this? Maybe I can link the server script to a startup script?