Support Tickets
This page is still WIP!
Turning block into another
NanChik: how to make some block turn into another after some time passed?
Effect that deals damage over time that scales with movement
Bruh_Brother_: I’m trying to add an effect that damages an entity every 3 seconds or so, and if the entity moves, it takes damage more frequently based on how fast they are moving. Higher levels deal more damage. I’ve never done something like this before, so I’m a bit lost.
How do I print a modded recipe's JSON table to KubeJS server log?
Alina / RealNiko: Title.
Custom Tier Tools compatible with silent gear?
ChouKpop: I wanted to ask if it's possible to make the script compatible with creating gear for Silent Gear. The new tier would be DESH, Tier 5
How to Modify Mutually Exclusive Enchantments?
CaptainMarTuuk: Nether Depths Upgrade adds an enchant called "Hell Strider" [comes in 2 levels] which is basically just Depth Strider, but for lava. For some reason it is mutually exclusive with *all* of the Vanilla Protection enchants. This makes no sense to me, so I'd like to change it with KubeJS, but don't know how/if that's possible.
Disabling the hurt animation when lowering max health attribute? Or when decreasing health at all?
PARVUS ๐ฎ๐ฌ๐ณ๐ผโ๐ธ๐ผ๐น: Is there a way to note have the hurt animation play when you lose hp or health? Is that something we can do?
Fake Durability Attribute
Berlium: I really want to make a this attribute for Quark's Tooltip Effect, i did make a moon phase based attribute before but idk about durability.
How to create a custom effect that applies when the player interacts with a chest in a structure?
Cr0w37: Hey I want to make an effect that summons a mob when the player opens a chest.
ProbeJS dump incomplete
UselessRobot: I'm not exactly sure what's going on but whenever I use the dump command for ProbeJS, some entries end up missing. I'm not able to test it but it seems to be deterministic, in that the same classes aren't dumped. I've cleared the ProbeJS cache and turned on aggressive probing to see if that would help but no dice. I do have a number of optimisation mods and I'm wondering if that might be the cause.
How can I change food properties of an already existing food item without changing anything else?
Darkus: I tried to run this command bellow, but when I reloaded the game the minecraft:baked_potato gained .alwaysEdible and .fastToEat property, even though I didn't write anything regarding them.
Adding the possibility to strip logs to farmers delight knives
Lemmy: Just wondering how to make it so farmers delight knives are able to strip down logs like an axe could, or if I need to do a custom crafting recipe for it
Mana System
Kimaris: Hello, I'd like to ask if it is possible to make a mana system similar to iron's spells using KJS + Addons.
Tool tier modification overrides Quark
Kevin: Quark adds the ability to give tools a baked enchant. Golden tools are also given a higher mining tier through quark.
Disabling a specific json in a mod's data
Mesrszmit: I'm trying to disable Seed Oil and Ethanol being a fuel for Create: Diesel Generators, i tried replacing the .jsons with empty (just {}) files, but that causes crashing
How to draw GUI's
ApelsinGera: so I have this gui, is it correct resolution? where do I even put the arrows, and important how do I make the items be in those specific squares. I found no specific guides on this
Botany Pots script not accepting seed item
Puffer: So for context I have gotten the lead block to be considered a valid soil type and go into the botany pot. Sadly the ingot refuses to be considered a seed type and cant even be put into the botany pot. I'm not a pro at coding so I have no idea what I'm missing. I have checked that the item names are correct as well as their place in the script, but I may be wrong. Go figure right?
Entity js questions
Monkonpo: Can I give my entity glowing eyes and is it possible to also give them a custom spawn animation
how to detect if a player has a specific item in their inventory?
Arborescent: hi. I'm trying to write a script that will only continue if the player has the `kubejs:food_dex` item in their inventory. But I don't even know how to access a player's inventory? I tried looking through some of the code here but so far nothing is working, I can't even get a single item id. What do I do? This is what little I have rn
Hard Remove Tooltips
KateBulka: I know there was a user-made script on 1.20.1<= that allowed to remove tooltips based on their lang key, but I haven't found anything like that for 1.21.1 ๐ค Has anyone tried to do that?
How to make tools consumable after crafting?
JustTroniusPlay: I have crafting recipe that use Gregtech Tools. Most tools in the mod used for crafting and not being consumed fully. I found there **.damageIngredient()** to essentially consume a tool durability, but when I craft ALL tools disappear even when I specify: .damageIngredient('gtceu:bronze_' + tool, 9999).
Having trouble editing the configs of a mod through Sinytra Connector
swifswaf: I don't entirely know if Sinytra Connector has anything to do with this, but I'm trying to edit the config of a cloud mod depending on the dimension the player is in. The code is from two different threads, but for some reason it can't recognize the setting I'm trying to change.
lock on and dash ability for palladium
Monkonpo: i got the lock on working, but I can't get the dash to work. Any help would be appreciated
Directional block does not shift texture at all when axis is changed
ScarlettFrost: I'm probably missing something VERY obvious, but I'm not really sure what and I can't find the right info on the wiki
change weapon damage based on durability in real time
LOLTIME: hey I was trying to make extra zanite weapons for my modpack with the aether in it and was struggling to figure out how to get the damage change to work on my own like it does in the mod.
attack damage not changing on some weapons
Pie: I want all wooden weapons in my world to do no damage, yet it only works for wooden swords and nothing else in the spartan weapondry mod.
setting body rotation of an entity
Po: .setpitch() seems to alter the pitch of the head of an entity fine but .setYaw() doesn't work on the head or body for some reason
help with lock on ability
Monkonpo: i made this new lock on ability but everytime i try to make the players view follow the mob it crashes this is the non crashing ver
How to make a block emit particles without it being a blockentity?
fereroroche: I know you can make a block emit particles with .blockEntity , but how do you make it emit particles/ other events with it just being a normal block??
looking to add a recipe in the circut slicer from Extended AE
SwiftPawn35: i can seem to find the callback needed for the process for it, any ideas?
how to require javascript files?
asof: the error message on `require()` makes reference to "an extension" but gives no further information. probejs doesn't appear to describe anything on its extension page either, so how is this done?
Using Fancy Menu and KubeJS to create a GUI for the Source Relays in Ars Nouveau
Rebel86: I would like to use Fancy Menu and KubeJS to create a GUI for the Source Relays in Ars Nouveau. I know that it's possible, and where to get started, but nothing about the more complicated details.
custom gui
Monkonpo: i have this custom gui for my power that i want to be used for the energy and health if anyone could help it would be very helpful and later on i also want to put a icon in the circle this is for a palladium kingdom hearts mod
curios editing
leon: i want to edit the nbt of a curios item but i dont know how because the player is wearing it
swing item in off hand
imBL4CK: I'm making an item similar to Flint and Steel, but with its own unique features. It's usable in the off-hand, but when used, it swings the main hand instead of the off-hand. Could someone help me with this?
Create Kubejs Keep NBT?
Berlium: I have a sequenced assembly that i use but idk if is possible for it to keep nbt when creating an item.
Help with script to create block that randomly explodes.
Luci: Hello, I am trying to make certain blocks randomly explode using the randomTick callback when registering a new block, and I can't seem to find any documentation on it. I know the tick event is working because `Explode!` gets printed to the console fine but it does not in fact explode. I am not getting any errors either. The current code below is based on some code I saw in another ticket.
Trying to modify the harvest level of an existing block
AcaGamer5: I'm trying to modify an existing block from a mod to be at the wood mining level instead of stone. I've tried using hltweaker and kubejs, kubejs yielded results, but they weren't what I was trying to do.
Does Kubejs have support for editing/removing valid fuel sources for Create Bulk Blasting?
tehswordninja: In my specific case I want to remove lava as an option for any and all Bulk Blasting recipes, leaving only heated Blaze Burners as the way to do Bulk Blasting.
Recipe component key 'fluid' not found
radzo73: I'm working on backporting KubeJS integration for [Create Wells](https://github.com/radzo73/Create-Wells/tree/1.20.1-kubejs). However, any custom recipes don't get added, and the base recipes break with this error:
Need help with a block interaction (again)
Jay: Trying to have this consume the jar, play the sound, and shoot the message. but its not playing the sound... and if I have the sound event in it doesnt shoot the message unless I put it above the failing sound event.
BlockEvent.broken How to detect attached blocks/objects
jasonmbrown: I need to detect when a block is broken due to another block being broken.
Assets loading priority
Salad: hello, i was curious if there is a way to influence which assets gets loaded first and if the kubejs assets folder is "above" the normal resource packs
Create kubejs + Mekanism kubejs
GroeneWolf: So I made this little recipe with two version for superheated and normal heated. Both steel related. I wanted the super heated one to go twice as fast but when i time them ingame they're the exact same speeds. Ill paste the code down here.
Blacklist items from all creative tabs
UltraPuPower1: How would I go about getting a list of all creative tabs, so I can use `StartupEvents.modifyCreativeTab('mod:tab', event => {})` on all of them?
Detecting and interacting with "weird" block behavior
seven: Quickly prefacing this by saying that my knowledge on blockstates is close to zero (if even blockstates are what's going on here). I have a block that changes its model upon being interacted with. How would I get this block "behavior" and interact with it (apply it to an existing block, set a block with a specific "stage", etc.) in KJS?
Mining Power / Mining Power Requirement
Rherican: How do I edit a tool's mining power and a block's mining power requirement?
Looping with a for each using a struct that uses both items and tags, only items working
snarkbait66: I'm trying to redo the potionsmaster recipes to use oritech machines to make them a little harder. Potions master uses kubejs now to register it's items in a server script like this:
How would i Set a block on Fire
Owen: i specifically would like to set a block on fire, not the entity
How do I set a specific item to have a certain potion effect when equipped in KubeJS?
MC-Nirvana: So, does anyone know if KubeJS itself can perform this operation? I’ve seen tutorials that require PowerfulJS, but the latest version conflicts with Create 6.0.8+ and causes the game to crash. Plus, the author’s last update was six months ago.
Add kubjs specif auto-completion/suggestion on visual studio code
Alvring: https://www.youtube.com/watch?v=XEhrgorh7sw&list=PLbocrCqD3FS6An49Fswn8C0kHEolQmsmx&index=2 I'm following this tutorial, and i saw that when it enter for example Loot, the software automatically suggest Lootjs. How can i have that on my side to ?
Rotate Block hitbox
imBL4CK: Is it possible to do what a registered block does with kubejs and rotate its hitbox according to the facing?
Is there an event that detects when the server is reloaded?
swifswaf: Like with the /reload command. ServerEvents.loaded() doesn't do this.
Help with Entity Spawn Control (EntityJS)
MistaUnlucky: Yo, I'm tinkering with entity spawn control. And I was able to make it spawn to a specific biome (Mushroom Fields) but they seem to be spawning in too much in a short amount of time and not stopping (Comes to the point it spawns about 6k in like 2-5 minutes).
Modifying every item in a mod
Toastr125: Is there a way to loop through every item in a mod during startup ItemEvents? I have a particular mod where I want to make the same change to all of its items and I don't want to have to manually do it for each one if I don't have to
How to make a block behave like dripstones?
fereroroche: I'm making this pillar block which has similar properties to dripstones, with a base, middle and top.
Problem with ModID
Rimu': Hello, I'm making a Modpack and i have a problem with my modid, my custom items have the ID like this. If anyone has any idea how to fix this, I'd appreciate it.
how do i disable a specific enchanted book?
valurae: since they all have the same tag i'm having trouble figuring out how to do this
How to put Structure in data folder
Vnator (ping me 4 replies): I'm tring to load a custom structure into the game by putting it in the `kubejs/data/<namespace>/structure/` folder, but it isn't being read by dimensional dungeons or when I try to call `/place template <namespace>:structure`
custom entity and rotation
Po: i want to create a shield entity similar to the ISS shield spell but idk how to give an entity that type of colision using entityjs, also how do i set the yaw and pitch an an entity? is it;
KubeJS Code Help
Anonymous: I am trying to add Durability to TACZ Weapons for 1.16.5. Can someone look over my Code and tell me why the Durability is not going down and is not being displayed? The Durability script is in serverscripts and the display in client scripts. The Weapon is gets the Durability tag but nothing else is happening. Or does someone know a Mod / Datapack for Durability for TACZ in 1.16.5 because the Mod that exists is sadly not for 1.16.5.
Custom Armour Model textures
renshei: I've made custom textures for my armour (model textures, not item), how do I get them to show up in-game?
Adding Item Cost To Waystones
Anonymous: I was just wondering if it's possible to add an item cost to Waystone use on 1.20.1. I'm just looking to make it cost coins from another mod.
World creation bug
Anonymous: After installing only the KubeJS and Rhino mods and launching the game, if I create a map, exit, and then try to enter the created map, a safe mode pops up and I cannot enter; however, if I try to create a world again, the game crashes.
Adding Fire Damage To Golden Weapons
cpubutcher: Hello, I am new to KubeJS. I want to give golden weapons a weak fire ability, similar to fire aspect but maybe not as strong, and hopefully without an actual enchantment if possible.
EntityJS NBT-based texture
seven: I have a simple entityjs entity that I have multiple "variants" of, all simply consisting of different textures. Is NBT-based retexturing of the entity a thing, or am I better off registering a different entity for each variant?
Weapon damage modification issue
FuzzsterTheSecond: I am trying to modify damage for some weapons and it seems to have worked for the weapons from vanilla minecraft and the ancient elements mod but for mods such as the l2 weaponry throwing weapons that show they have attack damage or even just spartan weaponry weapons, after i use the modifier code that i used for the other weapons, their attack damage does not change, the image is an example of my code which worked for the other weapons but does not work for the spartan weaponry weapons. does anyone know any workarounds?
adding swim speed to armor?
Aceplante: Does anyone know what armor attribute aquaculture uses for neptunium armor? I tried forge:swim_speed, but that did not work
AnvilUpdateEvent seems to not run when an item in the left most slot is swapped
hyperstitiousdiskordianwarfare: I have this script which does work, but if I put two enchanted books into the anvil, then swap the left input slot with a different item, the enchanted book remains in the output and you are able to take it out and duplicate the book. Is there a different way I should be approaching this?
Hello! Need a tip about how to create UI shop using KubeJS
PuFon: I want to create shop with KubeJS but i cant use .openChestGui - cos its not supported in 1.21.1
How do I make a recipe that returns an item used in it, damaging it
Rะพะบะฐ: I want to make a recipe that, for example, uses a wooden hoe and damages its durability by 1 after crafting
How to get ItemStack mining tier
Chubbachoo: ~~I want to change loot tables based on what harvest level the tool is (i.e. iron pickaxe gives diamond, diamond pickaxe gives netherite). Is there a way to do this?~~ Is there a way to get the mining tier of a given itemstack?
How do I make an item enchantable in KubeJS
Alvring: This sword can't be enchanted in anyway (sharpness, looting, etc), is there a way that make it possible to put sword specific enchantment on it ?
Need help adding buffs to trimmed armor
ChubbyUnicorn: Hey everyone! I am trying to have each trim give a specific buff when applied to an armor. However, whenever I run the game nothing happens. Am I going about the right way of identifying what trim an armor piece has?
Script Update Help
RedΛngel: I am maintaining a modpack that someone else made and I am attempting to update to 1.21.1 (from 1.20.1) and I am running into some issues.
Exposure ftb quests
Wi13Y82: Does anyone know of a modpack or have an example of how to use kubejs to do scripts for ftb quests for pictures from the exposure mod? An example would be a quest to take a selfie with the warden. But ftb quests would have to recognize you actually got the warden in the picture.
EntityEvent.hurt error
Inflitraz: I trying to make a event to apply slowness, poison to mob target or heal the player with entityHurt, but it's giving the erro "Unknown event 'EntityEvents.hurt' Someone can help?
Removing Oreganized and Caverns & Caverns attributes
EinBurgerMeister: I've been trying to remove life steal from sanguine armor and magic protection from silver armor but haven't been successful yet
Updated wiki
Guygun: is there a 1.21.1 wiki for iron spells addon and for entity js
custom block texture
ะดะทัััะธะบ: is there a way to change a custom block's texture/model depending on graphics settings like leaves?
Tag Script not Working?
Yez: Is the simpleplanes tag taking priority over kube's changes? How do i change it if so?
cancel entity interact not working?
Aceplante: I am using the easyvillagers mod but there is no config to disable the "instant-pick-up-villagers-as-items" mechanic. I can successfully detect when i shift click on a villager, but the event is not canceled for some reason
Custom MobBucketItem bad arguements
๐ฝ๐๐๐๐ ๐ฃ๐ฅ: I don't care if this item can pick the squid back up, but I want a bucket of squid that when used, places a squid in the world.
Industrial Foregoing Generator fuels
Nova: I'm not sure if anyone can help with this, but I am trying to adjust some things used as fuels for the IF pitiful generator. I have the KubeJS addon for IF, but I can't find any reference on how to handle fuels. I have checked the IF mod, the addon, and the main KubeJS wiki, but I couldn't determine how to change things. Any help/advice is appreciated.
remove villager profession
Aceplante: I am currently not using MoreJS and hoping this is possible without it. I simply wish to completely remove a villager POI/profession, lets say the fisherman. While I have another mod that could allow me to remove all the trades, i dont want that block to be chosen as a valid jobsite at all.
need help with creating an item with a component
Anonymous: I want to make a custom item for the mod Dyson Cube Project and realised that with this command :
Has a way to apply enchants on a item on create startupevent ?
Inflitraz: I want to make a class of tools that ever has a enchant, has a way to make that?
How to change Mod Display Names?
Rblx_Jannis: Greetings I am totaly new to KubeJS and saw this feature on the wiki, but when I use this code:`Platform.mods.botania.name = 'Plant Tech Mod' `"
trying to create multiple crushing/milling recipes for very similar inputs/outputs
apollo: Hey, I'm currently working on my create modpack and I'm trying to integrate a specific mod (smokeleaf industry). smokeleaf uses tags that group all the buds, weeds, and seeds into their own respective tags, i was wondering if i could use the tags to create a singular recipe but with outputs relating to respective inputs? currently, i have it set up like this:
I need help with changing a furnace craft
Anonymous: I'm playing with a few mods including kubejs and I dont know how I'm supposed to change a furnace recipe while using the craft recipe exporter addon and I dont know how to code at all please help