Support Tickets


This page is still WIP!

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.

πŸ’¬ 2 • 1.21 • Forge • 

make block entity run command?

MintiestKitKat: is there a way to make a block entity run a command?

πŸ’¬ 1 • 1.20.1 • Forge • 

check if sound exists?

MintiestKitKat: is there a way to check whether an element in the sound registry actually exists?

πŸ’¬ 2 • 1.20.1 • Forge • 

Custom Create recipe error, but only on first load

✨ Iris ✨: When my server loads, I get this error:

πŸ’¬ 1 • 1.21 • Forge • 

Finding the entry that doesnt match a list

Pambo: Hey! I'm trying to find which entry of 'currentRank' does not match 'rankremove'. I've tried deleting the parts of currentRank that dont match but I'm kinda lost trying to look up java methods for modifying lists, arrays, strings and whatnot and most of them dont seem to work.

πŸ’¬ 4 • 1.20.1 • Forge • 

how to prevent BlockEvents.leftClicked firing twice?

IIIap: ```js

πŸ’¬ 1 • 1.20.1 • Forge • 

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.

πŸ’¬ 2 • 1.20.1 • Forge • 

I need help creating a script what replaces a block with another block once broken

Jake: Iv been going at this for hours i cant figure out how to do this. I need to replace a ore block with cobblestone when mined. It must still drop the raw iron/whatever it is.

πŸ’¬ 5 • 1.20.1 • Forge • 

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

πŸ’¬ 2 • 1.21 • Forge • 

how do i remove the kubejs tag

α’ͺᗩᐯᗩ: how do i remove the blue writing that says kubejs

πŸ’¬ 5 • 1.21 • Forge • 

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?

πŸ’¬ 1 • 1.20.1 • Fabric • 

Are there any block and/or node coding applications around for kubejs?

Deano: I think itd be really useful for me

πŸ’¬ 41 • 1.20.1 • Forge • 

code

SnakDog: Why does kubjs say it doesn't know the recipe type: mekmm:replicating?

πŸ’¬ 4 • 1.20.1 • Forge • 

[Errors] updated from 1.20.1 to 1.21.1

Mr.Fluff: the errors:

πŸ’¬ 3 • 1.21 • Forge • 

Different Drops Based On Tool

Eccentrikk: Heyo!

πŸ’¬ 14 • 1.21 • Forge • 

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

πŸ’¬ 2 • 1.20.1 • Forge • 

Change custom fluid bucket texture

ggerald_: How can I change the bucket texture of my custom fluid

πŸ’¬ 1 • 1.20.1 • Forge • 

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.

πŸ’¬ 1 • 1.20.1 • Forge • 

Block or plant breaks when block underneath it is broken

marcnum2: ⁨```js

πŸ’¬ 2 • 1.20.1 • Forge • 

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

πŸ’¬ 26 • 1.21 • Forge • 

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.

πŸ’¬ 16 • 1.21 • Forge • 

Wiki for it:

Anonymous: Wiki for how we can use javadocs in kjs please dont say learn java

πŸ’¬ 3 • Unknown • Forge/Fabric • 

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.

πŸ’¬ 16 • 1.20.1 • Forge • 

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?

πŸ’¬ 1 • 1.20.1 • Forge • 

Replace Creeper Explosion with Firework Rocket

Lampent51: _Overall, I'm trying to prevent creepers from damaging blocks, while still damaging players, so I figured fireworks are a nice compromise._

πŸ’¬ 1 • 1.21 • Forge • 

document πŸ”’

Anonymous: docs for kubejs

πŸ’¬ 2 • Unknown • Forge/Fabric • 

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?

πŸ’¬ 2 • 1.21 • Forge • 

client command

Anonymous: how i can add client commands.

πŸ’¬ 13 • 1.21 • Forge • 

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.

πŸ’¬ 2 • 1.21 • Forge • 

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?

πŸ’¬ 1 • 1.21 • Forge • 

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)

πŸ’¬ 1 • 1.21 • Forge • 

Cast MappedRegistry to Registry?

Dakedres: I'm updating this hexcasting script to 1.20.1 and I'm getting the following error:

πŸ’¬ 13 • 1.20.1 • Forge • 

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

πŸ’¬ 3 • 1.21 • Forge • 

Breaking blocks with a certain tool yields different results.

Bøneless420: I'm wanting to mine copper with a stone pickaxe to make it drop nuggets, but only a stone pick. I'm having trouble approaching this and I would like some pointers pretty please :).

