Support Tickets
This page is still WIP!
Removing and adding recipes, for specific players only.
Redj: I'm trying to use FTB Quests to create a specific path for unlocking recipes in a modpack. However, I want this to apply only to individual players, not to the entire server or the entire world.
"Item with ID minecraft: does not exist!" error
SageofTurtles (ping me): Hi everyone! This is probably me making a stupid mistake somewhere, but I've been trying for like an hour and can't figure it out. I've got these two scripts in my folder, but when I try to load a world it gives me this error for items in `COYCATS_FUNCTIONAL` with a tag in the `base` value:
Hiding items with components in EMI
Plazzy: I'm trying to hide all non-empty Creative Fluid Tanks from EMI my modpack, but I haven't come up with *any* working solutions. Does anyone have knowledge on this topic that they are willing to share?
mimic create train tracks with custom tracks
Lucky56: I want to mimic the Create: Steam 'n' Rails Monorail on a differently modeled block,
Remove tooltip that appears when holding shift?
YoyoXpo903: I know how to remove tooltips, but how do I do to remove the tooltip that appears when holding shift? (im holding shift in the screenshot)
Trying to nerf food when it enters players inventory
Wenelan: I used someone's code to nerf it when player types "tt" in chat as reference, it gets all the needed values but doesnt set them and I have no idea how to add a tag to nerfed food to stop it from fractal nerfing
Making Commandblocks mineable
Black•Phönix: For some reason some structures from a mod in my world generate with a commandblock on them that didnt destroy itself after the structure was finished creating. I want to make the commandblock breakable (with a fist), but it shouldnt drop anything when broken. I tried the following scripts found on the wiki and another post here, but they didnt work.
Custom Effect that reduces Max Health
Estatrix: Been trying to make a custom effect that modifies max health of an entity but using .modifyAttribute makes me have to relog to effects to take place. This is my current attempt but nada
Remove Damage Immunity
dripdood: hello, I'd like to know if removing immunity to certain damage sources from mobs is possible with this mod because there's so much mobs in my pack that have hardcoded immunities to arrows
how do i make mobs spawn in gangs?
β© Hiruka β© - γ²γγ DEV: I wanna make skeletons and zombies on spawns 30% of the times, and when they spawn they spawn in a gang of 5 to 8 of them randomly between skeletons and zombies
KubeJS Create: Can't remove bucket filling recipe
not: I'm unable to remove a spout filling recipe that seems to be automatically generated by create for all fluids. I tried removing it by its recipe ID and its output:
how can I make a block's item have a 2d texture in the inventory separate from the block it places?
minari: ive got this code so far, and it doesnt seem to error, but it simply doesnt work. the block item texture is just the block itself
Is there a way to change the default worldtype? Or remove the vanilla world types at least?
R8: Like for ex how would i make superflat the default worldtype? Or one added by a mod
Hide items that arent unlocked on the gamestage
Bode: I was wondering if there is a way that i can hide recipes that the person cant craft because of a custom gamestage, like for example: i create a gamestage for the mod create and i want that people who doesnt have this gamestage cant see creates itens on REI and when they unlock it REIs UI refreshes and the recipes would be there
Datapack Issue upon loading an existing world
MatsuKari: i'm getting this error for quite a long time now, for kubejs 1.21.1 NeoForge
Define Recipe Groups & Categories using KubeJS?
zharok_01: In Vanilla recipe format there's a way to define recipe's "category" (in the Recipe Book) and a "group" (for them to literally be grouped in the Recipe Book):
Better Than Wolves Squid
kimaris: I'm wondering if there's a way to make squids behave like in BTW using EntityJS (Forge 1.20.1).
modded Item (create brass ingot) ID not being recognized in armor material repairIngredient method
Ging: This is probably a really simple fix, but I can't find anything on the wiki or the support forum about this exact issue. I'm trying to reference a modded item, `'create:brass_ingot'`, but it doesn't recognize the item id and crashes on launch. I looked at the create wiki for the item id list to make sure it wasnt a typo or anything, but it just doesn't seem to work. The error on launch is included in the screenshot.
How can I add more armor to an entity with EntityJS?
Creepy_Forest: managed to add more armor bars to it, but it still has the same amount of armor as before
How Do I properly fix missing item/block textures?
ChessPiece23: Basically, I've spent at *least* ten hours trying to add the missing item textures for all twilight forest doors, and the block textures for the transwood door. I tried doing it through kubejs but it just made a new item in JEI instead of adding the texture to the already existing item. I also tried making my own resource pack, but that did nothing (yes i had a mcmeta file).
Is there any way to remove recipes that have x item in y mod?
ΡΠΎΡΠ½ΠΎΠ±ΠΈΠ»Ρπ²: ```ServerEvents.recipes(event => {
Pyrium Staff BaseTier
eba: for 1.21.1 neoforge KubeJS ISS, is there a basetier for the pyrium staff? like:
(Create) How to make a recipe support .heated() but *not* .superheated()?
Mushroom: I want to make a recipe that makes gtceu:salt_water (from Gregtech Modern) out of minecraft:water in the mixer, and I want two different recipes: A heated one that does 50mb water to 5mb saltwater, and a superheated one that does 100mb water to 10mb saltwater (effectively double speed). I added both recipes but in testing the .heated() recipe takes priority over the .superheated() recipe.
Is it possible to continuously update an item's tint?
Teus: I am aware of setting the color based on NBT flags, but is it possible an item to have a different color depending on the dimension and time? Thanks.
Copying files into new worlds
DiscoTech doesn't understand JS: I'm using the CustomNPCs mod as part of a mod pack I'm putting together, and I've run into a roadblock. The mod saves most of its resources locally in the world save folder, but I want players to be able to create new worlds and have those things included. They're mostly .json files, but it also has its own scripting system which uses .js files.
Player animation plugin for NeoForge 1.21.1?
System404: So, I'm trying to make a scythe weapon for my friend in the modpack I'm making. However, traditionally, scythes are two-handed. So, just the normal player hit and hold animation will not work. And while I am aware of AnimationJS, it is not listed on CurseForge or Modrinth that it supports 1.21.1 - latest version is 1.20.1. Do you know of any player animation addon for 1.21.1 on NeoForge?
Fixing tag recipe
Miko_boi: So someone tried to automate these recipes with strings and tags but it doesn’t seem to work (outputs exist but inputs are all blank). Does anyone have an idea why this is? Haven’t played around with Java Script enough to figure it out myself.
item interaction not working
naik: trying to make it so right clicking this item (kubejs:saltbucket) give you a randomized amount of salt. right now it does replace the bucket but doesnt do the rest of what i want it to do. probably some syntax error i did or whatever
Disabling equipping an item to an armor slot
wioll: Is it possible to disable a specific slot for an item? I'm currently trying to make an item exclusive to curio slots without being able to be used as armor. I'm trying out KubeJS Curios right now, but I've only managed to make the opposite work with it.
Custom Ingredient Action Stopped Working
Doobig: I can't seem to work out why a custom ingredient action appears to no longer be firing at all. It appears to be called so should be being registered, but I see no logs indicating anything went awry, and when I use a recipe that should call it, no call is made.
Changing recipe for a specific NBT tagged item
U_nderscor_e: I'm trying to add a mixing recipe (Create JS) for Moa Fodder from the Deep Aether mod, but since the item uses tags to differentiate the types (like potions) I'm running into this error
Hunger and Saturation
cjaawesome: Would it be possible to disable hunger damage and saturation healing on the playertick or entitytick
Hold item interact
EMERALD: Is there some type of item interact, when player hold this item and while this, interact happens
weird error
Fusl: im hosting it on my pc and trying to join via localhost for test purp yet this pops up when im trying to join
My Block model doesn't get loaded
DummerSchuh: I want to make a block with kubejs and the model is 3x3x2 Ig big which ISN'T the problem because what I tested was that 1x1x1 also works not using the exact same way...
How to create your own block that functions as a chest?
Shaen: I want to create a block through registration that will have the functions of a chest, as an alternative, I create it, add an inventory to it, but when opened, the inventory is completely broken and has no functionality`
Custom Ammo Box Recipes for TaCZ 1.21.1 Unofficial Port
Tim "Baby Legs" O'houlihan: First and foremost I'm a certifiable dumbass
I need help removing mob drops from lightmans currency
Big Pickaxe: I currently am trying to make a medieval rpg server and want a balanced economy however the lightmans mod adds mob drops that give way too many good coins early on heavily limiting my ability to balance the economy and I cant seem to figure out how to get the mobs to stop dropping it. I dont know if it will help at all but the mobs only drop this currency when killed by a player, not from something natural like sunlight.
A couple of questions.
System404: Yeah, I know the new docs site is in development, but why didn't the original docs site ever get finished first? And, uh, where can I find actual documentation for 80% of the events in KubeJS, considering 80% of the docs haven't been written yet? I'd kill for some documentation, even community-managed ones...
Hallo, very new.
Sequire: Just want to know how I can permanently add a tag to a liquid. I really only want to add the #c:xp_fluid tag to create_enchantment_industry:experience
NeoOrigins Question. Select a Race, then get teleported into corresponding Dimension
GamerPal: I need a script (if possible), that makes it, so people get teleported into a Dimension, when they choose a origin.
Block A change to block b after some ticks
Mellowitsch: how i write a kubejs script that change every block in the world thats loaded from block A to block B after 100 ticks.
Crash on startup.
CaptConrad: I'm not sure if this is a KubeJS issue, but I'm posting about it here just in case.
adding potions into loot tables
recklss: hello I am trying to add night vision potions to supplementary urns underground and I'm having a bit of trouble. I know know how to do basic add entrys for loot tables but not when it involves nbt data
JEIEvents.removeCategories refuses to work
oweM riS: ```JEIEvents.removeCategories(event => {
entity on a block
Π΄Π·ΡΡΡΠΈΠΊ: is it possible to check whether an entity is on a block so that an action can then be performed on that entity? i want to do this using randomTick in the block's registration, but if there's another way, i'm fine with that
Heated and Superheated Create recipes show in JEI but fail to actually work in the world? (CreateJS)
minari: Title. I get no KubeJS errors and the logs are unhelpful - everything seems like it should be working fine, my recipes properly show in JEI, everything, but when actually attempting to craft this, the mixer just does not activate. RPM doesnt matter, the Blaze Burner is properly fueled, everything. All my custom recipes that involve Heat seem to have this problem.
Can you make lootr chests give better loot depending on how far the player is from their home?
Spookysquid19: I remember seeing this done in a video, but I can't for the life of me remember if it was a mod or KubeJS, so I figured I'd ask here.
I have a small problem
KAVIK: I was creating custom spellbook and this happened. i don't know what is this and how to fix that
modify jade overlay based on if an item is in hotbar or curios slot.
Squiggly-panda: Asking this because I thought it would be a good idea since I have spyglass tweaks installed, but wanted the hud to display if the soyglass was there and not reuqire you to zoom in to check what it is.
Modify Items Display Name
D1scoball: Is there any way to modify an items display name?
Effect Time
ππΈπΏπͺ: I'm trying to get the remaining time for an effect, how would one do that?
Scripts for farming
Yohoho: How feasible is it to write farming and livestock farming scripts using Kubejs? Want to slow down crop growth (not by a random tick, but by setting a specific timer), cooldown milking, slow down the growth of babies, and cooldown their breeding? What Kubejs add-ons can help me with this?
I'm trying to add quantity to my loots, but it's not working properly
β© Hiruka β© - γ²γγ DEV: is there a better way for me to add quantity of the loot? I'm using LootJS
roll
Ilayst11.999999999999: I'm trying to find how to make roll recipes from crafts and additions and I have no idea
How can I learn to create event script
Chaitama: How can I learn to create a Kube.js event script for Palladium?.
How can I change an entity's hitbox and model size using EntityJS?
DaGamer5T3w: I'm trying to make spiders small and harmless so they'd be more like props for a map, and I'm currently struggling with that.
Prevent Entity getting stuck on boat like block
D1scoball: The mod Valhelsia structure adds chairs, stools etc like any other furnatire mod. I was wondering if there is a way to prevent Villagers from getting stuck sitting on them in the same way they do when they walk over a boat?
Kubejs client side crashes on right click on server with no Kubejs
marblok: I have a 1.21.1 client with Kubejs but when i join a server that does not have Kube js installed and right-click, my game crashes bc of a packet, "first-right-click" or something along those lines, that Kubejs sends
Some of the effect attributes don't work
π½ππ
ππ (ΠΠ°Π΄Ρ): I created my own effect, but when it's triggered, some attributes don't work. For example, movement speed actually decreases, but nothing happens to max HP. Why?
BlockEvent.rightClicked question with Create
GrapeLeaf: Im making an item with Aeronautics that automatically assembles blocks using the sable assemble connected command, the purpose is automation of assembly
There are things i wanna know since wiki is incomplete
β© Hiruka β© - γ²γγ DEV: How do i make a mob despawn in EntityEvents.spawned?
tinkers' construct melting not working properly
Nova: I've been trying to get a tinker's construct resipy to work,
Remove tooltip line by text
Nils: I'm trying to add a "Dyeable" tooltip to all items in the `minecraft:dyeable` tag, like Bountiful Fares does with it's blocks/items. Since Bountiful Fares already adds this tooltip, I want to either skip it or remove it. I don't know if there is a way to skip it, but removing it with `tooltip.removeText("Dyeable")` doesn't seem to work. I tried it with the translation tag as well, but no luck there either
How could I make a compass that points to a specific structure?
Spookysquid19: I want my modpack to have a compass like the one added in newer versions of Deeper and Darker or the soul compass in Iron's Spellbooks, where it points in the direction of a structure. I'm not sure how to make something like that, though.
Is it possible to remove specific villager trades
wan6845: (reposted because my previous post got locked because I forgot modloader tag)
Custom Recipe condition
The Spy: Ok this one might be a bit of an ask. I have a recipe that uses a TFC ingot as an input. I was wondering if i was possible to only have the recipe event fire and start the recipe if the ingot was Above a certain Temperature
mob effect to get regen and more hp on damage
π π°π³πͺπͺπ€π©πͺ: Message not found
Unique item
only my: I want make a item that if lost with a comand it destroy the item and give a other one to the player.is possible?
Why does it says it is missing an extra id
SalviniaChina: here is my kubejs setup for the animal pens mod
How do I get a list of ResourceLocations that match a certain regex?
mo_mo (ping me): I want to get a list of all biome modifiers from a certain mod (nomansland), so i suppose the regex would be `/nomansland:neoforge\/biome_modifier\/.*/`
repair recipe shows up on jei, but does not work in crafting table
sirloinsteak_11: hello, i have a repair recipe system taken from deceased craft where tools and armor are repairable by their respective ingots. the recipes seem to be added successfully as they show up in jei, however putting them in the crafting menu doesnt work
KubeJS, when paired with DH, Iris, and Sodium, causes the fog of distant chunks to be black.
Pyrolyzed: Heyo, so when I use DH, Iris, and Sodium, it's fine, but when I add KubeJS (the latest build or 348), it breaks the distant fog when shaders are disabled.
is there any way to run an event when an entity is unloaded
asof: i want to ensure only one entity exists for each entry at a time, so doing something when an entity is about to be unloaded (e.g. remove it, add to persistent data to use later) would be very useful.
proper loot_table inclusion/exclusion
mr_ron: how are we supposed to be adding or removing items so the show or don't show as being part of a loot_table or removed from it?..
entityjs walk to random location without leaving range of position
asof: ```js
Updating block's entitydata
U.N. Jiang was Them?: I wanna update a block's entitydata to track items stored inside it as a number. I can't really find a solid answer on here about how to add a simple +1 to the initial blockdata after a blockevent.rightclick. I'm completely in the dark on this so any help would suffice
Custom Aether Gloves for 1.21
NASisawesome10: I'm trying to get custom gloves to work from the Aether mod, but the model texture does not render.
Healing an entity on spawn
MrNubCake: So the last part of my code below "Biomancy:size 2" im trying to heal the entity, as it still keeps its base health before the biomancy size works.
Summoning a Block Display, tilde coordinates not working properly.
legobrick22: This is part of a script that is supposed to summon a block display copy of a raycasted block. However, it spawns it offset 0.5 blocks in every direction, no matter what modifiers I add to the tildes. Is there any way to solve this?
Detecting and removing broken recipes
PseudoSquared: I'm playing with Pam's HC 2, the updated version where the content is spread out across 4 mods, and I want to remove all the recipes that include any items from the Fruit Trees mod since they're missing and I just don't want to play with the trees. How can I detect and remove the recipes with these missing items?
is there a way to check if an item exists?
colby (pls ping): im using scripts to make multiblock versions of existing machines, and i learned one of those recipes references an item that doesnt exist.
Is it possible to manipulate soundtrack using KubeJS?
Sacri Pan (ping me please): I'd love to play hand selected custom music for each biomes, or fighting each boss, etc...
Removing recipes with missing item tags
PseudoSquared: I am trying to remove all the recipes from Pam's Harvest Craft 2 Food Extended that involves anything from the Trees mod, but cannot find an effective way to do so. I figure it would be easy enough to see what recipes have missing item tags and remove them, but I just don't know how to do that
Forcing modded enchantments to be incompatible with eachother
Cat: You read the title, I'm making enchancement enchantments incompatible with eachother on my silly little configed modpack and I needs helps
Quick little AnimationJs question
Kaleido: So im tryna make a guard/block system with kubejs where the player has a posture system and can guard physical attacks for as much posture they have. I made an animation with geckolib, and im very confused to as to how i can have the kubejs file play animations. I just want the animation to play somehow through kubejs and im kinda lost. Anyone know how?
Swap item drop with another item, WITHOUT use of loot tables
Atom Sorcerer: This is going to be a very specific problem.
How do i make mobs dual wield or spawn with a shield?
β© Hiruka β© - γ²γγ DEV: I wanna that mobs spawns with two daggers when they spawns with a dagger from spartan weaponry, or if they spawn with a sword they spawn with a shield as well
Repeat item in creative inventory
ikea_shark: Is there a way to put repeat entries of an item in a custom creative inventory tab, for example to act as a spacer to keep different wood types on different lines as the stained glass does in this image? Ideally I'd want to reuse the same item to keep it neat (ie all light gray stained glass).
Custom FTB + KubeJS quest
GMO Bee: Hello, im quite new to he kubeJS and was going to use to for custom quest in FTB quests, To be more precise I want to make a kill entity quest, which will track entity type ofcourse, but also must check what type of weapon player uses + distance the kill wa made, as this quest is done for firearms.
Somewhat custom recipe type
EEX5: Basically I’m trying to make a custom event where if the player has a certain item in their main hand and another item in their off hand and then right clicks, the items used get deleted and the player is given a resultant item, probably with a sound and particle effect. Im quite unsure where to start so if someone could help put me in the right direction that would be nice.
How can i use kubejs with the create addon Dragon's Plus for bulk stuff
CommandJohn: I want to make a recipe with the bulk ending from create dragon's plus addon but i dont see any documentation about it in the wiki
KubeJS specific accessor for PlayerEvents.chat?
Billy Batts: In KubeJS 2101.7.2 for NeoForge 1.21.1, what's the cleanest way from a PlayerEvents.chat handler to read:
Kubejs error only on first load of server script
the_walk.: Very Weird Issue, On initial load into a world, Kubejs throws this error ```[18:31:13] [ERROR] ! server_scripts:heatedrecipes.js#6: Failed to create a 'create:pressing' recipe from args [kubejs:tin_plate, net.minecraft.world.item.crafting.Ingredient@92c53179]: Unable to set 'ingredients: either<create:sized_fluid_ingredient, ingredient>[]' to 'net.minecraft.world.item.crafting.Ingredient@92c53179' as 'either<create:sized_fluid_ingredient, ingredient>[]'! - Failed to read ``` but then, after second reload, no errors are found and the recipes are correctly loaded into game, heres the server script, is this a priority issue? or something else. ```js