Support Tickets
This page is still WIP!
resource bar
mintiestKitkat: is there any way to render a resource bar onto the screen? can RenderJS help with this?
Custom anvil repair -> Item cannot be retrieved from output slot
phistoh: I have the following script as a startup script
crafting error
oden | farming: how do i get a custom item to craft with in 9x9 ultimate crafting table just gets errorr all the time but i can see the item in jEi
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
Fluid texture not working, uses missing texture instead
Nerx: Images provided show the following:
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
Custom oregen
Yonder: I'm trying to make a custom ore spawn i have a configured feature and a placed feature but i don't see it anywhere, when i try /place it also fails
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
How can I change Properties for Mods?
Schmutzfink: It just says that Values like armorProtection, armorToughness and knockbackResistance aren't available
I need help with the spawners.
snawk_mong: Is it possible to make the mob spawner automatically break after a certain number of mobs appear? For example, if 3 mobs appear, the spawner breaks automatically, with a count per spawner and not a global count.
is it possible to change mob attack damage values
kirb: with kubejs? I want to nerf the warden's damage but i cant find any mod for it on forge so i hope it can be done with kube
Is there a way for me to use a model (.json) from my ticket in KubeJS? (NeoForge 1.21.1)
Amo minha Baiana<3: Message not found
How do i make item that when right clicked it will make a sound?
Rat wizard: And is there a way to add cooldown to that for example 0.5 second cooldown?
[TACZ] Getting Started
Rad Poseidon: I'm trying to customize TACZ to be more well integrated with my modpack. I attempted to remove all recipes matching ammo, but it doesn't seem like the TACZ workbenches use data, or if they do I didn't see any in the source.
KubeJS Create/Thermal stone cutter bug
Jerryrod826: I'm not a coder or anything but I'm playing the create above and beyond (with my own additions) and i started getting these errors and i didn't see any problems so i kept playing but i just realized i cant craft a screwdriver and therefore cannot craft precision mechanisms which is a huge problem.
Spawning structures
Moonlit Eclipse: I'm wanting to make a custom structure spawn in a specific location (think lore landmark for a modpack), are there any examples or resources I can look into to get a hint on how to spawn in a structure during world gen with kubejs's scripting? And for the same structure, is there a easy way to get the surface of a given coordinate, or do I need to loop through the top of the coordinate column until I find the lowest air block?
Prevent an item from dropping from an entity
Algrate: Hello, I'm trying to disable an item from dropping from a certain entity. But I have no idea how to do it. Can someone help me? Thanks
Altering Regional Difficulty with KubeJS
PotatoBro: Just wondering if this is even possible. I want to but I don't know the first possible step to do so.
Backstabs - Double all damage dealt from behind the player's back
Pakaru: Basically i want to add back stabs to Minecraft, all damage dealt within a 90 degrees cone behind the player's back would be doubled. Any help is appreciated, thanks!
I cannot start the mod because of this error any ideas ?
Fapley: Not original minecarft, playing from tlauncher
KubejsTweaks Disable/Ignore recipes
Danymaddox: Hey im having some problems with mod recipes failing to parse. I would like to remove/disable them. As far as I know i need to use KubejsTweaks but i cannot figure oout how to do it. Can anyone help me? π
is there a way to create a block that product infinity milk?
θ―ι³₯ι’¨ζ: like the cow in Jaw from cooking for block head
Giving effect to event entity.
RARE PANDA: how in the kubejs do i make an event entity not able to deal damage but still like push the player around? i cant figure out how to apply weakness as its not showing up in the probejs stuff.
get anvil slots for enchant comparison
SloppySlime: I am trying to remove enchant fusing (as in putting 2 items with the same enchant give you the level 2 of this enchant) and I've got a script that checks the right ingredient slot of the anvil, however I don't know how to get the left one.
cosmetics
Anonymous: hi so i wanted to make a thing on my server for like permanent cosmetics where people can equip them like if they have access, how can i go about making something like that
PersistentData QuestCompletionCount, pseudo script provided.
RARE PANDA: Hello im trying to make a kubejs (1.20.1 forge) script that saves the counts of each quests completion (in repeatable quests for example) so that it unlocks something when they complete the quest a certain ammount of times. if something like this is already in ftbquests plz tell.
Make custom fluid show ingots instead of mb in Tconstruct JEI
J.F. Lifesteal: Normal molten metals in tconstruct show the amount of ingots/nuggets of fluid in a recipe (where 1 ingot = 90mb). How can I do this with a custom fluid?
return food container after eating
Mixa279Ua: like i drink a drink and get a bottle back
BlockEvent silently registers for all events if ID doesn't exist
Mqrius: Ran into a bug where `BlockEvents.broken('#tfc:mineable_with_sharp_tool', event => {` would trigger on every block, because BlockEvents seems to want a block ID, not a tag.
registering new blockstates/properties to add to new blocks or using blockstates from mods
RJames: I know how to add properties to blocks when registering a new blocks using the property() method, however i want to know if it is possible to add/register my own properties so i can use that custom property for the specific blocks i want to make, or alternatively, use properties from other mods. which classes do i need to load to achieve this
is it possible to make a kubejs chest-GUI (neoforge-1.21.1)
Tuxy: so that if an item is seletcted itll run a command, etc,
`forEachRecipe` doesn't include newly added recipes
Aurif: I am trying to use `event.forEachRecipe` to iterate over all recipes of a specific type, however, it doesn't seem to include recipes that were added through kubejs itself.
No player needed spawners
T^T: Hello, is there any chance that it's possible to make code where you depends of clicking on spawner with for example create wrench and it's turning into spawner that doesn't need player near?
Making Rarer Mobs Naturally Spawn
EEX5: Alright so I'm trying to make it so rarer mobs(mobs with better armor, tools, even charged creepers) spawn more commonly/naturally. But I have NO IDEA how to use entity events on kube so that's why I need help.
Reading json in ServerEvents.generateData
Bord Listian: Is there a way to read a datapack json in the generateData event? I want to make small changes to vanilla files but currently the way to do this is to copy the entire thing into my js code.
can't get removing with a list to work.
PotatoBro: I honestly don't know what's happening. The top list appears to work but then the recipe reconstructs itself.
Seeing if its possible or not..
MangoNugget.π₯: My girlfriend wants a server with horror mods, personally i dont have much experience with them just that most will kill you almost instantly at any time, so i was wondering if kubejs could restrict the events and entity spawning
removing block cutting recipe
Melon: Im trying to remove the oak wood block cutting recipe but cannot figure it out.
Sophisticated Storage Reducing JEI Spam
KCtops6: Hello, looking to use RecipeViewerEvents to significantly limit the number of redundant chests, barrels, etc... appearing on JEI. Looking for some pointers on how to proceed with this. Help is appreciated in advance!
cant detect luckperms nodes.
Tuxy: [21:08:55] [Server thread/INFO] [minecraft/MinecraftServer]: tuxmango joined the game
How to disable mod mob summoned structures (i.e. custom golem patterns)
CostlierSquid: Hello, so I'm trying to disable the copper golem spawning from the caverns and chasms mod as unfortunately there is no config to disable it on its own. I have made a script that clears and deletes the entity almost instantly, which is great, but the blocks used in the pattern for creating the golem (carved pumpkin with lightning rod on top) get deleted, essentially wasting your materials. Is there a way to replace these blocks or never have them be removed in the first place. I am aware that the mod itself I believe is hard coded to remove the blocks, but is there any way to combat this? Would really appreciate some help. Thank you in advance.
Feature Request / Issue: Need animal protection in claimed chunks with FTB Chunks integration
Lucas Gabriel: In ATM10 (All The Mods 10) version 5.3.1, I'm trying to prevent players from damaging passive animals (cows, pigs, sheep, chickens, bees, etc.) in chunks claimed via FTB Chunks, unless they are the owner or an ally of the claim.
Do composter recipes work?
Phillip and Friends: I tried to make some custom composting recipes with ServerEvents.compostableRecipes, following some example scripts. The script reloads with no errors but the recipe doesn't do anything. Is this just broken on 1.20.1 Fabric, and if so, any chance it can be fixed in the near future?
Adding an existing AI goal to a different AI
Burning Sulphur: <@696035922030100561> , I know how to remove AI goals now. i'm struggling to understand the wiki on how to add AI goals. I want to add the skeleton bow attack to the zombie. I am struggling to understand how to use these examples https://github.com/liopyu/EntityJS/wiki/AI-Creation
CustomNPCs mobs remove the custom goal
Andrezinh0: https://www.curseforge.com/minecraft/mc-mods/customnpcs-unofficial
I wanna bonemeal bedrock/stone to grow glow lichen on it
QuiteQuiet7: I tried don't with Blockevents.rightClicked and specify bonemeal in main hand, idk how to do that, and I tried asking gpt about it, who was undeniably useless and I know I'm not supposed to post ai code here.
Updating LDLib dynamic texture
Blakil: Am I right in thinking that it's impossible to update dynamic textures with data from the server? I'm facing a chicken-and-egg problem: it's impossible to update data entirely via DynamicTexture in server_scripts. So I have to use client_scripts, which in turn can't reach the server because there's no protocol for transferring large amounts of data?
Food Modifications
Kotara4: im trying to edit some food items but its not working
Can someone help me add a custom coolant for powah generators?
Fire_VA: I've been trying to add ether gas as a coolant for powah reactors but everything I've tried hasn't worked and I was hoping to get some help here
Change item attributes after crafting
shrimpo: My plan is to increase my sword's damage every time I craft it in a certain way.
Can i make it to where when you create a world you execute a command or get a item only once
TripleBomb: Hi i’m wondering if i cane make to where a person creates a world they get an item or execute a command only once, even if they rejoin the world
2d in inventory 3d model when held for kubejs blocks
YigitAKLN: is this possible if so how please i need it as fast as possible <:prayge:1441401806797148261>
Need help: Simulating player kill on mobs for Apotheosis drops (NeoForge 1.21.1)
Kacper:): Hi everyone,
replaceInput with tags
Owleee: I want to, for example, change every instance of `farmersdelight:onion` in cooking recipes to `#kubejs:onions`, but this also affects recipes with the ingredient `#forge:vegetables` as the onion item has this tag. is there a way to only target specifically the onion item but not the tag that contains it?
A custom command that requires a player to be in a scoreboard team
MasterNinad: [Latest 1.21.1 Neoforge Build of KubeJS]
[Bug?] KubeJS Create Thinks Tags Contain a Fluid
ratemisia!: 1.21.1, NeoForge 21.1.216.
unify items
NotNagato: hi im trying to unify items and im not sure where to start with it i started manually removing and replacing each recipe that had the item i wanted to replace in but then more and more things came out like block drops and chest loot if there is a way to fix this easier than replacing each item manually can someone please help me T_T
prevent default behavior for advancement rewards from advancement event
asof: i'm attempting to intercept the default behavior to make the "loot" reward type only claim when the player actually chooses to claim the item.
command builder accept any advancement namespace
asof: there's the "resource location" proprety, but how would i specify what kind of resource it uses? i'd want this command to only accept advancements.
Making silly custom items
Wikter: So I made like 2 items so far 1 is air strike which summons tnt from air and second is graveyard that summons skeletons
add.items for fabric 1.20.1
mr_ron: how does one add items so they're not hidden in REI if only a few recipes/items are wanted from a particular mod?
Change entity max health with a command
Jmynii: is there a way to change the max health of an entity with a command using entityjs?
make an item unobtainable if it doesn't have specific nbt tag
SloppySlime: title, I want the player to only get an item from a certain source, this source gives the item nbt data that is unique to it. I want the player not to be able to get the item if it's not this specific one.However I don't know how to do that