πŸ’¬ 4 • 1.21 • Forge • 

Anyone with presets for “create”recipes

Bnx1: 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.

πŸ’¬ 1 • 1.21 • Forge • 

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.

πŸ’¬ 30 • 1.20.1 • Forge • 

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.

πŸ’¬ 1 • 1.21 • Forge • 

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:

πŸ’¬ 2 • 1.20.1 • Forge • 

Making Bosses inflict debuffs when players are near

Nonden: So basicly the title i want to buff boss monsters so they give debbufs to players and absoription to themself so it can go past 1024 hp cap. Because some items in the modpack are broken and players are fully geared up beafore going end.

πŸ’¬ 7 • 1.20.1 • Forge • 

Whitelisting items in JEI

Comfy Echo: i trying to figure out how to Hide all items in a Mod whilst keeping a certain few

πŸ’¬ 19 • 1.20.1 • Forge • 

Block registry with all 6 sides

Fluffy Red Panda: how do i do it?

πŸ’¬ 3 • 1.20.1 • Forge • 

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.

πŸ’¬ 11 • 1.20.1 • Forge • 

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

πŸ’¬ 2 • 1.20.1 • Forge • 

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

πŸ’¬ 19 • 1.21 • Forge • 

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)

πŸ’¬ 2 • 1.21 • Forge • 

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>

πŸ’¬ 35 • 1.21 • Forge • 

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

πŸ’¬ 28 • 1.21 • Forge • 

Item Fluid Value

♣Khalito♣: How would I make an item have a fluid value? Similar to how a water bucket is equal to 1000 mB

πŸ’¬ 2 • 1.20.1 • Forge • 

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?

πŸ’¬ 1 • 1.20.1 • Forge • 

Apotheosis Attributes

Ouppy Elle: is there a way to have items that are crafted gain a random apotheotic attribute, similar to terrarias random prefixs

πŸ’¬ 1 • 1.21 • Forge • 

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

πŸ’¬ 6 • 1.20.1 • Forge • 

Can I add custom mobs in custom structures?

Hudoki Yicade: with kubejs?

πŸ’¬ 4 • 1.20.1 • Forge • 

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.

πŸ’¬ 11 • 1.21 • Forge • 

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.

πŸ’¬ 12 • 1.21 • Forge • 

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

πŸ’¬ 6 • 1.21 • Forge • 

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.

πŸ’¬ 2 • 1.21 • Forge • 

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.

πŸ’¬ 3 • 1.20.1 • Forge • 

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?

πŸ’¬ 3 • 1.20.1 • Forge • 

how to make mobs target/attack Valkyrien skies ships?

Cr0w37: Is this even possible? If so help me plz

πŸ’¬ 5 • 1.20.1 • Forge • 

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.

πŸ’¬ 4 • 1.20.1 • Forge • 

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

πŸ’¬ 1 • 1.20.1 • Forge • 

Use AnimationJS to cancel better combat animations

EyesEyes: Can I use __AnimationJS__ addon mod to directly __cancel better combat animations__?

πŸ’¬ 113 • 1.20.1 • Forge • 

How do I make one item become another item by dropping it?

TheEpicDragonCat: I don't need much help just the names of the commands that would make this possible.

πŸ’¬ 26 • 1.20.1 • Forge • 

Troubles with Java.loadClass and models

Ioan4ik: ```

πŸ’¬ 1 • 1.20.1 • Forge • 

get the real spawnpoint/detect broken beds

Pafeu: ```js

πŸ’¬ 10 • 1.20.1 • Forge • 

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

πŸ’¬ 1 • 1.20.1 • Forge • 

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

πŸ’¬ 1 • 1.20.1 • Forge • 

Change on fail

Mays: Is is possible to have a chance to fail with the pressure chamber from pneumatic craft

πŸ’¬ 5 • 1.21 • Forge • 

[Models][Armor] not showing

Mr.Fluff: im not sure what im doing wrong here but none show the modes they should when worn

πŸ’¬ 4 • 1.20.1 • Fabric • 

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.

πŸ’¬ 1 • 1.20.1 • Forge • 

automatic equipping items

Dracoruff1211: how would i automatically equip an item to an entity?

πŸ’¬ 1 • 1.20.1 • Forge • 

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

πŸ’¬ 1 • 1.20.1 • Forge • 

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.

