Support Tickets
This page is still WIP!
How to procedurally generate recipes for wooden planks from modded logs?
motley: Good morning/afternoon/evening everyone,
Need help with a TNT Crossbow
Kryonick: I'm trying to make some sort of a tnt crossbow, for 1.18.2 fabric, where whenever a custom crossbow shoots, it shoots out tnt (cant be just explosive arrows)
Custom commands not working
Beef Cake: I am simply trying to make a custom command and make sure KubeJS is working as I expect,
Error with LootJS when trying to remove a drop
tln_: This is what I currently have and it's throwing out an error when I put it in server scripts
Trying to remove an item from inventory after pickup
rion: I'm trying to remove exposure:camera_stand after pickup and replace it with one that has the data that allows it to be placed in adventure mode, however I'm unable to get the inventory remove to fire properly. Any suggestions?
Disable Right-Click
Eccentrikk: Playing around with Create Sifter mod and looking to disable "hand sifting" which allows you to use the mesh exactly like Create sandpaper but instead of polishing, it sifts the block in your hand (or off-hand).
RecipeViewerEvents.removeEntriesCompletely & StartupEvents.modifyCreativeTab bug? together
dejeh: startup script:
Play sound when open custom block inventory
Jere: Ive created a custom inventory on a block with kubejs, how do i go about altering blockstates when its open, playing sounds etc?
Custom script to pull tag data
Gunslinger: Delete if not allowed , however I’m trying to see if there’s a script that can be made to pull all tags from the mod packs for certain items , example if I wanted all armor tags to be pulled and dropped into a json file for me to view.
structure gen with blocks from other mods
Mr. Pickle: i have no clue why it does not work, but when the structures try to spawn, they just don't spawn.
How to turn spells into enchantments?
Cr0w37: Hey! how do I create enchantments that apply an attribute to an item? All help is greatly appreciated.
Remove blocks from structures with MoreJS
Gojo_Manjiro: How to remove expecific blocks from structures? like blast furnace from villages and etc
How to add blockstates
Danymaddox: Hi! ive created a custom block and i want to add custom blockstates to act like amethyst cluster, but dont know exactly how to do it.
How to add a custom recipe for smelting
Kotara4: I want to add a smelting recipe to make hardened leather from regular leather by smelting it. I already have the hardened leather item.
How can I make an end biome generate in the nether
Anonymous: I want a modded end biome to generate in the nether, and its mobs too. This is my first time so I have no idea what I'm doing
IE custom blueprint recipe that uses durability
Feliks: Is it possible to make a custom blueprint recipe that uses durability from a tool instead of fully consuming the tool with KubeJS/KubeJS Immersive Engineering?
Is kubejs capable of modifying the amount of XP gained from mining ores?
finger: Ores like coal and quartz drop XP when mined, is it possible for the amount of xp dropped to be changed using kubejs?
Recently updated old project, resuming development, but Internal Error in KubeJS?Could not create ID
𝔽𝕝𝕒𝕓𝕠𝕣𝕥: So I'm resuming a project I had abandoned for a while, updated my mods, starting to fix scripts that broke as a result of updates, updated Forge version, and so on.
Dungeon now loading and Iron spellbooks
Darknight8151: Hello I need help for item of Ironspell book loot in dungeon now loading 2% 😭
Converting excess effect intensity into duration
Astro Gamer: I want to be able to make it so if you have an effect whose intensity surpasses a certain number, it's intensity is set to that number and the duration is increased based on how much you lost
How to spawn Wither Storm after X days + global announcement?
Ellement Is right behind you.: I’m trying to make a KubeJS script for my modpack that automatically spawns the Level 1 Wither Storm into the world after a late-game amount of time, something like 300 to 400 Minecraft days or whatever is considered a reasonable timeframe for players to beat bosses and the Ender Dragon first. The idea is that once the time condition is met, the Wither Storm spawns somewhere in the world at a random location and all players receive a global chat message like “The End has come.” to signal that the final phase of the pack has begun.
Additional hunger loss per dimension
archemagos: 1. Am I getting it right that I can hook the player's hunger loss, and apply additional hunger loss?
Need help for remove stage
Zozo: Hi i need help for remove stage or restart all echo for me and get what i have already do, i accidently unlock all quest because i wanted unlock one quest because stuck and now all stage are "completed"
Is there a way to replace all outputs of a sequenced recipe/remove junk outputs?
Aster: I want to change the precision mechanism recipe to output precision mechanisms 100% of the time but I am not sure how to do this.
Is it possible to make something happen every, say, 200 ticks instead of every tick?
Holpip: I'm making a modpack for me n' my friends, and I used this script–which is 90% made by desync–to change the default player size of an origin, but I don't want it to trigger every tick. to be overly specific I would like it to run once when the origin is selected and again every 20-60s just in case someone finds a way to change their size. I've tried using `PlayerEvents.onInventoryClosed` but the origin selection menu doesn't count as an inventory (probably obvious but it was worth a shot).
Scripts run as expected locally but do not run on server
AB: I have a 1.20.1 forge server with kubejs and rhino installed. I have these startup scripts:
Recipies with NBT tags
Kaspuh: We have run into one issue as we want to make a script that would let us "convert" items with specific NBT tags (specifically from Camphor that allows to create custom coins with specific "Issuer" NBT tag) into our custom server items. We thought the easiest sollution would be to make a recipie that allows us to craft a new custom item from that Camphor item, with a specific Issuer NBT. So is it possible to specific NBTs items into the recipie espeicially if that NBT is a custom one?
add mob spawn using AND instend of OR
this_sia: Is there any way to add a mob spawn using AND instead of OR? For example, adding minecraft:salmon to biomes that have both the minecraft:is _ocean tag and the forge:is_cold tag?
How can I remove structures and ores from a certain mod generating?
EEX5: I saw something like this on CABIN, where some structures and ore generation was disabled but I'm unsure how to recreate it
Data File Not Working on Server
Opanyo: When I make datapacks through kubejs on my client they work as normal. I just uploaded my modpack to my server and the kubejs data file isn't working. What could be causing this?
is there any way to work out if a block leftclick is happening when the button is released
asof: the event runs twice, the second on release, but i can't find anything that'd let me disambiguate the two states?
Make pre-existing modded placeable item be unplaceable
tln_: I'm unsure how I'd go about this, so I'm pretty curious if anyone's tried it before.
How do you change the Display Name of an item based on Nbt?
♣Khalito♣: I know how to do it without nbt but I'm not sure how to do so with it
Make fluid that you sink and cannot swim in
Aceplante: Similar to lava, but i want to make it so you cannot swim upwards in it at all.
Getting the error dev.latvian.mods.rhino.EvaluatorException: missing ) after argument list
ᒪᗩᐯᗩ: How do i fix
how to shoot a custom ars nouveau spell with js code?
leon: i want to shoot magic spells with a code
Mod Structure Spawns
lynxwing: Hi, I'm very new with coding and mods in general and I only want to tweak a handful of things in this modpack that I've compiled.
I need help creating a script what replaces a modded block with a different modded block when-
Gabomon08, Slayer of Dragons: generating the world. Hi guys, recently ive been playing this modpack called deceasedcraft they have cars and whatnot but its not a good car mod, so i downloaded immersive vehicles... the problem is that the gas stations inside the mod have the other fuel pump and it doesnt work with MTS, so i wanted to create a datapack that replaces all those fuel pumps with the mts fuel pump, then during my searching for someone to teach me how i came across KubeJS and realized this could be easier for me to do since there seems to be already similar things done with it. If i could get any help it would be greatly appreciated since ive been struggling getting any help and im trying to get this done by friday
[01:25:32] [ERROR] ! ID.java#92: Error in 'StartupEvents.registry': Could not create ID from 'kubejs
Mr.Fluff: i cant for the life of me fix this
Checking whether an entity is in a specific structure
heimdal: I feel like I must be missing something obvious, but for the life of me I can't figure out how to check if an entity interaction event is taking place in a specific structure. I've checked the target (entity), player, position,... there doesn't seem to be any sort of getStructure, isInStructure, or really anything hooking to structures. Closest I could find is player.isInsideStructureTracker which seems to just say whether they're inside a structure, not a specific one.
Custom Create recipe error, but only on first load
✨ Iris ✨: When my server loads, I get this error:
how do i mimic chorus fruit teleportation in a new food im making?
Deano: i really cant find a good explanation as to how to do that
Make a projectile deflect off of a Wither in its second phase (similar to an arrow)
hyperstitiousdiskordianwarfare: Any idea on how I would even get started on this? Tried making it immune to the projectiles damage type but its not quite what I wanted.
armor stat change
whatisthis5123: Hello i would like to make simple mod to change horse armor stats and rebalance a bit i don't know JS at all i did some simple mod on MC unrelated to KubeJS I use Fabric i have watched few tutorials about this topic but it looked bit confusing so many files and tutorial only talked about one single file: https://www.youtube.com/watch?v=OgwUBxfQ-1s and i guess this way no longer works in 1.21.11 please help me someone
how do i remove the kubejs tag
ᒪᗩᐯᗩ: how do i remove the blue writing that says kubejs
unguarantee zombie conversion on hard mode
mr_ron: does kjs provide a way to have zombies kill villagers instead of converting them on hard mode?
Are there any block and/or node coding applications around for kubejs?
Deano: I think itd be really useful for me
code
SnakDog: Why does kubjs say it doesn't know the recipe type: mekmm:replicating?
Remove specific block in all structures
MercyMaster1: I want to replace the crafting table and some other blocks that generate in structures with air. Not the whole structures themselves tho. Just the blocks I choose
Change custom fluid bucket texture
ggerald_: How can I change the bucket texture of my custom fluid
Edit mob NBT in entityInteracted event
Manatee: Hello, how can I change a mob's NBT values in an entity interacted event? In this example I want to remove InLove from a cow and set a breeding cooldown.
How do you listen to events from other mods?
aaronhowser1: Ngl in actuality I'm not even trying to use KubeJS. I'm a mod dev and my mod has custom events and I want to know what to put in the documentation for it lmao
Help with using EntityJS to modify zombie behavior (image unrelated)
GodlyGaming: I'm tryna make a mod that basically improves and makes the zombies much better in the game. The zombies are supposed to be like the zombies from project zomboid. I wanna use EntityJS to do exactly that.
Wiki for it:
Anonymous: Wiki for how we can use javadocs in kjs please dont say learn java
KubeJS Botany Pots 1.20.1 Visuals
Rage: I am looking for help with this as I'm trying to get the growth stages to show properly.
Is there a way to prevent duplicate tick events after reload?
LeFauxMatt: During development, I've noticed that using `kjs reload server-scripts` will result in my tick function being called multiple times. As far as I'm aware, the only way to solve this is to restart the server. Is there any way I can unload an event and then re-register it so that it only fires once?
Rolling villager trades every day
kummakapitany: Hi, I wanted to create a feature where I rolled the villager trades every day, while maintaining the villager level and profession, only rerolling the trades the villager has.
server_script is not updating after reloading or restarting
YOUR_HAMSTER: Sometimes reloading and restarting doesn't update scripts. Errors that are no longer existing in the scripts are thrown. Is there some type of generated files that can be purged to remedy this?
insert items into a modular router's module list
asof: it doesn't appear to be exposed via `.getInventory()`, which makes some sense as its non-automatable normally. the context here is that i'm trying to make the router modules be placable independently instead of first placing a router then filling it with modules, as i think it'll make it feel a little simpler, potentially. (ideally it'd also have a new screen in the router's menu directly, but that's more than a little out of scope)
Cast MappedRegistry to Registry?
Dakedres: I'm updating this hexcasting script to 1.20.1 and I'm getting the following error:
Pseudo Peaceful Mode
Scout the Saneless [pls ping]: So, my friend posed a request for a peaceful mode run, because they don't like being attacked by mobs, but I like having to deal with food systems, and I play w a resourcepack that changes most of the vanilla mobs and I don't wanna miss out on them, lol. So I cooked up an idea (~~yes, it hurt~~) to make a sort of pseudo peaceful mode, so that when a mob spawns, they're put on a team that the player is also on, which in vanilla, that pacifies them. How would be the most optimal way to do this? I have some pseudo-code for the idea I had in mind
Anyone with presets for “create”recipes
Anonymous: I’m looking too change the chances for recipe due too having a server full of people , I want too make things slower when it comes too automation.
LootJS Remove/Add Loot
IRBan: Currently trying to add loot and remove loot using Lootjs. I'm not getting any errors but nothing is changing for the mobs drops.
Mekanism Metallurgic Infuser Crafting in 1.21.1
CrAzyA22: Is there a way to modify the recipes for the Metallurgic Infuser and a way to create/use custom infuse materials and recipes for items to chemical? I already looked around this server, the docs and the mekanism source code but everything I found doesn't seem to be working for me.
Removing torches from Chipped tables
Liam: Hi, I'm trying to remove all custom torches from the Chipped mod tables. Here is my current (not working) attempt:
Whitelisting items in JEI
Comfy Echo: i trying to figure out how to Hide all items in a Mod whilst keeping a certain few
Smithing recipe "replaceIngredient" and "damageIngredient" not working.
tln_: At the moment I'm attempting to have a smithing recipe take durability or outright return the "upgrade item", but neither is working sadly.
Item Slot Set
Owen: How would I go about changing an item in a slot? Like for example, entity.setSlot('chest', 'minecraft:iron_chestplate') this isn't the slot or item I need, just an example
slabs and stairs aren't getting textured properly
asof: tried both `bottom/top` and `down/up` but neither seems to work? wondering if its a problem with kube, tbh.. the builder appears to be intentionally reusing the same texture for all 3 vanilla texture parameters
check if texture file exists
asof: i have a pretty large number of blocks, some of which have the same texture on all sides and some of which have different textures for the sides and the top/bottom. i'd like it if i could dynamically check what textures exist and texture accordingly. (alternatively marking the all-sides texture as a fallback would also work, i suppose)
Garden Cloche.
S-s-Spudd: Hi, I was wondering if i could "force" the garden cloche to accept a dirt/soil block from dire things rather than me having to create individual recipes for each thing. I've checked out the wiki and have done the base plate code which works but that would require me to create a recipe for each plant. <:PotatoBUFFERING:1214760149487722576>
making a terraria style hardmode?
Frosty: i wanna make it so when you enter the nether, mobs get more health and higher damage but i dont think anyone here has done it with just kubejs before
Turn existing item into staff With Irons Spells JS
Opanyo: Anyone know how I can take the example script for making a staff from the irons spells js wiki and use it to instead turn an existing item into a staff?
Apotheosis Attributes
Ouppy Elle: is there a way to have items that are crafted gain a random apotheotic attribute, similar to terrarias random prefixs
Can I make scripts that work on both 1.20.1 and 1.21.1?
Deano: Basically as the title said im interested in what the limitations would be in making scripts that function in both of these versions
Create Compacting Recipe
Anonymous: Below is a ZenScript recipe for Ochrum which combines 2 tuff blocks, 1 granite block and 25mB of lava to get 1 Ochrum in return.
Knockback
Wi1d_Buffal0: I wanted to set knockback from mobs really high because I figured it could be funny, but I don't really know what I'm doing when it comes to entity related events. Like I don't have any scripts or anything, that's how confused I am.
Can someone help? I don't know what parameters can be put in or where to even find these parameters.
Bubbleboodypfftt: I just wanna make blocks explode when right clicking man
Remove a block from world generation
Emilie et Ælissa: So, there is a mod that generates structures and also adds some blocvks, and I would like to remove a specific block that gets added to the game. I just want the block to be gone and non-existent. How can I do this? I figured it'S gonna be BlockModification, but there seems to not be something that I can sue there.
need to do this for a range of chunks instead of the one set of chunk coords
this shit bussin: i also need to undo it after x amount of time via the remove command.
no more insta break
Skemech or something: How could would I make it so blocks like sugar cane, grass, tall grass, ferns, mushrooms, ect. not be instant break anymore?
how to make mobs target/attack Valkyrien skies ships?
Cr0w37: Is this even possible? If so help me plz
RPG classes
Joaco2702: Hi, I'm trying to create different RPG-style classes for my modpack. I currently have six classes, and I'd like to know if anyone can help me create the code block for weapon debuffs for certain classes. I'm using GameStages for this.
How do I possibly use the hitbox when making a block
ItzByc (Ping on reply): I want to make a plushie with a model I have from blockbench but idk how to make it's hitbox workable
Use AnimationJS to cancel better combat animations
EyesEyes: Can I use __AnimationJS__ addon mod to directly __cancel better combat animations__?
block ui
rhyley: just need help with making a block with a ui i can change to allow me to make a custom way to craft something
System for filling loot table by difficult or tier
Hudoki Yicade: How I can create the system which can help me, I have a lot of items and a lot of structures, and I wanna put them into loot tables by their "tier" or "difficult", common item can be founded in overworld, uncommon in overworld with lower chance and in nether with default chance, rare items is common for ender etc
Change on fail
Mays: Is is possible to have a chance to fail with the pressure chamber from pneumatic craft