Support Tickets
This page is still WIP!
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.
Block or plant breaks when block underneath it is broken
marcnum2: β¨```js
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.
Removing Red Sand Paper from Polishing Items in JEI
Mysticc: I'm trying to remove Create's Red Sand Paper and unify all Polishing under the normal Sand Paper item, but I can't seem to remove it from the list of Polishing items in JEI. I assume this is because it takes from the item's properties rather than any tag (since I've already removed the item from all tags), but does anyone know if there's a way to do this?
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
[Models][Armor] not showing
Mr.Fluff: im not sure what im doing wrong here but none show the modes they should when worn
hostile entity in the works
Dracoruff1211: how would i change this to be player? i want the mob to automatically attack the player(for now) till i make him use spells in tandem with animations.
automatic equipping items
Dracoruff1211: how would i automatically equip an item to an entity?
Can i make a mob break blocks in front of it?
HolyCartoon: One of the bosses in my modpack sometimes gets stuck on leaves / snow can i make it only break these blocks
I get an error because of unvalid text chars
cluxy: I think there is a encoding error because of my windows language. My windows language is turkish. When I tryna play a modpack this error popping up. I dont know why. I got this errors when I try to play Lucky World Invasion.
fire check
Π΄Π·ΡΡΡΠΈΠΊ: is there a way to check if an entity died from fire?
NBT Data when declaring items
jaro: hello! i was wondering if there was any way of adding nbt information to items when declaring them in the startup script, as id like the vanilla stat display (whats underlined in the first pic) to not show up
how do i make a block entity
rhyley: i want to make a block entity with a custom ui to craft
Warp, or set permanent spawn point every time a player connects to server.
Anonymous: Is it possible to set something up, where as soon as a player connects, they warp to a specific set of coordinates? In my case, tp -56 315 253 in the overworld dimension. But not effect things like respawning at beds etc. Just every time you connect, you spawn in an exact spot.
Trying to remove categories in emi/gui
CostlierSquid: Hello, my goal is to literally do what is said above, to remove categories seen in jei/emi. I tried using the the code listed here but it didn't work, so I would love to see if anyone could help me with this.
i want to make that moss block isnt at 65% but 100% in composter
Vetex: i dont know how to do it can someone help me?
How to add goal to zombies to throw projectiles at player when towering up?
EyesEyes: I also will later animate the zombie model's arms so there is a windup time for the player to react.
KubeJS Startup Script Errors
Anonymous: Sorry for my terrible English, it’s not my native language.
Custom armor models for clothing
seven: Posting this as a sequel to [this](https://discord.com/channels/303440391124942858/1464322649462149190), but with a lot less text: does KubeJS allow creation of custom armor with completely custom blockbench-made models and textures? I watched [this video](https://www.youtube.com/watch?v=kh1ojgpyenQ&pp=ygUdY3VzdG9tIGFybW9yIG1pbmVjcmFmdCBrdWJlanM%3D) but the custom armor's models seem to just be retextures of vanilla armor; my goal is to have custom clothing pieces such as hats, jackets, boots, all made through blockbench, but I haven't seen this being done anywhere while googling. Is my only option adding a clothing mod and changing the models and textures of clothing added by that mod, hoping the amount of items is enough? Is it even doable?
Entity lootjs not working on summoned entity
Stonurd: Hi, I added a loot to a entity the alexscaves:gingerbread_man and its not working AND working at the same time:
Prevent Bottling Water
BodhiSmith13: I want to prevent the player from filling water bottles by right clicking water blocks with glass bottles.
more than four spells
Dracoruff1211: as it turns out, on geckolib entities, you technically cant override their ais, since they uhhh ig have no ai??? its wierd. anyways since i found that out how would i give a mob more than 4 spells via this
event custom i have no idea
es7509: [01:14:35] [ERROR] ! generalrecipe.js#413: Error in 'ServerEvents.recipes': TypeError: Cannot find function toResultJson in object 1 ender_eye.
How to remove items so they don't show up in JEI/EMI and players won't be able to craft them?
Valerie: i read some of the posts regarding removing items but they are still pretty confusing to me. there are some duplicate items in my modpack and i want to remove them, how do i do that using kubeJS? also do i need to make a new .js file in the folder? which category will this be in? (client, startup, server)
Entityjs: creating new entities based on existing class but with different assets and hitbox
kirb: i want to use what i read on https://github.com/liopyu/EntityJS/wiki/Clone-Entity-Registry-Event to create new entities based on the class of an existing one, but i want their hitboxes, models etc to be different. Are the other parts of the wiki valid for this?
spell casting not working
Dracoruff1211: not using echoes of tyros version just for any wondering(not even sure if that would crash with irons js or irons js just wouldnt work)