Support Tickets
This page is still WIP!
struggling to change tool required to mine an ore
Eidoleon: i'm using this kind of code
LootJS breaks BlockPredicate.of()
MasterNinad: This is my create: mechanical extruder (which has built in kubejs support) recipe in recipes.js -
Append duplication
Eldritch Ewe: I made a function that makes item tooltips for me and somewhere along the line the tooltips for some of my blocks have doubled..
id help?
WEIRDERS23: im trying to make a recipe i got it all down but im trying to make a recipe using a singularity from avaritia and all of them have the save item id but not singularity id so is there a way i could put the id for it in a recipe or do i have to use something else?
Is it possible to remove a forge tag from an item?
PotatoBro: I'm doing it but it's not working.
prevent baby chickens spawning from thrown eggs
dianaisnthere: as the title says, i want to prevent baby chickens from spawning from thrown eggs
What are my options for controlling the specifics of an explosion?
swifswaf: I have a server script that spawns an explosion when certain conditions are met. It spawns the explosion by summoning primed tnt with a fuse time of 0, which feels kinda hacky but I don't know if there's a better way to do that. If there is, please let me know.
Customizable Modded /Vanilla armor stats
Legosi: RPG modpack development devlog, learning KubeJS
remove loot from broken crop
SloppySlime: I have this crop in which I only want the seeds to drop, since the fruit has a much better way to get them and would clutter inventory space by being dropped by the crop. I don't have a single clue on how to do that please help me, best regards.
General Help
Kianu43: I am helping my friend run and create a modded minecraft server through Neoforge for 1.21.1. We have KubeJS in here and I am attempting to learn it and become comfortable with it, but this coding and config stuff in foreign to me. I wanted to send a message in here because I saw the youtube and was hoping that people could help me with anything that may pop up. I have gotten some things to work, but honestly I have been using AI for a lot of it and I want to actually learn it so I can begin to fix problems on my own. Also sorry in the rules, I know there is stuff about AI but I felt like being honest about it would be best
1.21.11 fabric server alternative to kubejs
AidenA: I just want to be able to craft orbital strikes with orbitals+ mod, but i cant find a way to have mult item slot crafting for 1.21.11. does anyone know an alternative to kubejs that could help me?
why botania flowers are not spawning in twilight forest?
β© Hiruka β© - γ²γγ DEV: I've been testing the datapack i created but i'm not finding any botania flower, why?
Damaging/Breaking an Item
29Naybla: I'm making a script to make players able to shear sheep using knives, but I'm new with kubejs and I would like to know if there's a better way to make the knife damage part work as I feel there's probably a simpler way to do it, that also doesn't involve me trying to simulate normal item breaking behavior.
Is it possible to remove an item from loot in mass using lootjs?
ScarlettFrost: I want to make netherite upgrade templates obtained differently, is it possible to easily remove them from all loot? I also wanna do this with some other items
Register new item with components
heimdal: I'm attempting to create a custom book with the written_book_content component (I want it to be a custom item rather than a minecraft:written_book). When I register a custom item with event.create, how do I do it in such a way that the item has a component by default? I don't see any component related methods in the builder but it has to be somewhere.
Tag help
MooMcMooman: I'm trying to add tags to certain items, but it's not doing anything
looking for documentation
Salad: Hello, i got a script thats pretty simple and just allows for toggling item frames to be insivible or not, but the "issue" is i dont know why?
How to make food item able to obtain effects
Miko_boi: What I mean by this is that (for example) when the custom food item is crafted along with a potion it’ll obtain said potion effect. The actual plan for this is to use Create spouting to spout an effect onto the food (just one custom food with this trait).
Poison Meter
Eldritch Ewe: Anyone know how I would go about making it so players have a poison meter that goes up from certain sources and down with time?
Replace block with matching blockstate
DANMATISK: I have a block getting replaced with another block when receiving a redstone signal but I'm not sure how to make sure the replaced block faces the same direction
Entity JS : Transforming Mob That Sucks Food Out Of The Player And Explodes When Dead Challenge
Berlium: Im going to preemptively file this ticket first incase i get stuck on somthing
Prevent item storing
Hajsori: How can I prevent that a player stores a item in a container?
How to spawn structure so it can be located with /locate?
Him: I have no idea how structures work, I'm trying to place a structure and have it be possible to track whether an entity is inside.
Help with KubeJS Script for Daily Playtime Limit by Player (6 hours + Time Window + Scoreboard)
Gedo: Hi everyone!
How to Implement Player Teleportation Using Experience Points (Supporting Cross-Dimension Travel)
MC-Nirvana: How to Implement Player Teleportation Using Experience Points (Supporting Cross-Dimension Travel)?
Creating custom origins power types using kubejs
Deano: The origins mod for 1.20.1 now has a forge version. Im interested in the possibility of creating custom power types for origins using 1.20.1. What are the possibilities related to this?
COMPATIBILITY LUCKPERMS
Javariel14: Is there a mod that complements KubeJS to make permissions for LuckPerms, or is there a compatible way to do this?
error no waxing recipes stored on any interactions
Eidoleon: Message not found
trying to convert a 1.19.2 worldgen.js into a 1.20.1 one
Eidoleon: please help me.. it's just 140 lines
custom ore generation
Aqua: im trying to add custom ore generation to my modpack using kubejs datapack, cause the worldgen built into kubejs is reportedly not working in this version. Im not getting my ores to generate, even though i did the things im supposed to do i think
Unstuck command
hahahehe: i want to make an unstuck system for player of my minecraft server. so we have server unstuck points on the map that players will teleport to depending on which one theyre closest to. and then have a cool down for the unstuck command. how do i do this?
remove supplementaries rope arrow
mr_ron: experiencing hassle attempting to remove this recipe
Freezing Behaviour of Furnace
πΠ‘ΠΎΠ½Π»ΠΈΠ²ΠΈΠΉ ΠΠΎΠ±Π±Ρ: I am trying to figure out how to control behaviour of furnace for my industrial modpack, but I can't figure out how to stop it from consuming fuel when it is not powered. If someone has experience with this, please share
Error Valid values are "uncommon","epΔ±c" ....
Karakurt5877: It's giving me this error code. How can I fix it?
Is it possible to replace lapis in enchanting
ScarlettFrost: I want to replace lapis' function in the enchanting table with another item, but I have found 0 ways of doing that so im HOPING kubejs has some kind of method.
How to get the face of a block a player broke using BlockEvents.broken for popItemFromFace
900n1: I've set up a custom ore system where it goes through multiple blockstates before breaking, and I want items to pop out from the face of the block that the player is mining at instead of only having the items pop up on one direction only, how do i achieve that with this setup? ```js
note block
Π΄Π·ΡΡΡΠΈΠΊ: is there a way to change the note block instrument for a custom block?
new mob with entityJS
Sadkitten: hello, I am trying to make new boss like mobs with entityJS but i am very confused on how to use it and I was wondering if anyone had any links to tutorials that explain what things do and how to use entityjs, using neoforge for 1.21.1 as well. thanks in advance!
Possibly Dimension Editing
Cryptic: Hi there, I’m wondering it’s possibly to modify the world gen options within a dimension and dimension_type.
get item nbt in shapeless craft
SloppySlime: I need to add the values in the nbt of 2 items in a shapeless recipe to give the sum to the result.
Irons kubejs questions
OnyxHydra: Since irons kubeJS addon hasnt been updated for the newest version, how can I use the attributes irons provides? I'm currently trying to figure out how to give a piece of armor spell resistance (or protection, whatever it's called) but frankly have no clue how to do it (I am quite new)
How to make new crafting tables with level
NanChik: I mean a few crafting tables which have levels (1-5 foe example) and you can craft on crafting table some recipes and for some you need to upgrade it to unlock new recipes
i have little to no knowledge about kubejs and i want to make a rng scoreboard output
YigitAKLN: is there a way i can do the rng better?
Prevent mod recipe change
Estatrix: I'm using a mod that modifies recipes for essentially all vanilla gear (armor, tools, weapons, etc) that uses copper or iron.
block properties
Π΄Π·ΡΡΡΠΈΠΊ: is there a way to give a block multiple or at least two properties at once? like, to make it have a tinted glass property [like here](https://discord.com/channels/303440391124942858/1082700619569188874/1082700619569188874), and also make it emit a redstone signal, for example?
Custom block drops
EEX5: Is there any way I could make it so breaking a certain block drops a block which is not the block that was just broken. For instance, breaking dirt to drop cobblestone instead dirt.
HOW DO i make an inventory block that has less than 9 slots of space?
bigpork49: since if i make it with only 1 slot, it still renders all 9 slots in one row, and if the user tries to put something in except slot 1, the whole game crashes, but it should instead just spit out the item then, here is my code snippet
Create Big Cannons script that chunkloads shells
G4l7n: Hey can anyone help me create a create big cannons script that, when a shell is fired (any shell) will chunkload the shell (like 1-2 chunks around it) until it falls? Since CBC has this problem where if you fire a shell far away it will stuck until chunkloading everything on it's way. So if you make lets say a large railway gun, to be able to fire 4km away with it.
Custom Dimension Teleporter
DoktorCraft: I have a custom dimension for my modpack which I want to acess by building a multiblock, powering it with FE and providing an item. My problem is I have no idea how to do that. Specifically the part of the portal. I worked with Multiblocked2 before and can do the mutliblock part, but the problem is the teleportation. I looked in the mb2 discord and found out that its not possible, but maybe with kubejs. Has anyone ever done something like this before and can help me?
Curio Capability
Poison: So i did look around and try to find anything and i couldnt really find anything, although i could be blind. i am just trying to give an item a default Curio Ring capability (the ability to put it in curio Ring Slots). if possible i think it would be cool to be able to make it Physically appear on the players arm too but thats alot more.
OpenJDK something something
Skemech or something: I downloaded fabric api, that problem is solved. But OpenJDK... that's where shit gets funny. Where can I download that, and how do I implement this? The mod in question that is causing this issue is "slowcraft", a *Fabric 1.21.1* mod. But I changed the mod version to 1.20.1, and am using "Sinytra Connector"
3D Item with animation
BlessedDog: Is it possible to create a custom food item with a 3D model and custom eating sound using KubeJS in 1.20.1?
how to change arrow velocity out of crossbows
mr moo: i keep getting ERROR] ! Error in 'EntityEvents.spawned': null [21:51:07] [ERROR] ! java.lang.NullPointerException
Attack speed changes not applying
tln_: I've changed this sledgehammer to deal 15 damage but only have 0.5 attack speed, but it seems to actually give it a stat over 1.6 (base netherite attack speed)
Getting a completely unrelated error but the script still works
beannn: There is only a single script file in the entire folder. and that doesnt have anything to do with these items at all ???
Persistent Virtual Chest Help (1.20.1)
BlessedDog: How to make a command like `/enderchest` or `/trashcan` but for a custom persistent inventory in KubeJS 1.20.1?
Help to move modpack.
beannn: Simple post Im moving a modpack from 1.20.1 to **1.21.1** ik alot of things in KubeJS changed, how would i go about quickly and efficiently porting my scripts?
waypoint on xaero map through ftb
Xavier_: how can i do it so when i accept a quest it marks a waypoint on where the structure/biome is?>
FoodProperties Modify issue
Bullrush6666: I used AI to help me write a piece of code that sets the hunger and saturation values of all drinks in CreateCafe to zero.If only
Is it possible to block teleportation to a dimension until a certain quest has been completed?
Shmoo: I see that with the FTB XMod Compat addon, I can create an event when a specific quest has been completed. What I don't know how to do is prevent teleportation until the quest is completed.
How do you edit modded potion recipes?
Gabomon08, Slayer of Dragons: I'm trying to edit the input of some potion recipes because the original input is an item that has been disabled
how would i see what values i can change within a npc, and how would i target to change behaviors?
this shit bussin: context: i want to change behavior of recruits from the recruits mod, like giving the ability for them to target either cords or block types. and break blocks without explosives. further on id like to make them target valkyrien skies ships based on which team built them,
How to open a multiplayer server for Farming Crossing 6 Dinner Party
Anonymous: How to open a multiplayer server for Farming Crossing 6 Dinner Party
[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).
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?
Anonymous: Another option would to add another block like the beacon if that's easier.
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
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
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.