Support Tickets
This page is still WIP!
3d item textures
Blasopher: I was wondering if it was possible to give custom items 3d textures like blocks have, because I am making multiple transition items for custom Create recipes and some of them result in placeable blocks, the item itself would not be placeable I just want to have it have a texture similar to its complete counterpart when held by the player.
PowerfulJS Enhanced Campfires
PARVUS ๐ฎ๐ฌ๐ณ๐ผโ๐ธ๐ผ๐น: I wanted to try something ambitious with PowerfulJS and show a friend something neat it can do. I already learned some exciting things about other methods and a few tricks.
Add scoreboard to tab
Van: Hello, how can I add scoreboard to player list (tab) using KubeJS 1.20.1 forge server
Can't remove item
Gotve: Hello, I was trying to remove some items according to this tutorial
Zoma's SwordSkill x Parcool Stamina Integration
โถ: Hiya! Is it possible to make Sword Skills from [Zoma's SwordSkill](https://modrinth.com/mod/swordskill-mod) require a certain amount of stamina from [Parcool](https://modrinth.com/mod/parcool) to activate while using said amount upon activation? If so, how do I go about implementing this?
How to check if an entities bounding box is touching a block
Zetadrayzer: What I’m trying to do is to check whenever an entity/player’s bounding box is touching a block, I’m trying to specifically avoid using any .tick events because I want to make it multiplayer friendly is there anyway to make it so these type of logic is attached to x block instead of the player / entity ¿? My goal is here to give an effect to an entity once they are touching x block or if they are touching x block teleport them to another dimension
disable mekanism energized smelter recipes
Aceplante: I wish to disable some mekanism energized smelter recipes. Unfortunately, they seem to automatically copy all other smelting recipes, so how would I go about blocking this?
Right click item give effect
๐๐ช๐ป๐ด_๐๐ต๐ช๐ถ๐ป: I tried looking into the kubejs wiki, but I don’t understand it so I was wondering if someone can help me to make a script:
This is my first real time using kubejs and I am trying to add a disk how do I do this right?
Gedsweyevr™: I followed everything here https://discord.com/channels/303440391124942858/1375175312148660386
[Solved] How to change item name and rarity for all items in a specific mod?
Demperor: I'm building a small modpack for my friends in 1.20.1. This modpack has mythic upgrades, which adds gems to craft OP items, but the modpack also has the Jewelry mod from the RPG series. I thought of the solution simply being to rename all the conflicting Mythic Upgrades gems to "Mythic [gemname]", but how do i do that?
KubeJS Create Fluid Ingredients
X_ZYLE: This recipe works just fine with item ingredients, but as soon as I try to use fluids for the ingredients it breaks.
Need Help Rendering Players Head With Painter
Space_Mex: here is how i set it ```js
Extended Crafting Item Consuming
.pickle: So I know some recipes you can make it not consume the items and make them reusable, how would I do this for all types? Tried one for combination but couldn't seem to get it to work or is it not possible in Extended Crafting?
unremovable custom effect
stonedgoldfish: how can i make a custom potion effect that cannot be removed by drinking milk?
1.21.1 please help me with a script that is supposed to simulate silk touch.
G4l7n: So, I am making a script that makes diamond and netherite pickaxes specificly drop the same items as they mine. I understand nothing about coding, and I used ChatGPT, but since ChatGPT code is not allowed here, I can't upload it. Pretty much used BlockEvents.broken(event => {... , then checked if the tool is diamond or netherite pickaxe, if yes, began working on replacing the dropped block with the same block as the broken block. The idea is that if you break something with diamond or netherite pickaxe, it gives you the same block, like silk touch. If you ask me why, I want diamond and netherite pickaxes, in my modpack, to be silk touch, and I use justhammers mod for bulk mining, It makes it more realistic to have high tier solo block mining pickaxes mine precisely when you have 5x5 hammers. So, can anyone help me with the script, please?
Recipe for fluid collision similar to a cobble gen?
babyaintmoe: Hi! I would like to ask if KubeJS is able to create in-world recipes for fluids that get into contact with each other, similar to a cobble gen.
Gain an effect when attacking or killing mobs with a specific weapon
LgndTheDredgen: Can't figure out how to give effects to a player when they kill a mob with a specific weapon or weapons
Is there a way to stop a block from generating?
plasticcarrot: Two mods im using (waystones and a village mod) have a conflict and the "do not spawn waystones in villages" feature isnt working. Is there any way I can disable a specific block from naturally generating?
Can I define my custom event๏ผ
Frelia_ASM: I'm currently looking to implement the following requirement:
KubeJS Create Fluid.of not working
Mesrszmit: I tried making a recipe with this code
Bombs
AnderZytolga: I'm trying to make a custom bomb item, and I am struggling. Just a simple item that works like a snowball that explodes when it lands and all I have is the item :/
kubejs create chance based outputs 1.21.1?
Mesrszmit: since .withChance doesn't work anymore, and the wiki hasn't been updated, how do i add chance based outputs to kubejs create scripts?
EntityJs bug
A Stable Individual: Hi there, just reporting a bug i found with entityjs. I have a custom enity that ive made. In single player it works fine. Spawn and does its thing.
Replacing Create Sequenced assembly inputs
D.A.V.E.: I'm trying to swap out an input in a Sequenced assembly recipe. while the input items change the items deployed onto it does not
Recipe books
Cr0w37: Hi, I'm trying to put recipes on books that can be found throughout the world and when right clicked on the player unlocks the recipe. I know how to restrict the recipes with a mod called Astages but I do not know how to apply a recipe to a book or make it an advancement. Any help would greatly appreciated. Thank you!
Custom Nbt?
๐๐ช๐ป๐ด_๐๐ต๐ช๐ถ๐ป: Is there a way to add a custom nbt to an item, I am adding an ammo_blueprint for TacZ and I didn’t want to make an item for every single ammo, so like have a .45 ACP nbt put onto the item? Sorry if this is a stupid question, I’m brand new to this
Convert string to NBT?
mo_mo (ping me): Is it possible? Something like `NBT.fromString(someString)`? I'm aware of NBT.toString() but not the other way around.
how would I detect if the block I right click on is a door? (and which part of the door)
duck: I made a reinforcement script, and I save some data to a key which is the coordinate, but since a door is 2 blocks if I reinforce the bottom and break the top it breaks the door even tho it should share the reinforcement value
[1.21.1] KubJs 7.2 Game and world not loading.
Fers: After installing the latest version of the mod, a previous world saved is not loading.
How to give a loot table to a block, without LootJS.
Vexฬธฬฟอxen: I feel so dumb... setLootTable, and setLootTableJson are not working!
Can I change a text or a color of text via kjs?
absolutely not wawa: I doing system that allows player to choose a subclass of mage (electromancer for example) and can I change the already written message?
Help a Noob with making a Sequenced Recipe
BlazingDeck :D: I need to make a Sequenced recipe that includes modded items
Ars Nouveau Addon not working properly
LVMVS: I added a custom imbuement recipe in my game, but I can't remove the old one.
Preformance Impact of KubeJS
beannn: Hi, I have a question, I want to know how overly massive scripts can impact preformance, I used Sparks TPS tool but unless I did something wrong it didn't monitor KubeJS's thread usage.
[KJS7.2]Crash with Touhou Little Maid 1.4.1 or Create 6.0.6
Infinistar: Game will crash when KJS 7.2 installed with Touhou little maid and Create mod.
Another KubeJS 7.2 incompatibility :D
Kieran // OperatorTriz: I dont know if this has be sorted through KubeJS or through the mod itself, i just seen ye collecting the reports of it, so im posting at both places.
Game crashed
DSans404: I got crashed after update kubejs and it seem have problem with Modern Industrialization mod.
Intercepting messages
Ekazuya: I'd like to know if it's possible to change these messages that appear when playing with armageddon mod.
Prevent/Allow a mob to control another one
Zetadrayzer: Anyway to prevent/allow a passenger (rider) mob from controlling x mob? for example allow a zombie to control a ghast, or prevent a husk from controlling a horse
Internal Errors with latest KubeJS version
Hex Maniac Lucy: https://mclo.gs/eYeAk8D
Adding armor attributes to modded armor.
pimst: Hello, I want to add an attribute from one mod to armor from an other mod, I followed an tutorial exactly (but only with the names and the actual attribute i want changed) and it did not work can somebody please explain how I can moddify
How to carry over data
Fard: Hello i'd like to find out how to (if it's possible) carry over data such as slime size or held item from a killed mob to a newly spawned one
Recipe with varying amounts of items
PierogiPL: is it possible to make a shapeless recipe that
can someone help me make a script? I am a complete beginner at Java script
ZhanBr0: I need to make a recipe, one only
CHECKING MOD'S MOB ID
Kwaven: How can check mob's id of mod, here is the code
KubeJS 7.2 Release Bug Thread
Lat: Making one large thread to list all current MOD ISSUES (not scripts). It's a massive rewrite, lots of bugs are bound to show up at first
how can i remove brewing altogether
TugkanDeMan: how can i remove brewing altogether
Is there an easier way to make commands?
DaddySpin: So I made a custom command but it's a massive file and I'm wondering if there is an easier way to do it? Mind you there is nothing wrong with the script, it's just extremely annoying to maintain and add to it.
Play custom kubejs registered sound when FTBQuest completed
shockraid: Hello, I was wondering if I could write a script that allowed for a custom .ogg file to play when completing a specific quest.
get FTB Teams player's team online player list
Shadownrun: I've been struggling with this for hours now...
Is KubeJS-Mekanism not compat with 7.2?
xTsuSaKu: If I enabled KubeJS-Mekanism it broken
Kubejs 7.2 stuck on the startup screen
Drowning Fish233: https://mclo.gs/k0aGczc
Do i need the startup scripts and textures on server and client side?
LearnJava: I don't know i think i can have it on server and on connection to server i download the textures ?
How to remove items from inventory?
BE2333: As title. One of our OP accidentally gave some players a admin tools “touhou_little_maid:owner_conversion_tool”, and I trying to remove it from player's inventory now.
How to texture stairs sides differently
kris: I want to give stairs a different texture on top and bottom but it doesn't work.
Take items out, and put items into a block entity.
Vexฬธฬฟอxen: As i said, i have a block entity that has items, i want to insert items, and remove items from it, with a filter on the items removed(via ID & NBT), and insert a item with NBT.
bug not letting my friend join my game
|•{๐
๐ฆ๐ฌ๐๐ฅ๐ฌ๐ฐ๐ฑ๐ข๐ฏ}•|: so me and my friend have been playing a modpack for a while now and the other week he had to factory reset his computer because certain games were just turning the computer off, since getting it back up and running we have tried playing the pack together again and i made sure we had the same one installed same version and everything but whenever he tries to join he gets this error message. (see image)
I've created a custom template and tooltips and I want to link them to language files.
HAELo: I created a custom template and added tooltips.
Making slimes immune to melee & ranged attacks
Pakaru: Basically, I want to make Slimes truly slime. Swords can swing through them but never damage them, as they immediately reconnect. Arrows wont work either, the slime will just make the arrows stuck. Only way to damage them should be magic or fire. Common fantasy trope says slimes are the weakest enemies, but I think not.
item texture
TugkanDeMan: how can i give the custom liquid bucket a different texture
Remove living entity's main-hand item and drop it - 1.20.1
Ayeloo: I want to create a mob effect that is triggered when the affected entity takes any damage. Here is my code:
Recipe using tool only working when tool is full durability
sleeves: I have a manual ore-crushing recipe using NBT data to match any hammer from tetra (a tool customization mod), which then damages the hammer upon craft. The problem is that it only works when the hammer is full durability, which I find strange given the tool match is using weakNBT. Here are the relevant lines:
tree extractor
TugkanDeMan: can i add custom recipes for the thermal expansion tree extractor
Modifying attack damage not displaying properly
Aceplante: I was able to "successfully" modify the damage, durability, and attack speed of an item, but it displays in blue text instead of the normal way weapons are supposed to?
iron spells spellbook restrict
Saiton: Is it possible to make iron spells' spellbooks have the tiers that iron spells have and then when you try to add a spell to the spell book, it checks the tier and displays an error if the spellbook is a lower tier than the spell, cause angel wings is really overpowered but i don't want to outright remove it (also some other balancing things). Is this feasible in KubeJS (with Iron Spells, addon if needed) or do I have to make a mod/erase angel wings?
burn time
TugkanDeMan: im editing the burn time of coal items, all the other ones work but the quark one doesnt for some reason
How do I make a custom effect harm the player with a specific damage type?
PeterTheGM: ```
Adding a structure
AGoodTaco: For the modpack I'm making, I've created a custom dimension that I spawn the player into. This dimension is meant to spawn a structure at the center of the world. The structure is there when I use /locate but nothing is generated
Is there any possibilities to keep ingredient in smithing recipe?
kcino: I want to ask if there is any chance to make a recipe in smithing table without using one of the ingridients, I tried with .keepIngredient and .damageIngredient
NeoForge tiers
Alazi: I have a script from example-scripts for 1.20.1 forge that (obviously) doesn't work on 1.21.1. Can I modify it to make it work without rewriting it from scratch?
Is it possible to create other dirty and clean slurries for other ores (Aluminum and other stuff)
Yurik: Im using the mekanism addon for kubejs 1.20.1, Im doing a unified ore system via Kubejs across a bunch of tech mods, one of those things is creating custom slurries for ores like aluminum, nickel, and other mods. How to do it?
thermal vision?
Cr0w37: is it possible to make mobs see players based on the player temperature? for example I'm using legendary survival overhaul and I want to make spiders only see me if I'm warm hot. I don't know if this is possible tis why I'm asking
renaming recipe type
TugkanDeMan: is it possible to rename "Polishing With Grinding" to something else?
[PowerfulJS, KubeJS Iron's Spells] Is there any way to put Iron's Spells on Curios?
ManaMouse: I've been working on a pack with both Iron's Spells JS and PowerfulJS, and I want to grant the player spells by wearing certain curios-Example, an eye of ender in a custom curio slot granting the player an extra spell to their selection.
Need help inserting custom dungeon maps into loottables
Vaporeon: as far as im aware this isnt possible using datapacks, as i tried using the nbt tag but it seems to be a perworld thing and will only work once (as the map number changes) so is this possible using Kubejs?
a question about understanding connectivity between client and server
SpicyMayo: What would happen if for example i added a keybind, and i wanted so when the player presses that keybind he will gain for example mana from iron's spellbooks. If i put the activation script in client scripts would it properly work on a multiplayer server? Or do i have to put it in the server script and hope to god there is absolutely no delay? Will the client script know to send the mana request to the server?
Hello, I have a problem with how to generate/block structures.
opdomi_offiziell: I want to work with Mods Kubejs
item right click doesn't trigger for some modded items
duck: this event doesn't run when rightclicking with cuffed:handcuffs for whatever reason.
How can I define different faces of a texture on 1.21.1?
Hex Maniac Lucy: Trying to make the following block rotatable(there's a total of 4 blocks, but this is 1 of them, they are all similar)
Question about setting an item in a specific inventory/hotbar slot
TheButterbrotMan: Hello,
Add a curios item that adds new curios slots
LgndTheDredgen: I am currently making a belt that can add more curios slots like an extra charm slot if you have the belt equipped, but cant really find anything that is helping me out if this is even possible
Is it possible to intercept the end portal spawn?
DaddySpin: I had an idea to intercept the end portal block spawn event and replace them with a different portal block so that you can still use mods like End Remastered to open the portal, would this be possible or would I be better off intercepting the dimension change event for the end?
Restricting block placement by dimension
heimdal: Hi all, I'm attempting a simple script to restrict the placement of a certain block to the Twilight Forest. The server script properly blocks item placement, but consumes the item (which is expected). So I added a command to give the player the item in question. The problem is that it doesn't track the item properly in the player's UI. So it shows the item count as going down, even though the player is recieving the item correctly. If you leave and re-enter the world, the correct item amount is shown. I tried with vanilla oak log and confirmed it isn't a mod thing. I also tried adding a short delay (event.server.scheduleInTicks(5)) to no avail. Does anyone know why it isn't rendering correctly and how to fix it?
Creating script for changing weapons and armor, help needed
SlenKen: I'm trying to balance some weapons and armor but I'm totally new, I need some help and guiadence
Renaming a mod
Boscko: I've added the items I need to the server. But I don't like that it's just KubeJS. I want to do something like this: <project name> -- KubeJS. Can you tell me how to implement this?
Error in 'PlayerEvents.loggedIn': java.lang.UnsupportedOperationException
BazZziliuS: NeoForge Version 21.1.197
is there a better way of making JSON items?
OracularSpy: This works, but i am just curious if i am misunderstanding something, or generally if something better exists