Support Tickets
This page is still WIP!
Does anyone have any idea how can this be done?
Capybara: i want to create custom jei screen?
Create mixing recipe not working
EtherShade: ive looked at multiple other posts and i cant find anything helpful
Need help refactoring code to make items unique/"singular"
zenithBemusement: Context: hosting a wildly customized version of Beyond Depths with a large group of friends. In order to drive up some Emergent Storytelling™, we decided to make it so certain high-value items would only appear once; the moment they were crafted/looted, all methods to obtain them would be wiped from the pack.
Do the Creative Tabs modification commands no longer work?
Punished Blazing Starlight: I've been trying to modify the entire creative tab menu, so it can be better organized, but the line "event.removeDisplay('');" has no effect ingame. I've seen people doing something similar to what I want to do with a mod called "Fermion!" But it isn't in the 1.20.1 version.
How to detect Keybind press
MRFOXπ‘: exemple if i want something to happen when i press the button "B"
Need help for removing a recipe per gamestage Neoforge 1.21.1
SpicyMayo: Im trying to remove a recipe for someone not having the "engineer" gamestage, would love it if someone could show me an example of how it's done
Timer for ftb quests
DaliaVixen: Can anyone help me with the command to set a repeatable quest with a timer rest every 12 hour?
Anybody knows how to fix this glitch?
Femboy lover: Yeah it suddently showed up and i dont know which script is the problem and i dont wanna just play russian roulette until seeing which one is the problem can someone help?
This Error from KubeJS or not?
MikihinaSann: When i Enabled Script Like ChatDetectMini Game My Server Got Crash like this how to fix or it not KubeJS Crash?
server.scheduleInTicks and delayed server operations
Tyler Geovex: ```EntityEvents.hurt(event => {
Is there a way to disable items being given on spawn?
Freeguy: Im specifically asking about the hexcasting book, i know the documentation is very needed for that mod but i dont like when this stuff is handed out for free
Unifying Oil and some gas from other mods for Stellarity
Myshka π΅πΈ: Hey there, just like the title said, I'm attempting to unify or atleast make other oils added by other mod usable by Stellarity and vice versa.
Need help for craft modification
SOMEBODY SCREEEEAAAM π£: I just need a bit of help cause i'm new to KubeJS its my first time using it so i dont really understand what is not workng here
Updating a script that give players a horse and dyed items on join.
Freshah: Hi all, over a year ago, after much reading, learning, and support here, I had a script I was very happy with and want to port it from 1.19 to 1.21. I tried myself, but events and stages and whatnot on the wiki seem to be unchanged, and I could use tips on what I have here that is changed in new versions. Just dropping it in my folder now gives the player the Flute item and the Atlas, if that's relevant. Thanks.
Make breaking blocks with a certain tool silent
aliign: I have a certain tool tier that I'd like to have the unique behaviour of making no sound. The closest I've gotten is this, but it produces some sound and also mines the block instantly.
how would i make an item that runs /data modify on the clicked block?
thornium: this is the code i have right now and it doesn't do anything
get tags from tag
Lemon: is there any way of obtaining an array of tags from another tag? for example, the tag `minecraft:logs` contains the following:
Particle based confetti popper
Torrent Amador: The last time I tried posting this, Discord said no, so I have to redo it.
Block players from entering the end
chavuz: hello as described in the title im looking for a way to block players from entering the end aka. on player event changing dimension to end i would like to somehow make them not able to enter or just teleport them back
Modifying a block to give it cardinal directions
Lens: can i use blockevents.modification to give shulker boxes cardinal directionality?
Is there a way to store items in the "inventory" of a server?
hat guy: hello im wondering if I can save items on the server similar to an inventory/container. Im sure you can just store them manually in a table as persistent data or an inaccessible chest but I wonder if there is a proper way of doing this
Attempting to add translations to kubeJs fluids using .translationKey()
Auseawesome: I am making a jam/jelly fluid for my food modpack, I want to have it be called jelly in canada and the US and jam in the UK, New Zealand and Australia.
how can I make every ore except zinc ore turn to gravel when mined with a stone pickaxe?
βπβ¦n3uvaβ¦πβ: basically what the title says, I'm trying to make a modpack that is hell to progress through and I thought this would be a good idea if I knew how to do it
Immersive Engineering Mineral Vein
PEK-97: Is there a way to modify / add Immersive Engineering vein types using KubeJS?
I can't remove these recipes
ja80991: for some reason I can't remove this recipe and other similar ones that start with emi:/ , what's the problem here?
render for players in spectator mode
faze: Is there a way for a player with a specific tag to see the floating heads of players who are in spectator mode?
Message when interacting with an item is not sent
ITakerMetal: Hello, I'm trying to make a script so that when interacting with X item in this case the vampire fangs from the vampirism mod so that it cannot be used and releases a message to the player like "You cannot use this item yet" in addition to that (I still don't know if I can do it) to make that with the custom npc fork 1.20. 1 mod the player completes a mission and this item is unlocked, honestly it's my first time using Kubejs so I have little or no idea how to do it correctly. The script works, it blocks the use of the item but does not send the message, how could I solve it?
Can I use generic stacks in recipes?
Phoenixvine: I want to use the mobs from crazyae2addon's mob storage in recipes and the dev said if kubejs can handle generic stacks it should work
Reach
SehLoiro: I cant seem to find the way to change the reach distance of a sword using kubejs ?
Remove effects
Kam: Is there a way to disable specific effects? I wanna disable the insainity effect from sons of sins because the screen shake is really annoying
All items from LootTable
Tim: Is it possible to get all items that appear in pools in a LootTable?
Lang-file break
Marvin (MaGeBZz): I wanna have a lang key that makes a break between the lines
"Harvesting" an entity when right clicked with a specific tool, like shearing sheeps
Pakaru: I'm trying to make zombies drop rotten flesh on the floor when right clicked with any tool tagged with "kubejs:knives", but seems like "EntityEvents.rightClicked" doesn't exist, wiki doesn't help either..
Carriage spawning help
BLU: I need help on this code..... it works properly if the horse is untamed/wild but if the horse is tamed it will teleport the player up in the sky.... I beed it to work without you falling to your death
Intellisense is not auto filling anything under event.player
Rex: Not sure what I set up wrong, everything else seems to work.
BlockContainer, Item and Tags
Tim: Im trying to log out every tag a block has. While it works fine with the blockContainer and using the tags attribute, when i try the same thing using the blockstate it doesnt work anymore and i get the same error as im trying to get the tags of an item. What exactly are BlockContainers and how can i get all tags of a block or an item?
Is there a way to change TaCZ gun recipes using the kubejs mod???
Femboy lover: I tryna change the iron ingots in recipes to steel from another mod
A little help please
Anonymous: A question, can i use kubejs to make that, for example, swords don't damage zombies, but other mobs?
Remove Broken Hephaestus Recipes With no Output Item
Wiz (Ping on replies pls): In a modpack that I'm working on a bunch of Hephaestus recipes are broken, example being cobalt ingots can not be made using the casting table, it simply pours and then voids the contents with the EMI Recipe that's supposed to be the cobalt ingot looking like Image 1, I already have made the rest of my script to add the recipe back the way it should be (Image 2), but I can't figure out how to remove the broken recipe.
Get MapColour, SoundType and other properties for registry
Tim: Is it possible to get the MapColour and SoundType of a block by the block or blockState, that can then be used in the block registry? And is there any uniform way to get a blocks default properties?
Register copy of vanilla/modded block with some differences
SoundsDotZip: I am trying to register a block that is nearly identical to another block (for example, bedrock), but modified in slight ways.
Can't start server, it can't locate Rhino
Smitties: We have a modpack and it can't load on a dedicated server, the mod says it can't locate rhino, we have the latest versions of neoforge, kubejs and rhino ( we checked and rhino is present and all. )
Is possible to play video on full screen without any gui for all player?
lehavasya: i wanna to play special video when player get achievement
removing recipes neoforge 1.21.1
dodo123sh: i have this recipe id and am trying to remove it but it doesnt work correctly so was wondering why
Change Ingridient by crafting
dima532: I want to make a recipe change the item in the ingridients to outher item, like water bucket to empty bucket, by just taking the water. Can i do it manually and not rely on built-in items? (like said buckets and bottles)
Get Block Properties
Tim: How do i get Properties like material, hardness or resistance from an Internal.BlockContainerJS or via block pos?
Allow player command when holding specific item?
TravHan2009: Hello, I am fairly new to KubeJS and have not found an answer reading throught the wiki or elswhere online so posting here.
Only run code if they arnt a specific player
Norevex: I currently have a script that deletes a players inventory on death, but not everyone on my server is capable of playing under these condition. how would i do this?
How do I make a projectile item
DragonSD360: I'm sorry if it is obvious how to do this, but I have no clue how to make an item that whenever you right click on the item it would make a projectile item that would deal damage and would apply and effect on an entity that it would hit. Any help or direction would be appreciated!
Remove original food effect
Mireruku: Is there a way to remove the original food effect? for example make golden apples dont give any effects?
Manipulation of player.dat files
Scout the Saneless [pls ping]: Is it possible to manipulate the `player.dat` files, so as to implement a way to edit a player's stats/inventory even when they're offline?
Play sound to player
Oakmontowls: I'm trying to play a sound to the player and I can't get it to work. I found this thread which says to use the runCommandSilent thing but I'm not sure what exactly they mean by that https://discord.com/channels/303440391124942858/1339357228662259803/1339357228662259803
Create Mod data pack help: delete an original recipe and replace with a mechanical crafter recipe
kujo!: Hey can anyone help me with adding custom crafting recipes to the mechanical crafter while deleting vanilla/original modded item recipes? I can post my code using kube.js if so. Thanks
Ore Still generating I've tried the wiki tutorial and datapacks
ecoay: Not sure what I am doing wrong I followed the wiki https://kubejs.com/wiki/tutorials/worldgen/2001#custom
Cannot remove tags from modded ores.
Gilgy: Using Fabric 1.20.1. Trying to use kubejs to incorporate my own custom tool levels, with the mod mythic metals. I was able to remove the tag minecraft:needs_iron_tool from minecraft:diamond_ore and miencraft:deepslate_diamond_ore, and replace it with my own custom tool level. However, I cannot remove the tag from banglum ore (just one example), which is preventing me from mining it with a copper pickaxe.
more efficient way
Skemech or something: So as of right now, this is the shitty way I'm doing this
moreJS potion brewing is no worky sadge
Sleep: Copied directly from the example scripts on the 1.21 github branch. No error message, no warning message, no recipes :C
damage making me tweak tf out
Lava: how do you change a weapons damage on 1.21? I've read every mention of it in this channel and i have not found a SINGLE solution
trying to add mekanism recipes
DΔ«puu~ΕkΔ: im trying with all my might (idk how to code) to create a recipe for some of the mekanism's prosseces, but i cant seem to be able to make it so the machin's output dosnt just give one oof the prosseced item, and i cant add an infusing recipe for some reasons, anyone able to help ?
twilight forest ore generation
bryan: hi, is there a way to allow twilight forest to generate custom ore or do i have to use datapacks ? you can see on the screen that mod ores do not spawn
JS Question: why is this working? 'for(const el of arr)'
KingPsychospud7: why does the following allow me to reassign a const? it was my understanding that `for(const el of arr)` is valid only if el is not reassigned within the loop
.
Isaac: how can I rename items? for example all dirt blocks changed name to diamond dirt.
I need actual help
ItzByc (Ping on reply): My kubejs randomly started saying that server recipes internal error null and something and it disabled the recipes from my testing script, pls help me <:hmmm:609911633078124558>
question on where to put my code
zalcc: Made code for my modpack that on initial start gives you a map to a custom structure but dont know where or how to add it into the kube js or modpack in general
Help with LootJS PLEASE - Entity Loot Modification Not Working
bean2xd: Hello everyone,
Prevent blocks with certain NBT from being placed.
Leah: Hi, I'm trying to prevent blocks with certain nbt from being placed. I tried an event.cancel in the blockplace event... and although you can't place the block, it causes the block to appear for a moment before dissappearing, and the inventory becomes wrong and needs to be updated. Pasting the script into the client does not fix the issue. I would like ideally to have the block not even have the interacted animation done.
I want to code a custom block press
ItzByc (Ping on reply): A block that uses forge energy to press items using create mod system, you input a copper ingot and you get a copper sheet out, using forge energy, can someone help me?
Curios that gives immunity to an effect(s)
Henry (Ping if not present!): ```js
Right clicking item applying potion effect
Lava: I have a question i've seen lots of answers to but none worked for me. How would i make a certain item give the player a potion effect and then go on cooldown when the player right clicks with it?
how to detect if player is staring at sun
π Nugget_Sk: also how do i check after it detects it again
How can i make custom potion using morejs
ItzByc (Ping on reply): I'm trying to make a haste potion but idk how, then I tried to make it's process in more js but it says uncraftable potion, I need help making a haste potation, strong haste, long haste, like the vanilla ones<:hmmm:609911633078124558>
Limit the amout of tamed wolf / pets
Helore: is it possible to limite the amout of tamed pets?
Crash.
AwareFreak_97: if i install kubejs 181 on my neoforge server, the server is crashing. i dont know why.
Check block placement for summoning event
toboios: I wanted to summon an entity kinda like you would summon an iron golem, but I'm not sure how to write the "if" statement properly
How to modify attack speed or damage items in 1.21
Tekabe: I've been trying to nerf the allthemodium and mystical agriculture swords in atm10 for a while, but no matter what I did, I couldn't succeed.
Making a container item
Flame: I am currently making a currency system for my minecraft server, but I ran into an issue when creating a wallet like item.
Is there a way I can find the creative tab ID using kubejs?
Your Darling: I'm trying to remove an item from the creative tab of a mod but I can't seem to find the creative tab ID
Edit/Replacing Farmer's Delight recipes
Zera: Trying to fix/adjust a recipe from a mod that uses Farmer's Delight's cooking pot.
Removing Recipes
Zera: I have been struggling to remove a recipe for over 24hrs now and I don't understand what I'm doing wrong. It is a standard crafting table recipe, so it's not something done in a specific station *(although I'm trying to achieve those too for some FD recipes without success)*.
needs_(material)_tool tag not working
marcnum2: ```ServerEvents.tags('block', event => {
cannot find function tagblock
marcnum2: const othersidewardennotblocks = ['deep_dark_regrowth:moonstone_crystal', 'deep_dark_regrowth:ghost_jelly']
Change Damage of Species' Spectralibur
liamhuber.: I am trying to edit the attack damage of an item in a mod. It is unbreakable and does 8 damage, but I want it to do 6. With my current startup script I get an error upon starting the game. Any help would be greatly appreciated. Below is my current script:
Tedium check
AlmanaX21: I am working with ATM 10 and I wanted to add compatibility to all recipes for oil between MI and tag `c:fuels/crude_oil`
world generation
hi: is there any mods that can allow me to remove custom modded ores from world generation. or if theres a way to do it in kubejs
im trying to give players item when they respawn, with luckperm groups
Aka#Void: so i have 5 luckperm groups each players on that groups get different armbands when they respawn, but everytime when i try to get armbands from different groups allways gives me the same armband
Limiting enchantment levels
avgLemon: What I want to do is force all instances of a specific enchantment to be a certain level, and not display the level number.
Entityjs translucent + emissive
faze: Is there a render type in EntityJS that allows both transparency and emissive effects?
Make a new block that inherits properties of another block
Leah: Including things like model, texture. Is it possible?
How do I make an unbreakable block breakable?
DaGamer5T3w: I am trying to get the command block in specific to be breakable at all, but putting these lines into the `startup_scripts` does not seem to cut it
Make item lose durability if in the players main/off hand
Lens: I would like to make the walking sticks from the "TFC Canes" mod take durability as the player uses them. Currently they only take durability if you break a block with them. By "using them" I just mean that the player has the cane in their main hand or off hand.
custom block canSurvive
Atobá Azul: Is it possible to make a custom `canSurvive` for kubejs blocks?