πŸ’¬ 8 • 1.20.1 • Forge • 

fire check

Π΄Π·ΡŽΡ€Ρ‡ΠΈΠΊ: is there a way to check if an entity died from fire?

πŸ’¬ 5 • 1.20.1 • Forge • 

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

πŸ’¬ 15 • 1.20.1 • Forge • 

how do i make a block entity

rhyley: i want to make a block entity with a custom ui to craft

πŸ’¬ 2 • 1.20.1 • Forge • 

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.

πŸ’¬ 3 • 1.20.1 • Forge • 

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.

πŸ’¬ 2 • 1.20.1 • Forge • 

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?

πŸ’¬ 29 • 1.20.1 • Forge • 

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.

πŸ’¬ 10 • 1.20.1 • Forge • 

KubeJS Startup Script Errors

Anonymous: Sorry for my terrible English, it’s not my native language.

πŸ’¬ 9 • 1.20.1 • Forge • 

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?

πŸ’¬ 7 • 1.20.1 • Forge • 

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:

πŸ’¬ 10 • 1.20.1 • Forge • 

Prevent Bottling Water

BodhiSmith13: I want to prevent the player from filling water bottles by right clicking water blocks with glass bottles.

πŸ’¬ 3 • 1.20.1 • Forge • 

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

πŸ’¬ 11 • 1.20.1 • Forge • 

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.

πŸ’¬ 3 • 1.20.1 • Forge • 

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)

πŸ’¬ 6 • 1.21 • Forge • 

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?

πŸ’¬ 7 • 1.20.1 • Forge • 

place certain water level

LLDJ: ```js

πŸ’¬ 47 • 1.20.1 • Forge • 

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)

πŸ’¬ 10 • 1.20.1 • Forge • 

Broad Curios + KJS question for custom clothing

seven: Prefacing this by saying that I'm new to working with Minecraft scripting/modding in general. I'm currently working on the modpack for a server I'm working on, and I couldn't find a mod online that added clothing I found on-brand with the server's steam/decopunk theme and allowed KJS to add/remove/edit said clothing. So, by doing some brainstorming and googling, I imagined this approach:

πŸ’¬ 51 • 1.20.1 • Forge • 

Component syntax in custom recipe works in one case and not another (for the same recipe)

heimdal: I have a mod recipe for which I'm trying to add an item with a component. I've got a working syntax which gives a valid result for one input, but when I use the same syntax on a different input (for the exact same recipe, so literally just changing the strings) it throws an error (exception occured when decoding a given StructField [Field: ingredients]).

πŸ’¬ 12 • 1.21 • Forge • 

How do I make a recipe keep enchantments

wan6845: I'm trying to make a recipe for a helmet that requires another helmet (crafting table recipe), is it possible to transfer the enchantments from the original helmet to the new crafted helmet

πŸ’¬ 1 • 1.20.1 • Forge • 

Lower water level with right click

LLDJ: I have a mod that adds water physics and legendary survival overhaul. i want to make it so that when you right click water with a canteen it lowers the water level by 1.

πŸ’¬ 1 • 1.20.1 • Forge • 

Make every tool have one durability and "Use Tinker Tools" tooltip, but not tinker tools

Fluffy Red Panda: pickaxe, shovel, axe, hoe and sword but not with #forge:tools tag

πŸ’¬ 8 • 1.20.1 • Forge • 

block entity help

rhyley: i need help with getting a block entity working with a ui for "crafting"

πŸ’¬ 1 • 1.20.1 • Forge • 

How to check nbt on block

Hudoki Yicade: I want to make it so that when I place a block, there is a tag on it, and so that in the future, blocks that appear in the world from a certain list cannot be mined by the player, but if the player himself placed the block, then he could mine it

πŸ’¬ 2 • 1.20.1 • Forge • 

How to make create mixer not consume item

Bladereaper: Hi, I am trying to setup a script to make it so the create mixer can mix an item but not consume the template in the basin just the ingot, how would I do this? I couldn't find any documentation of it?

πŸ’¬ 15 • 1.20.1 • Forge • 

block entitys

rhyley: just want some help to find a template for block entitys and all the different things i can do to then aka like gui and stuff like that just want to know some options

πŸ’¬ 1 • 1.20.1 • Forge • 

[REI] NBT

Mr.Fluff: how do i properly format this for NBT?

πŸ’¬ 2 • 1.20.1 • Fabric • 

Showing 100/11187 posts