Support Tickets
This page is still WIP!
KubeJS script crashes the server
Simple: The server hangs when there is this script to add a block:
custom geode feature
Jayquavius: I'd like to make a custom geode that is essentially the exact same as vanilla except somewhat smaller, rarer, has a sky stone shell, and certus quartz inside. Is this possible with kubejs?
kubejs create nonexistant for 1.20.1 fabric
SOSSALMON: Trying to get an update out for 1.20.1 on Create: Overstressed but some arguments don't exist anymore because of Kubejs Create not existing in this version
Recipe output with NBT data
ClaireAlderwyrm: Trying to make a custom recipe, but the item I want needs NBT data, and I don't know how to specify NBT data in the output.
Hiding "jeresources:mob" Entry/Recipe
Terra: The Just Enough Resources mod adds a "Mob Drops" recipe type that displays entities and their associated loot tables. Is there a way to hide specific mobs from this "recipe type" with KubeJS?
Event for just before a reload or when the server closes
Nanorasmus: This might be a dumb question, but is there an event for when your script is getting unloaded?
Weird render issue
paikeday123: The bounding box on some of my blocks allows the player to see through them.
Can't reedem the output from AnvilUpdateEvent
Zaid Alaraji: So I'm trying to make a weapon damage change method via anvil and this is how i did that so far
Script that runs every hour, on the hour.
Leah: Hi I'm trying to write a script that runs every hour, on the hour (eg: at 4:00, 5:00, 6:00, etc (It gives everyone online a lootbag every hour). What's the best way to do this?
Model Textures Break Depending on rotation
แฒโซฏแฒแฒ09 ๐๐จ๐ ๐๐ฆ๐๐๐๐ ๐๐๐๐๐๐๐๐ฃ๐ค: My model Textures get black in specific areas depending on the block's rotation. I also added a Blockbench screenshot for the intended textures.
Replace event for create mod fluids
J0hnnyWalker: I have the mods “Create Weaponry” and “Create Matallurgy” and want to merge the molten iron recipes so that the input and output is the same liquid for both.
i need help with recipe removing
luluthepogcat: there is an item in the mod destroy called "silica", which has 4 create’s crushing recipe to obtain, i want to disable all of them except one crushing recipe, how do i do that? try to put a "not" in but doesnt work
Filters just dont work whatsoever in my ftb quest (probably user error but idk how to make it work)
Anonymous: I put items in "or" filter, i put "or" filter as a task item, the quest wont complete when i have one of the selected "or" items in my inv
Loading screen colors not changing through client.properties
Seaswimmer: So, I have the following client.properties file in my `kubejs/config/` folder:
commandRegistry how to make optional argument and how to make command expect specific argument
Wlnfr: 1. How do I make this argument `.then(Commands.argument("number", Arguments.INTEGER.create(event))` optional, so that it uses a default value if it's not provided?
What should the first parameter (extra) of ItemEvents.dynamicTooltips() be filled with?
Mango is Me! (Ping when reply): ```ts
Custom Items (Break the Loading on a modpack)
obsidian_mini_sword: When i try to get my Custom Paxel Upgrade Smithing Template it just Make the game never Load 100% up and insted crash with a itemBuilder error it works in a older Version of Minecraft.
Adding liquid to a block holding liquids
Kamyk: Hi! I’m looking for a way to add some liquids to blocks content that can input liquids. For example adding lava to cauldron or magmatic dynamo from thermal if netherrack is under the blocks.
lock hotbar slot
Ari: i need to make it so only hotbar slot 4 5 & 6 are selectable is this possible
Effect doesn't remove attribute modifier when effect has ran out
KekeCreations: Is there something wrong with my script or is this a 1.21 bug?
placing ladders above and below system
jamm: trying to make a script that places a ladder above the one u click on
How can I see if an item is inside a tag and it that tag contais any other item?
I'mKlayil: I'd need run that on a server event if possible
disable/edit player animator Animation
Ari: i have 2 mods that add a animation for the same thing im wondering if i can dissable some of them and replace others
AnimationJS Player Models
Ari: im wondering if i would be able to use animationjs or something like it that to make a segmented version of the player model to make smoother animation like epic fight
doesnt set torch block unless it has not facing orientation
jamm: for whatever reason the script only works if the torch is up right and isnt facing any direction on the side of a block
How to import Create-mod scripts into new kubejs
beannn: This is the script i used for some items they no longer work, i checked the documentation but everything is labelled as "legacy"
How would I make an enchantment that only applies to a specific item type?
M-CDevinW: I'm currently trying to make a few new enchantments with KubeJS. I've looked through the example scripts, and found someone named FalAut who made one using this startup script:
Script error in startup script.
SamHammie: The attached links below are inaccurate. See [here](https://discord.com/channels/303440391124942858/1266106940459581490/1266118668996313181) for updated ones.
JEI Bug
rasior29: When I use a script to hide an item, JEI bugs and no longer displays craft and usage and the script is client side
explosive chestplate
Ravvix: Is it possible to create a chestplate that explodes when broken?
Trying to use method from mod class results in error
MundM2007: Im trying to use the getDisplayItemStacks method in the ItemFilterApi https://github.com/latvian-dev/item-filters/blob/1.20/main/common/src/main/java/dev/latvian/mods/itemfilters/api/ItemFiltersAPI.java#L83 . I'm passing a valid Item into it, but no matter what I use as the second argument iz results in the below error. I'm trying to call this client sided to then dynamically change the tooltip.
[ERROR] ! worldgen.js#19: Target block state is empty!
Spacex: when i launch a modpack this is the error im getting, i didnt make the modpack plus i dont have any experience with kubejs. this is a modpack that i did add mods too, please help
KubeJS error loading recipe
Baron74: Hello, I don't know well about kubeJS programming, but recently some recipe on kubeJS who worked before stopped to work for some mod. Here is a link to the log if someone can give me some assistance :
Forbidden arcanus recipe not working
FeSiTa99: I've made a few recipes, all following the same syntax, but one of them isn't working and i have no idea why. It says it loaded with no errors, but this specific recipe won't show up.
FTB Guides links
PLEASE Ping me if u answer: Is it possible to somehow provide a link to another guide inside ftb guides?
Is it possible to display NBT of an item for the input of a recipe?
JudgeRinder: I'm planning to use Thirst Was Taken but they've implemented water purity in the form of NBT instead of seperate fluids, would this be possible to prevent confusing players?
Mekanism fission help
MaybeMedic: can some one show me how to use the custom Fission Recipe Mod?
Using CraftTweaker Addons in KubeJS
PINPAL (ping when reply): I would like to use various addons for GameStages from wtihin KubeJS. Is this possible and if not, would installing CraftTweaker and using it explicitly for these cause issues?
How would a make a block spawn a structure
Squawkykaka: I want to make a block that when you click it and a structure is built around it spawns a metior at the highest y point above the structure how would i do this?
run command on player death/join
Octal: how do I make a command run like "/execute as @a run attribute @s tinyinv:slots base set -35"
Trying to change fishing loot tables with lootjs
girlzoi: Couldn't find any documentation for changing fishing, but my intention is to change the loot tables to be based off of biome/temp, time of day, and/or weather. Maybe even something with serene seasons? I'm also using Aquaculture, which I know already has some biome-specific changes that I'd like to preserve
Check if paint element is active to avoid log spam?
RQ: When using the ``PlayerEvents.tick`` event with ``.paint`` lots of general log spam occurs when removing an element which is not active, like here:
Looking for a way to make an array of all items that match a specific set of arguments.
soap: Trying to clean up the tags on a pack and i'm looking for a way to create an array of all the items with a certain tag, like how you can with removing recipes, e.g. {mod: 'create', '#forge:plates'}
(Mekanism) Unable to edit basic, advanced, elite and ultimate factory recipes
ChicleDeFruta: Message not found
mekanism recipe help
Anonymous: need help creative recipe for mekanism tank
Loot Tables.
Morro™: I need to modify all loottables in the game. like what zombies drop or what spawns in lost city chests. i have no clue how to start and reading documention doesnt make sense to me.
How to make duplicate recipes with a single changed output?
foggywizard: A bit more context: I want to have all my recipes dynamically work with tetra, so I'm using tetracelium and this code to make it compatible with the tetra knives: ``` event.replaceInput({type: "farmersdelight:cutting", input: "#forge:tools/knives"},
explosión mob crafting
SrNadien™: some way that when you hit a chicken with a certain item and make it explode and usually an item, example 1 diamond
(EntityJS) Can you make a enderman no longer aggressive towards endermite?
Peti: *Title*.
error in ATM 9
charlierogersCretoxyrhina: hey, slight problem. I've added some mods to ATM 9, and (ignoring some other issues that took priority), there's an error related to aether redux regarding the gregtech greenhouse and aether redux short grass. it breaks the whole setup, meaning none of the features that kubejs brings to the pack work. Can anyone help me figure things out without removing Aether Redux? I have the error attatched to the post.
How do i remove enchantments with kube js?
rigbyy: I just need someone to explain how i can remove an enchantments as a whole and how to get rid of levels of an enchant (for Ex: Sharpness 5 can only go up to Sharpness 3)
Trying to create custom gravestone using the block type from the graveyard mod (It lets you write on
Untrustedlife: But when i do so the wya i se eon here (defning propertoies) i get an error, turn sout Gravestone's constructor actually takes in a resourc elocation. SO im totlaly lost lol. Using a model location or using the id of a block didn't appear to work either (it just doesn't show up at all)
Making a new "cake" block/food
Sacri Pan /\^._.^/\: What I wanna make is Stuffed Squash, wish work exactly like farmer's delight's Stuffed Pumpkin but for Deep Aether's Squash, how I do that? Do I have to create each block for every single individual stage?
Issues with 1.19.2 immersive engineering crushing
Gabe Lily: I've been trying to migrate a 1.18.2 script to 1.19.2, and it includes this code:
Need to fix script
Isaac Faro, the Stellar Cook: Hey guys, how I can fix script to make it changing player's attribute? I'll send it down under this post
energising
create: can i make energising work from create new age with kubejs/createjsvV
How to make KubeJS Smelting recipes give XP?
qwerty97475: Vanilla recipes give you XP for smelting, I couldn't find a way to give XP with smelting on the docs.
IE Crusher Secondary outputs not working
Pip Ping for replies: ```event.recipes.immersiveengineeringCrusher('3x thermal:blitz_powder', 'thermal:blitz_rod', [{chance: 0.25, output: 'thermal:niter'}])```
ProbeJS not dumping?
Sam-e: I Really don't know what the problem is even when looking at the logs, it just hints at Satin but thats a fabric API.
Removing a mods items from loot pools
OxiiGiin: I'm trying to remove all items from all loot pools from Scaling Health. I've already removed all the recipes now just want to make sure players can't receive items from the mod.
Chopping Block
Sivi: So I use a mod called choppingblock which adds a choppingblock. This block is created in the craftingtable with two stripped logs and two leather. I want it so I can just rightclick a stripped log with an axe to turn it into the choppingblock, like the same mechanism which is used to create the stripped log from a normal log. How can I do this with kubejs? I believe the code should look something like this, but I can't get it to work:
Instantly Tame Tamable Entity?
their: Im trying to create a curio that allows taming entities on the first attempt. I tried this, is there another method to detect and tame entities?
Getting a users Rank using KubeJS for a custom command
Jamie: I was wondering how i would go about getting a users ftbrank for a kubeJS custom command to only run if they have a specific rank
Stone technology ultimate error
eXib0: Anyone help ? error only in server, single player works fine
How to Disable Certain items ?
Angel Cartel: I want to disable certain items in my pack. Some items are obtainable via craft, some - loot tables
adding armor
Aziraphale: Hello I'm looking for an example script for adding an armor set to the game does someone have an example on how to make armor in kubejs didn't see a video and if I do make the item I don't know how to get the texture for when you wear it
Recipe translation
ะะฒะฐะฝ ะะผะธะด: I want to take all recipe of create smelting and add them to another mechanism(create: ratatouille furnace), and take the ability to Do this from normal fan. Is there short way to Do that?
what is addCreateRecipeHandler? i have kubejs create and it says it's not defined, is it required?
GeneSy: i can't find anything regarding it. i assume its from kubejs create but the mod description doesn't have it only the bot here seems to know anything about it
Adding Crop Drops
Swifty: How can I add an item to all full grown crops to drop at a percent chance?
multiple filters for recipe replacements?
willow: hi, im trying to add multiple filters to this function, it works and removes everything else but minecrafts glass bottle recipes, but when i try to put more than one filter, it just gets weird. how do i format/do this?
how do I make it so an enchant can go on a item that normaly doesnt allow that enchant
Octal: how do I do that ^^^
Detect if a conduit block is active
hexagonelle: Hi, I am making a script so that if the player right clicks an active conduit with a Heart of the Sea while in a Deep Ocean, it spawns an Elder Guardian.
Is it possible to give a custom block entity a loot table?
Habb: I made a simple custom block entity with a 9 by 3 inventory and was wondering if I could give it a loot table?
Specify Apotheosis item in crushing recipe
omgimanerd: Apotheosis specifies some compat recipes like the following:
replace all items in custom/weird recipes for mods without addons
Kragnoth: Is there a replaceitem thing that works on all recipes if you don't have the addon? I'm looking at parsing all ae2 recipe types, and was just wondering if I'd be better of writing a python script to go through the data/ae2/recipes folder instead.
Possible to create a new block of an already-defined Block object from another mod?
Cephelo: There's a mod called Respawn Obelisks that replaces the respawn abilities of beds and respawn anchors, and it adds one for each vanilla dimension. I'd like to add more variants of the obelisk block - the only differences i'm aware of is the texture and what dimension they work in.
Alex Caves and Mekanism hazmat parity
Jane Watson: Is there a way to make these two hazmat sets protect against each others radiation? It's a little above my abilities but would be nice as I have both in a modpack I am working on.
how do i get all sapling in my modpack and excluding only a mod?
Aryxst: ```js
Playsound on right click with my item
M0l1bden: How to make script which plays sound when I right-clicking my item
Items/Blocks not show in JEI
แฆ ๐ก๐ช๐ฒ๐ญ๐ฎ๐ท ๐ข๐ฑ๐ธ๐ฐ๐พ๐ท แฆ: i create lead ore and lead deepslate ore and dont show in JEI
Handling a recipe schema key with a "pseudo-array": {0: element, count: 1}
9thCore: apologies for the word spaghetti but i dont know how else to explain it
Create TFMG creosote as fuel
Dae Blackheart: Create TFMG has Creosote that can be used as a fuel to power an engine. the issue is that it seems that it does not recognize other mods creosote. I wish to remedy this and add compatibility withing kjs. i have tried modifying the IE blast fernaces output to TFMG creosote but doesnt seem to work with event.replaceOutput and it seemed to not work. fitlered or un filtered
hello ฤฑm getting kube js failed to load correctly when ฤฑ start the game
cyber_pioneer: Message not found
How to remove recipes from Thermal Expansion machines
defineduser: I want to remove redstone furnace, I removed it recipe and hid it but REI still shows it
Creative Tab Editing
Luridum: According to the wiki you are able to modify and create creative tabs. Are you able to remove or hide tabs?
Make fluid behave like lava
Ash: How can i make the fluid deal damage and move slowly like lava?
weird arrow/projectile position from ProjectileImpactEvent
Toaster (@ when reply): basically, when i fire an arrow and it lands relatively near me, it's position in the event snaps to my exact location at eye level (about). Is this forge being jank or kube?
Recipe conversion
SamHammie: I want to take all of the furnace recipes that use specific items as fuel, then convert all of those into recipes able to be performed on the crafting table.
event.remove not working for some items
Dakota: I am trying to remove a recipe but it is not working. I tried to remove it by ID and by output to see if either worked but neither worked. The following code is in server_scripts and loads without errors or warnings:
Oregen with kubejs
แฆ ๐ก๐ช๐ฒ๐ญ๐ฎ๐ท ๐ข๐ฑ๐ธ๐ฐ๐พ๐ท แฆ: I saw that you can't use worldgen events to generate minerals but you can use kubejs to "create" datapacks for custom ore gen
NeoForge Attachments in KJS
Swedz: In NeoForge, there are attachments (see [here](https://docs.neoforged.net/docs/datastorage/attachments/) for docs on attachments). These can be accessed by calling `getData(AttachmentType)`. Is there a simple way to interact with these in KJS? I'd just load the class (like with `Java.loadClass(...)`) that has the attachment type variable saved and then reference that variable in the `getData(AttachmentType)` call, but I want to check if there's a "more correct" way of doing this.