Support Tickets
This page is still WIP!
Remove certain potion recipes?
SkyJoshua: is it possible to remove the recipe for mundane potions without removing the recipe of all the potions? probably using event.remove({output: 'minecraft:potion'}) but i don't know how i would pass the nbt tag of the mundane potion through
spawn particles for specific players only
Jaofumi: how can i spawn particles that only show for specific players
How to make a curious item render on head?
ItzByc (Ping on reply): I'm trying to make a plushie of my kubejs making be able to sit on my head and me able to unequip it.
What is causing this error?
Willio2000: im new to this and i am trying to make a custom command with 2 arguments
Make `var` function scoped
KonSola5: Currently in KubeJS, `var` is **block** scoped, which is not compliant with ECMAScript.
No kubejs output (of errors or loaded) but commands working
pawelik001: As said above, installed latest available kubejs, rhino and architectury api. using minecraft 1.20.1 with forge 47.4.0, but when clicking F3 + T, there is nothing happening, only reloading resource pack, no output from kubejs. /kubejs commands are working.
Changing the specific item used to tame an entity
charlierogersCretoxyrhina: I’m currently trying to streamline a private modpack I’m playing by removing duplicate features/mobs. Anyway, the mod bountiful critters adds a humpback whale, which is bred through the mod’s krill item. I prefer the Ben’s shark’s mod krill, and I want to make it so the whale is bred by the Ben’s shark’s krill. So, does anyone know how to change the item for this? I was told entityJS doesn’t help with that, apparently.
no friendly fire
Zenistoo: any way i can make it so mobs dont attack eachother for example a zombie with a crossbow accidentally hits another zombie i want it so they dont attack eachother anymore
How to change or add recipes for a series of Integrated Dynamics mods
ะกะฝะฐะนะฟTih18: The problem is that Integrated Dynamics uses some other system for recipes and has not yet figured out how to work with these
empty ingredient item id list
IceMaster1294: I have a very odd situation. When I’m in ServerEvents.recipes if I run ```console.log(Ingredient.of(`@alexsmobs`).itemIds)``` I get an empty array. Why is this?
How to make block like crafting table that would have special recipes
-Ghost-: Smth like so when you put Netherite and gold to normal crafting nothing happens but when you put gold and netherite to special crafting it gives you gilded netherite
itemstack script is not working
Wither: It gives "Item Stack Changes.js#3: Error in 'ItemEvents.modification': dev.latvian.mods.rhino.EvaluatorException: Java class "dev.latvian.mods.kubejs.item.ItemModificationKubeEvent$ItemModifications" has no public instance field or method named "maxStackSize"."
Using Item.of(<item>) for item with nbt then removing it's recipes not working
RQ: ``startup_scripts``
Make only op players able to break/place blocks
Tonitzu: I have this code that in theory should work but it doesn't.
LootJS removing all items that fit a regex from all tables
Catgirl in a Chally 2: i am using this code
MutableItem property .armorProtection not existing?
Mercury: I was trying to modify the armor that different items give, however during startup it says that this property does not exist. There is nothing in the wiki about it, so I was wondering if its supposed to happen or if there is a workaround.
Cancel Immersive Engineering multiblocks in select dimensions
Alator: Hello! I'm in the event rabbit hole more than I understand, so let me know if there is a better channel for this question than here:
Messed up food
Skemech or something: I have a script that makes basically all raw meat not worth eating, but how could I make them only have a chance to be hunger inducing?
How to display custom usernames/nicknames above players' head the way plugins can?
Leveloper: Hello! As the title states, I want to be able to render completely custom text above players' head *instead* of their username. This is because I have a custom nickname system that I would like to be used. Is this possible? If so, how? I am willing to use addon mods if necessary.
Running a script for all mobs from a specific mod.
ren2090|๐ฎ Guild of Dark Magic: Basically, I want to cancel all mutant mobs spawn events that spawn above y=0 in the overworld. Is there a way to target everything from the mod, or do I need to target them each individually?
Make entities cast spells without modifying normal behavior
Estatrix: As the title said, is there a way to add a chance to cast a spell under certain conditions? The exaple on EntityJS isn0t exactly what I want.
Ritual Summonning Mod Help
Cloud: How can i make it so when a summoning recipe is completed, the altar runs a specific command ?
How can I make piglins attack other entities?
Andrezinh0: I tried using EntityJSEvents.addGoals, but I realized it doesn’t work because piglins use buildBrain.
mob loot removal
Algrate: I have a modpack and I'm trying to remove a modded item that drops from a ravager, can someone help me? Thanks
Replace Vanilla Crafting (Shaped & Shapeless) with mechanical crafting
McZimo: Code:
Immersive Engineering blast furnace
harrison: I'm trying to make an Immersive Engineering Blast Furnace recipe that takes a custom cobblestone bucket (cobinc_addons:wooden_bucket_of_cobblestone) and outputs a lava-filled wooden bucket (woodenbucket:wooden_bucket) with 1000 mB of lava.
1.21.1 - Fluid thickTexture() dosent work
Zerma: I worke on the game vertion 1.21.1
Can't Use Potion in MoreJS Custom Brewing?
Vansten: Using MoreJS, the below example works when using a place holder item (in this case emerald)
is there a way to make mobs immunity/resistance to certain types of damage?
Adolla: i have a mod named "wither reincarnated," which amplifies the wither by a lot but it gets easily wrecked by Scorched Guns 2 weapons. it has a 2nd phase that makes it immune to bows, but not guns. i would like to know how so that guns arent as op against bosses
Failing to set delta motion on mobs
ENNWAY: i'm attempting to give shovels the property of knocking enemies in mid-air and stunning them. stunning functionality is 100% complete and works as intended but for one reason or another kubejs doesn't seem to like entity.addDeltaMotion very much.
Is it possible to add a tag to every item at once?
PotatoBro: I see the event.removeAll but is there an alternative like event.addAll because this mod im using was made really badly and I need to get it on a whitelist, but I want every item to be in the storage.
Registering a potion
Dwayne: in `root/kubejs/startup_scripts/cure_potion.js`
Xycraft Extractor Recipe
Raven: Please can anyone help me maybe step by step how I can achieve making a xycraft extractor output recipe…
Worldgen modded block removal
Algrate: hello i have a modpack and there is a block that generates in rivers and in caves "immersive_weathering:silt". im trying to prevent it from generating. I've tried many ways i could find on the internet but couldnt make it to work. can someone help me? thanks
How many ticks since entity killed?
Artemis8bit: I want to track how long it has been since a player has killed an entity (say 100 in game days) so I can make it into a custom FTB Quest.
Issue in adding custom recipe for an item with specific nbt
Legend/Lele: Trying to add a custom recipe in atm10 tts for a modularbee item.
I haven't used KubeJS in a while and forgot what I'm doing wrong
Thijmen: ```ServerEvents.recipes(event => {
fluid registry issue
๐ฃ๐ฟ๐ถ๐ฐ๐ธ๐น๐ฒ๐ป: why is this error happening?
Item right click into chest-like GUI with complex cycle mechanic
hey: I am trying to create a clash royale battle deck GUI system for minecraft java 1.20.1 using kubejs.
How to do startup scripts?
kuyataki: Im still learning java with like 2 weeks worth of knowledge. I am trying to make a startup script that can run a "/reload" command when you launch the game. I need this because im running into a problem where im trying to join a minecraft server with my modpack and its telling me that some items cant path to their nbt tags. Something to do with preloading the creative tab. "/reload" Fixes this problem hence why I need help with a startup script for it.
get burnTime in startup event [ItemModificationKubeEvent]?
PWaksman: Is there anyway to get/check for the burning time at the startup event?
removing a item drop when broken using silk touch with lootjs
Hayes: or separate loot drops when using silk touch also image unrelated
Automatically generating EMI world interaction recipes from RecipeManager?
selene ๐: so, i've been trying to automatically generate EMI [world interaction recipes](<https://github.com/emilyploszaj/emi/wiki/Adding-Recipes#adding-world-interaction-recipes>) to replace create's manual item application recipes (which i can then hide with [recipe filters](<https://github.com/emilyploszaj/emi/wiki/Recipe-Filters>)). i *was* able to get it working using a more manual approach, but i *really* want the process to be fully automatic, pulling all the data straight from the RecipeManager.
create (mod) output having a tfc food trait
2002perc: im trying to make a create compacting recipe with the result having a tfc food trait
Is there a way to record sound?
Brainhole: Is there a way to record sound like recorder of the random things mod?
Is there a way to add modded mobs naturally despawn like hostile mobs
Aary: I want to make a mob from a different mod to despawn when players get far away like a vanilla hostile mob
custom fuel block
Remag: hey so im trying to make a block work as a furnace fuel but i cant seem to get it to work, im sure its something simple but theres hardly anything on the wiki.
Help with block proximity script with sound
FKDeth: Hi, I'd like to create a script that plays a custom sound from a texture pack or Kube.js assets when I approach certain blocks (which can be added or removed). My idea is to make a Geiger counter sound when I approach "radioactive" material, but I can't get it to work, and ChatGPT isn't very helpful.
Hide SpartanWeaponry tooltip properties
Estatrix: Is it possible to hide the Traits/Material tooltip from all items using Kube? They take too much space but I don't want to directly disable them
modify default repairIngredient
mr_ron: is there a way (provided or other) anyone knows of to have iron tools, weapons an armour be repaired with iron nuggets instead of iron_ingots?
villager trading events
Yeremyahu ๐บ๐ฒ-->๐ซ๐ท: is there a way to cancel a villager/wandering trader trade? I can't find an event for it and I'm wondering if I'm missing something.
How to create custom lvls to villagers
NanChik: I mean vanilla mc has 5. And I would like to have a few lvls more
Stages Detection
PenguinWhopper: Trying to detect a stage add event as a trigger. I have a quest set up to add a stage as a reward (KubeJS stage system) and I want to detect this stage being added to then trigger an AStages to add its own stage. I'm not sure whether there is built in support for detecting these events or if FTB Quests or FTB XMod Compat has methods for this but I can't seem to figure out a solution.
Remove or tweak ore generation?
aan: Is it possible to stop specific ores from generating or reduce the frequency of certain veins on 1.21.1?
Any way to copy tags and creative tabs?
monyarm: I'm using createCustom to copy the block properties a vanilla block for my variant block. Great so far, but I'd like to also copy all the tags and creative tabs too.
Cancel Item pickup or placing it inside inventory
GreenApple: how do i prevent an item from getting in my inventory if i have a specific item in my inventory for example, if i have a backpack in my inventory i cant get another backpack on my inventory.
output redstone
Vexฬธฬฟอxen: How to make a block that outputs redstone power. I have gave it the 'power' block property. How do i set that value?
PlayerEvents.inventoryOpened doesn't trigger at all
yellowcake3d: So, I'm trying to add an advancement that would trigger when player opens inventory using advancementjs, but I encountered a weird problem where PlayerEvents.inventoryOpened just doesn't trigger when player opens inventory
Block Properties missing “facing” property?
IceMaster1294: Hi! I’m using AStages (but this is not an AStages problem) and I’m trying to procedurally apply a function (restriction) to a bunch of blocks via a directional block property when it exists. However, I get the error of “directionproperty{…} does not exist in Block{oak_log}” - which is odd, because anything without the property should have been automatically filtered out already.
RestoreChest
ะะปะพัะฝะฐัะฝะฐะผะธ: Hello everyone, I just recently started using kudejs and I can't figure out how or through which command I need to auto-top up my chest. type if there is no item in it, it starts a cycle. I tried using if + function restoreChest and 200 ticks, but it does not react.
Hiding items in JEI with a tag
Estatrix: I created a script to blacklist items by using a tag
How can i add a hover tooltip to a custom jei category recipe? (Kubejs Additions)
ION: Basically i wish to do the same thing as furnaces' recipes, displaying time on a tooltip when hovering over a certain area of the recipe. i did see a .setTooltipHandler() method with probejs, and this part on jei's wiki:
"Relocating" advancements
Ekazuya: Is it possible to remove advancement from boss "A" and make it so boss "B" grants it instead?
Best way to implement client-side glowing?
Atlas: I need a system where if a person is on your team (uses scoreboard teams) it should give them a glowing effect that only the people on your team can see, I haven't found a good way to implement this. Alternatively, the player should glow when they are shot (TacZ) and then have the glowing disappear after a few seconds (must still be only seen by teammates).
How do I include an item with NBT tags in the recipe output?
subaccant12345: ``` event.custom({
Changing steam engine heat sources
Geko: How do I change what heat sources the Create steam engine uses? There's a KubeJS addon specifically for Create so there's gotta be a way to change it.
tried to give all passive farm animals no knockback cause fun but doesnt work
Gameerer: ```const passiveAnimals = [
Does geckolib support per-face UV?
J.F. Lifesteal: Im making a model for an animated multiblock, and it has a lot of per-face UVs. Does geckolib support it?
Is feature handling planned for Kube in 1.21?
Plazzy: Using datapacks to alter world features can be tedious to manage, as high amounts of feature removal requires a lot of file tweaks. When you're doing a mass-adjustment of features, this becomes time-consuming. Versions like 1.19.2 were able to axe features within Kube itself.
Summoning a mob with Apotheosis armor
doomsdayguy678: I am working on creating a custom boss that requires a mob to wear custom armor. This armor has a long list of NBT data and I was wondering if it was at all possible to do this with KubeJS or if anyone could point me in the correct direction to do such action. I added the entire script I am attempting use.
Looking for ways to suffocate or give air supply to players
sans.: I am looking to make a script to replace certain aspects of the mod thin air. While it's a great mod, I would appreciate it if i could make more changes or easily make the system more complex. How would i manipulate the player's air supply?
how to give coordinates to function
sam8poop: haj.server.runCommandSilent('function mian:idkhaj')
need help with using the Or Filter in FTB quests
Woly: i want to make a quest where it can accept any kind of color variant of the dragon scale helmet
Item Model Help
Adolla: the custom item i made would float over conveyer belts and noclip through the ground when its dropped
Renaming fluids via Client Events not working.
โฆ aqt โฆ: Im trying to rename some fluids from Farmers Respite, but I cant get the changes to apply in game. Im using the lang key for the fluid from the mod, but the changes im making arnt applying. Im using the following code.
player.jumping returns false
twitchy: Anyone got a clue why this would be wrong? I tested the powers does return true, but logging the output of player.jumping is false no matter what I do.
Cobblemon kubejs support?
ElderGuardian: My question is simple, does kubeJS support cobblemon? Im asking this as i want to make a ranking system that checks a players amount of caught pokemon and giving rank upgrades to allow them using more items as they progress... but im not sure if kubeJS is able to access playerdata, let alone specific data where it states how many pokemon were caught (and unique ones if possible)
create crafters not liking Vic's point blank
silent_hunter_7286: I'm having trouble with getting the mechanical crafters to replace the weapons printer so it can be more create focused.
Preventing to let mob spawn too close to eachother
SBERLA: So basically im using the mod **incontrol** to add spawn pool to certain biomes.
Help with recipe change
Renegade: Hey guys, I don't know what I'm doing wrong. Kube.js isn't showing me an error message, but the recipe isn't being changed either.
KubeJS registered blocks not rendering in JEI for many mods — any solutions?
FutureLin: The blocks registered by KubeJS in my modpack often fail to render properly in JEI.
Add Custom Attribute to items
Yasashiki: Hello, I would like to add custom attributes (ex: irons_spellbooks:evocation_spell_power) to items ( such as irons_spellbooks:artificer_cane) in 1.21.1 which was doable in 1.20.1 by using ItemAttributes.modify from <@1185904263583510561> but now I can't seem to make it work even with ItemEvents.modification.
How get ingredients and output from exist recipes?
ChiyahaRe: I want to automate occult summoning recipes.
Ring curios item with durability that boosts a block tick speed
Lemmy: Idea is explained in off-topic but I'll explain again.
Allow enchanting table for books only?
PlantBeef: Hey! Would it be possible to make enchanting tables only allow you to enchant books, and not other items such as swords, pickaxes, etc?๐
beta-like crossbows
estranged: Im tryna make a script that changes the nbt of the crossbow to be always charged so its kinda like the rapid fire bows from alpha and beta versions of the game while also having a small cooldown like an enderpearl. The problem is that im not a scripting expert at all infact i don't know what im doing... Where should i start? can i even manage this by myself?
what's wrong with my sequence assembly code
Adolla: ServerEvents.recipes(event => {
When I place a custom block down, it executes a command.
goldeyegold: I wanted to execute /neoblock force setblock ~ ~ ~ at the location of where I placed the block.
Disable falling block drops (torch, shovel glitch, etc.)
Treeways: Hi! I was wondering if it was possible to disable dropped blocks from a torch or from this shovel glitch with either KubeJS or a loot table. (I'm not asking for LootJS support here)
Change Durability of Specific Item On Craft
binaryclock03: Hey Im looking to change the durability of a crafted item based on the players level. I want to increase the max durability the more levels the player has. Im just looking to know how to do the max durability modification.
Anonymous