Support Tickets
This page is still WIP!
Using items with specific NBT in a crafting recipe.
Amy: I want to change the crafting recipes of Gregtech tools to require Tinker's Construct tool parts. But the issue is that the TC tool parts are driven by NBT. For example all pick heads have the same id of `tconstruct:pick_head` and the material they're made of is determined by the NBT data.
effect script doesnt do more than 6 seconds
Purphect: So im making a script for a palladium ability, but for whatever reason it wont apply the effect for more than 6 seconds max
wood type for Sophisticated Storage limited barrels?
Hollyleaf: Trying to add custom crafting recipes for limited barrels and I'm not sure how to actually change what type of wood it is, right now it just defaults to acacia
Custom waystone runes not showing runes overlay
Frosty: I have managed to make a functioning waystone variant using one of the example scripts, and got the textures and models working except the runes.
Return statement not stopping command execution
MasterNinad: > .executes(ctx => {
how to make sword in main hand take durability damage after mining grass
silksong gaming: Im trying to learn if this is possible and how you would do this
possible to create an item that stops rendering of something?
kirb: theres a mod that adds wolf armor for 1.20 but it clashes with respacks that add custom entity models (the wolf armor doesnt fit wolves with models different than the vanilla one, visually bad) so could i create an item that when applied to a wolf with armor it unrenders the armor or it switches the armor texture to another one (empty)?
Unknown Error
Shugabrush: What is this error and how do I figure out exactly what recipe is causing it?
Armor with a custom model
Gamerhedgehog64: There isn't much documentation for handling models and I'm starting to wonder if it's even possible. I've attached the model & latest.log here's my script thus far:
Error message when trying to connect to a server
Anonymous: This error is coming up when I try to connect to a server on an older version. I've tried to match the version with that of my friend but it's still coming up this error.
How to make chunk claiming command?
Yamie: I want to make a command to claim chunks to a specific settlement / city.
Changing Jade's mod display name for a specific block
DariusZeBaguette (ping me): Basically, I have a mod that adds "Infected diamonds" which is a block that tries to mimick a vanilla diamond ore in the same way infested stone in Vanilla Minecraft does. However, when looking at the block, the block tooltip from Jade totally breaks the mystery by directly showing the name of the mod instead of Minecraft, thus ruining the effect. So, is there a way in Forge 1.20.1 to change in Jade a specific item's display mod name?
music plays when attacking or near a boss
LgndTheDredgen: I saw an example that does this pretty well but it does have some issues I am not sure how or if they can be fixed
How to override saplings?
ja80991: Ive seen in one modpack that you could just make a sapling_overrides folder in the data/kubejs folder, but that doesn't seem to work for me
recipe type not in recipe folder
EntuzjastaPKP: What do I do if I want to add a custom json recipe for a mod, where that recipe type is not in 'recipe' folder?
Mob hp, attack, potion effects immune etc.
BedbI_C_BaIIIkoi: Hello, is there a way to set more hp, attack and potion effects immune to any mob?
natural generated block
Ryzen5_rx580: is it possible to check if block is naturally generated or placed by player?
Theoretical datapack support
THKB: I've been thinking about how the only reason i don't use kubejs is it's difficult to redistribute nature. Standard datapacks can be uploaded to modrinth/curseforge by themselves, but it wouldn't be possible to do the same for a kubejs project without making a modpack first, which is a much taller task, at least in my experience.
Tinker's Construct Items not being able to be hidden with EMI
Nerx: every other one in this list works, but not a single one of the tinker's items mentioned get hidden
Bedrock Custom Blocks
Chronun: Ive become aware that this mod allows you to add in custom blocks. What about blocks with custom geometry and properties like bedrock edition has? Is it possible to manually port them with this?
Trying to add a missing tag to a fluid but it won't apply
Bladereaper: Hi, was just trying to fix a modded fluid the liquid in question doesn't seem to have the 'forge:petrolium' tag despite the bucket version having it but my changes don't seem to apply?
what is a focus item? + how I create a custom projectile to the spell? + how do I apply a texture?
Diju: Message not found
How to detect a nearby Tamed Wolf to grant a buff to yourself?
LgndTheDredgen: I am working on a script that should grant you a buff if you have a tamed wolf nearby but I can't figure out how to detect the mob type
Custom Arrow that summons lightning
Pafeu: I'm a bit lost on how to summon entities here
rhino error
SrNadien™: Could not find method api() for arguments [dev.latvian.modsπ¦2101.2.7-build.81, build_bgimw0tl93wd5h9qwgxcbkgyy$_run_closure7$_closure23@38d8f0cd] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
i have problem with connecting pufferfish skill tree and kubejs.
LIMBO: i try to make a perk when you kill any entity you give a regeneration for 1 sec and script load without errors but the script doesnt do anything.
Block multitexturing
JOLLETEEE: I have tried like every method that i know but i can't just get it to work (yes i suck at coding) (i need help getting the block to have different textures on different sides)
Removing Modded Villager Trades using MoreJS
Vansten: I'm trying to remove all modded trades from the leatherworker.
Replace shaped crafting recipe item by slot index
Micky: It _seems_ like it's possible but I haven't quite figured out how.
Change TConstruct materials properties
LIMI: Need to edit TConstruct materials, tried to use data packs, but that don't help
How to Add KubeJS Addition Recipe Catalyst
Dusty: I think that's the correct terminology? Basically the icons on the side of the JEI menu for the blocks / items that can be used for the recipe, like crafting table or funace. How can I make these show up for a custom catagory / recipe?
Detecting Better Combat attacking hand in LivingHurtEventπ
EyesEyes: I wrote a backstab script that applies bonus damage when hit from behind with a specific item (`farmersdelight:iron_knife`).
Code works on right clicked but not on left clicked
Appocryptha: My code is only functioning on BlockEvents.rightClicked
Removing items completely
wan6845: How can I completely remove an item instead of just removing its recipe? Or at least prevent it from being obtainable outside of the creative menu/commands since some things can be obtained outside of crafting
Full Set Bonus
Thoracle: I've been trying to make full set bonuses, as an example if you wear full iron armor you would get plus 2 max health as an attribute and strength 1.
Block resistance modification
feuerdrache0 (ping me): I want to run a startup script on my server that makes every block unminable and indestructible by explosions except redstone blocks and mods from the copycats+ mod.
Iron's Spells - Remove Hotkey Casting?
Tyler Geovex: I like Iron's spells a lot. The spells are awesome. But, hotkey based casting doesn't fit the vision for my modpack. I'm trying to get all of my spells to be right click effects on items. For example, if I have a Hailstorm spell, I want that to be only castable by crafting the Hailstorm staff, and right clicking with that staff in order to cast the spell. Is this possible with Iron's Spells JS? Or is this something that would require a full fork of the original mod?
throw cobble stone into the void and trasnfer to andesite
Ma: what is the right code to make it?
how can I add bow model by RangedJS in 1.21.1?
Creeater: I think ClientEvents.highPriorityAssets is gone in 1.21.1
Randomly spawn safely
Skemech or something: I have this script that spawns you randomly thousands of blocks away (in addition a mod that forces you to spawn in the Nether), the player keeps spawning in walls/lava and instantly dying, making for a lame gameplay experience...
Checking if recipe already exists (and would thus be a duplicate)
Qther: Is there a way to check if a recipe already exists (not by ID, but by ingredients) so that i can avoid adding conflicting recipes when generating recipes dynamically?
Scale Mob Effect attribute changes
BeanedCans: I am trying to make an effect that changes the player size based on the amplifier of the effect, but I can't figure out how to get the amount added to scale with it if it's even possible. Doing it this way gives errors on startup. Screenshot is showing what I am trying to do.
fail proof g calculator (no NaN, no Infinity)
duck: Currently this script spews out NaN and Infinity sometimes due to what I believe is it dividing by 0 but I'm not sure how to make it fail proof with that
What event should I use for detecting when someone has drunk something?
Ocimandias Pepe: The counterpart for drinking of `ItemEvents.foodEaten`.
my problem I think
Devusiks: Is anyone able to help me fix this? : https://www.youtube.com/watch?v=OmI6Cw1dmDo And code for kubeJS:
Creating a structure
RARE PANDA: Im trying to paste a structure.nbt structure obtained with structureblocks on a kubejs event. whats a good mod/method to do this? im on forge 1.20.1
Draining output does not match input
β¦ aqt β¦: Trying to add a draining recipe to make stripped logs be able to be drained to make sap, however after the log is drained, it converts to windswept holly logs instead of remaining the same type of log as it was.
Issues renaming fluid
Presto: Hi, I'm able to rename items just fine but when attempting to rename a fluid I run into some issues. See images for the code lines I've tried. I also looked through the previous posts and found one (which inspired me to create the top 2 lines). none have been successful yet!
recipe with a nbt data
koriie: i want to modify a recipe so that the output has a specific nbt. How can i do that?
what am i missing?
β© Hiruka β© - γ²γγ DEV: i'm trying to use the mechanical crafter by the instructionof the docs, but i don't know which file i'm missing, do you guys have the file for that? Or is that something else?
Removing recipes?
Cr0w37: How do I remove recipes? ....am I missing something?
Make mobs no longer hostile when a certain item is used
Fingernails: I'm trying to make specific items that renders certain normally hostile mobs passive or neutral. Does anyone have any idea how?
Hide items with specific NBTs
Ekazuya: I'm want to replicate the "blacklisted nbt" part of item obliterator using kubejs to disable some tacz attachments but i didnt find anything either on the wiki or this discord that'd help me (or atleast its not in a format i understand).
[1.21.1] Cannot find function setBlockstateJson
Damonj17: Howdy. Trying to make clones of the vanilla Rose Bush block, and getting some issues, specifically in regards to Blockstates.
Tips/Guidance on re-adding KubeJS integration to a mod (Crock Pot)
doctorCatster: Hello everybody,
Immersive Engineering IEEvents.multiblockForm question
Veruty: i am using this addon
Custom anvil repair -> Item cannot be retrieved from output slot
phistoh: I have the following script as a startup script
New PSI Spell Piece
TheStraying11: PSI has these API method to register a spell piece: ```java
Adding recipes breaks current recipes
egg: I'm trying to figure out why adding `ServerEvents.recipes(event => {})` to the server scripts causes my modpack to explode
KJS Iron's spellbook problem on declaring school on if
Diju: I making a script spellOnCast to find the school that I made in KJS, and remove a specif attribute from the player, but the school outputs like
make an NPC cast spells from book
markburns.: Hi! Is there a way to make an NPC cast spells written in the spellbook they're holding? Like the recruit from the Villager Recruits mod.
Every allowed string syntax for `Item`s, `Fluid`s and `Ingredient`s?
KonSola5: I know of:
"server" is null error when starting world
Xevian: I get this error every time I create a world. The error goes away when I /reload. I'm really not sure what to do here...
How to summon particles facing your direction upon left click with a certain item?
Merry: Can someone please tell me? There being no leftClicked makes everything annoyingly hard
textures on different sides
Your Least Favorite Comedian: I did see a post similar to this but they were on 1.20.1 and i am for sure on 1.21.1. and i am getting the default purple and black texture ingame. please help (the pear is only a test/joke block)
How do I reference other files in KJS?
gulas: Things like @.see and @.link do NOT work unfortunately. I'm assuming it has something to do with an outdated version of JS running or smth?
Unknown message ID: kubejs:first_click
Shiba: since i deleted kubejs from my minecraft server, this message is been flooding my entire console all the time and i dont know why
How do i make it accept tags?
β© Hiruka β© - γ²γγ DEV: Here i wanna that the TAC zero gunsmith table accepts any kind of steel, but i always get errors, i tryed making tag tag and item tag, but none works, cus it seems that it only accepts item, but not tags. Is there a way that it can accept tags? Like, some kind of stuff that list items from a tag as tags?
MobEffects help with modded status effects
daawiid: As the title says i was wondering if its possible to use MobEffects with modded potion effects, im currently using this piece of code to make weapons apply status effects on hit but i want them to also apply modded effects but im not sure if thats possible. FYI its not mine, i got it from here
Overriding item texture after changing the nbt
Pafeu: No idea what am I doing wrong here the item always uses the original texture capturing_gem.png.
Entities hurting themselves with spells (Spells JS + EntityJS)
Balúncio: Soo, im trying to figure out how to stop the fire dragon from ice and fire mod from hurting himself with the spells i chose for him, which are fire ball and heat surge, anyone has any tip?
OKay so, i've been looking in the documentation and i don't know how the recipe removal works
β© Hiruka β© - γ²γγ DEV: i mean, just the part where it mentions:
need help with upon right click breaks and replaces blocks with particles and drop an item too
RJames: making code where i right click two blocks on top of each other, and then it sets blocks, runs minecraft commands for particles. is there a different way to deal with this, i mean instead of using set block and a minecraft function to make break particles.
Native event called when switching held item?
Micky: I'm trying to find a native event that is fired when the player switches its currently held item. It seems natural that it would be there, but I can't find one. I'd rather rely on it than a call every tick.
Using Kubejs BloodMagic
GEXZY: I used the Thermal Series to create the craft on the Blood Altar, but the standard craft is not removed from the mod. I don't really understand it, please help me a little
Help with item event script
Rat wizard: so what do i replace these event.entity.level.dimension and event.entity with to properly make it run /playsound command?
Drop Prevention
Zeryiel: How do I prevent the item waystones:warp_stone from being dropped (by Q or death) and placed in a chest? In other words, how do I keep it in the player's inventory indefinitely, regardless of anything else?
ProbeJS causes extreme VSCode slow down in server scripts
mo_mo (ping me): Is this normal? IntelliSense is EXTREMELY slow, like it can take up to a minute to load suggestions. It's only slow in server scripts as well.
I am stupid and need help
BatFan_Attic: I am trying to make a block interaction script where if I right click a charged lightning rod ( aka lightning rod during thunder weather ) It will give me an item called lightningbottle. But I don't under stand where to even put this. or how to add those conditions
Trying to add custom functionality to snow layering
Rex: I'm making a modpack, and I'm trying to make snow stack. Weather, storms and tornadoes does not seem to have a way to turn specific weather patterns off (I don't want tornadoes, just blizzards), and snow real magic is too chaotic in the way it places the layers. Is there a way I can run code on random weather events like snow placement with kubeJS?
Why did it stop working?
Farcr: This has always worked, and now stopped working. Nothing within the file changed, the syntax is correct as per the wiki and other scripts, why does this refuse to work? If i remove the bronze ingot entry, then the next registry entry is the one that breaks. Why.
lootable adding function not working properly
Pom: i was wondering if its my lootabke code or kube js code at fault but i tryd adding a lootable inside a block thats being added in a lootable heres the code
Would it be wise to create my basic chunk claiming system in KubeJS?
Yamie: Basically the title says it all, I asked in the Denizen (Plugin scripting framework) Discord server and was redirected here.
Error with Malum Runeworking recipe
TomatoSoupter: Tried making a helper function for making Iron's Spells runes using Malum's Runic Workbench and I keep getting these errors
Need help with modifying existing food items
babyaintmoe: Hi! π I would like to ask for an example script for the NeoForge 1.21.1 version of KubeJS that allows me to modify any given food item. Best case would be something with placeholders where I just gotta insert the item name and the numbers I would like to tweak. I am weak in JS, that's why I can't just copypaste and easily use the Script of this other person that everyone refers to. Feel free to include all possible food properties that are changable so I can pick which ones I might use.
Adding Curio Supports for this item
Silverish Red: I tried tagging it with 'curios:back' and it works but it loses all its elytra flight and dash ability.
how to make connected storage blocks like how double chests work
RJames: from what i know you can add this into your block registry
Custom Effect that acts similar to wither but on death runs a command?
Agnes Freak-ital [Cookii]: Basically I want to make an effect that damages the player over time like the wither effect but when you die it runs a command/a lil bit of extra code