Support Tickets
This page is still WIP!
CustomNPCs mobs remove the custom goal
Andrezinh0: https://www.curseforge.com/minecraft/mc-mods/customnpcs-unofficial
modifying a recipe isn't working in player inventory
Dozzidog: I've been trying to modify a current recipe to use a different material
Editing Food Values
babyaintmoe: I have checked the prior support tickets regarding the topic, but I am sure I did it exactly like I am supposed to. The KubeJS logs don't return errors and I made no spelling mistakes. My changes don't apply to the food items ingame.
Can i recreate the flint knapping mechanic from no tree punching with kjs?
Creepy_Forest: So basically when u right click flint on stone, it "breaks" and gives u 2 flint shards. Can i recreate this? also im not using no tree punching cuz the config is broken
left click item making it log something
Wikter: Is there a way to make it so if player left clicks an item it would log that info like which player and what they left clicked? Like log in some file or something also to make it write a massage in chat so everyone would see it if someones got it
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?
Certain Create blueprints do not hide properly in JEI using KubeJS
Ryu_Ronin: I am trying to hide specific Create items/blueprints from JEI using KubeJS on Forge 1.20.1.
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.
Applying NBT tags to items via crafting
Sharky | Ping me: I currently have
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
neofoge 1.21.1 server kubejs script issue
π±π°π
π
: // hourly_cog_rewards.js
Limit flying player's speed
Holmes: I'm looking to limit players creative or /fly flying speed, and wanted to see if it's possible using kube. No idea where to start looking for that info, so anything helps.
Is there a way to change with which attribute iron spell book spells damage scales.
Lebbog: For example with minecraft generic magic
Giving a KubeJS recipe priority over an existing recipe
DiscoTech: I'm trying to make a script which uses Create's haunting recipe type to turn moss blocks into Vanilla Backport's pale moss blocks.
Create recipes have "invalid fluid input" with no fluid inputs
aaasperaaa: i'm working on porting a kubeJS script from 1.20.1 to 1.21, and have been getting an error that makes no sense to me:
Removing items from JEI based on ingredients
Meepx13: Title, I would like to remove all create machines from JEI that use andesite alloy (removing industry from create)
Failed to synchronize registry data from server
Shiba: For the past few days, I have been creating items on my server, but when my friend tries to join, he gets this error. We have tried everything, even putting the same folder that is on the server into my friend's client, and it doesn't work. What solution is there for this?
Add custom damage type in code
Micky: I've seen the 1.20 method for this, but I can't find an equivalent as of yet. Autocompletion is absolutely not helping, and the type provided can't evne be used.
Origins classes with personal recipes
Ezekiel: Hello all! I'm building a modpack with classes and custom recipes for them. Despite the fact that the Origins already has tools for this function, on 1.20.1 Forge it's bugged (tags isn't working, but I need to ban hundreds of recipes), and mod no longer supported.
how to get a block to interact with its gui
γͺγγ: I'm not good at coding. I need an item from slots 1 and 2 to be removed from the anvil when I right click on the anvil. I don't understand how I can access the anvil for this and what method to use.
Help trying to make an item with a random single enchant spawn in ANY chest
Soul: been trying to get a mods items to spawn in any chest not just the one the jar file has it set too and cant seem to get it right, if anyone could help that would be amazing.
Hide SpartanWeaponry tooltip properties
Estatrix: Is it possible to hide the Traits/Material tooltip from all items using Kube? They take too much space but I don't want to directly disable them
Silk Touch leads to infinite iron.
Nova: I customized drops for a minecraft ore block, and when I use silk touch on it it gives me more than just the ore block. How do I get it to drop only the iron ore block *when* it has silk touch?
Harder Raid
Vyehart: So Im currently trying to make raids harder and make them custom per Level of bad omen and per wave so far Ive been able to add custom equipment per wave and I can increase the amount of raiders that spawn from a pool of mobs however I want the higher levels of bad omen to trigger the additional spawns but I can only trigger them by changing the default bad omen level or the default multiplier in my script. Right now I have 3 items in my script to test Bad Omen Level a boss like mob that is intended to spawn on a Bad Omen Level 4 Wave 3 of a raid another intended event of only evokers spawning on Bad Omen Level 2 Wave 4 or a raid and the Multiplier that is also supposed to apply per level of Bad Omen. However my script is not getting the level of bad omen used to summon the raid Here is the script I am using. its to large to post as a script in this post.
Looking to convert a fix into a datapack
Aeratoth: So I made this fix for an issue I had with the create: factory must grow, and I want to convert it into a datapack so I can share the fix with others. The part that I can't figure out is how to get the "Amount:1000" into a datapack. If anyone knows how to do it, I would be super grateful.
how do I make this work to spawn tnt in the dirrection im looking?
Wikter: ```js
Is it possible to assign Nbt tag with number value to all instance of specific items?
Delphi: Is it possible? For context i am looking into creating a food expiry system for a modpack/server, and im trying to start with just trying to have food items universally start with a "freshness" level, if one could help me with the other steps that would be cool too but priority is just getting all the good items to have that.
theres a way to multiply the damage of all the weapons of a mod without making one by one?
GHOULST comm(1/5): im sorry, im kinda new with this, im trying to balance a modpack but theres to much weapons to go one by one
How do I remove recipes of other mods from my own NeoForge mod?
Ramen: I added KubeJS to my gradle and made a plugin for my mod, but I want to remove other mods recipes from my mod. Is this possible?
setTimeout only works after /reload?
Dusty: Title says it. setTimeout seems to never work, but suddenly is fine after reload?
tags not adding to items
weedocto: hey, im trying to add haunted harvest corn to #forge:crops/corn but it just... isnt working?
Mystical Customization
Game_MasterHD: It's not about KubeJS itself, but I know the scripts are similar.
How to create a block with different models based off blockstate
Korrel_le_clown: I cant figure out how to create a block with blockstates, .setBlockstateJson isnt recognized and .blockstateJson just creates a textureless block.
How do i change an items color based on nbt?
Laze: i was testing but could only find out how to change it this way:
Block texture not loading
Jack | Zephr: Trying to add a custom block and the texture is just not showing at all. Followed all the stuff on the wiki and looked in here for related questions but can't sus out why its not working. Any help would be appreciated. Also, I have file extensions enabled in Windows 11, so its not that I've added extra text that isn't needed and therefore its not matching what I have in the js.
1.20.1 Entity Loads Chunks
PierogiPL: Can i make an entity load chunks, kinda like a player, without the presence of a player needed tho
Random Starter Items
Cyan: How can I make it so the player gets a single item from a pre-defined list of items?
Replacing Apotheosis Gem loot tables with a custom item
Juni: Hi there! like the title says, i would like to replace all apotheosis gems in all loot tables with a general "gem" item, preferably a item matching to each tier of gem
How can I make a crafting recipe without consuming a certain item but rather wasting the durability
ItzByc (Ping on reply): What the title says pls
Cannot apply Custom Attributes/Tiers to Armor - How to build a Custom Piece of Armor?
EXPLO: Hello everyone. I am working on a modpack project that is strictly locked to specific mod versions due to dependencies. Because of this, I cannot simply "update to the latest version," so I need a solution that works within these constraints.
modify item durability
D.A.V.E.: I'm trying to modify the durability from the hammers and excavators of this mod. but the script doesn't work
Any idea to see what land claim an entity is in for FTB Chunks?
Zman.levi: I know the "/ftbchunks info" command exist, but it only returns a 1 if the entity is in a land claim, not specificially which claims it's in.
Can I blacklist/whitelist placing blocks in a specific dimensions?
QuiteQuiet7: I wanna make it so that the end dimension doesn't accept any block that isn't native to it and prevent the player from making a base there
Range Method???
♥β
TaraTheRatβ
♥: This modpack worked fine about 4-5 hours ago, but now it's giving me this error:
add a condition to LootJS.modifiers()
Osana: I want coins to drop when you break an ore, but obviously silktouch can exploit that. Ive tried .when and .conditions, but i don't know how.
Modified ATM9 error
freopt: I added and updated a bunch of mods in ATM9 and I get `Error in 'ServerEvents.recipes': An ingredient entry needs either a tag or an item` but it doesn't tell me where the error is. Some scripts end up broken like the magical soil recipe and botany pots for custom seeds and probably a bunch of others that I didn't notice.
Trying to make Vampire Bite
SUPERexter: It can't seem to work, I tried all the events that has something to do with interactions with right click!
I want to damage an entity when I right click with a bone
SUPERexter: It can't seem to work!
registering blocks that are multiple blocks in size
RJames: i need to explain this first, normally when you place a block, it obviously just places one block, however, there are mods out there which are larger than a single block, provided picture example is tanuki decor, where there are multiple furniture items which range from a 1x1x1 block to 1x2x1, 4x4x1, 1x1x3, 1x2x2 and so on. is there a reliable way to make these kinds of blocks in game using just kubejs
Restrict block placement/interaction to certain players
kummakapitany: I am currently using pufferfish's skills to make professions, and i originally wanted to use gamestages, but that mod is not out for 1.21.1. Is there a way to restrict block placement/interaction based on player tags/scoreboard data ?
can't clear villager gift loot from another mod????
SloppySlime: When you finish a raid, villagers may drop you free gifts, I've found the kubejs function to change it (ServerEvents.giftLootTables) despite the lack of wiki entry(which I might write whenever I'm finished with it) but clearing the pool only clears the vanilla items. I have a mod that gives the armor on certain occasion (10% chance) and I can't manage to remove it.
Model errors causing a crash when useing EntityJS to clone Naga from Mowzies mobs
Burning Sulphur: Just trying to make a Naga with a custom owl texture, before i edit the behaviour to remove the acid spitting. can run /summon but then the game crashes
Xp boost effect
Isaac: I'm trying to create an effect that boosts xp gain by 2x, I just have no clue how to do it. I checked the wiki and I don't quite understand.
any way to add a block update listener to a custom block?
Quadruplay: i'm making a sieve, so i gotta detect when sand/gravel/etc gets placed above. i could use the block placed event, but that excludes other methods of placement such as falling, so my best bet would be to check on every block update which these trigger
Preventing Weather Clear on Sleep
Kunfury: Is it possible to prevent the game from clearing the weather every time the night is slept through?
Register Tool Tiers with Custom Items
∫ntegral + C: Is there any way to get kjs to acknowledge the existence of custom items before registering tool tiers? I'm trying to register a tier that relies on a custom item but get the error that `kubejs:prismadark_ingot` doesn't exist:
remove cant_accelerate in atm 10
zebjonk: how do i remove a specific tag from a block (in my case the productive bees beehives)
Class NativeEventWrapper not allowed blocks the use of onEvent trigger
Lillo: ```const BuildCompletedEvent = Java.loadClass('com.minecolonies.api.eventbus.events.colony.buildings.BuildingConstructionModEvent');
Pickaxe generation
DarkstNight: So I have created several materials and want to make pickaxes based off of the materials. I have tiers for several ones and just want to see if it works, but there are instances where there is a material and a material type that match up. Here's what I want to happen: when two match up ie. superdense (infinity, space_time, dimensionally_transcendent, or interdimensional), making it use superdense stats, but multiplying durability by (infinity, space_time, dimensionally_transcendent, or interdimensional) and adding (1 (adding and extra 1 as it goes up through the tiers (infinity to space_time to dimensionally_transcendent to interdimensional))) to the rest of the stats.
Looking for a way to increase creature spawn attempts.
The743rdTankBat: I'm trying to increase the total number of creature-type mobs in my modpack. Is there a way to increase the number of creature spawn attempts the game makes on worldgen?
is it possible to change the default dimension in kubejs
Vanilama: im making a modpack right now and i want to make the player start in the aether instead of the overworld
bow charging idle animation for custom item
Bread Management: would it be possible to make the player have the animation of charging a bow play on loop whenever a specific item is being held?
Script
Aleeee: I can create a `/stats` command with Kube.js that tells me my deaths, blocks, distance traveled, and playtime.
How to get Every Number in a dynamic range
Owen: im looking to know how to get a script to run for every number within a range that can be specified. so for example, if the range is 5, then it would run the script with the number being 1, 2, 3, 4, and 5. kind of like
Error java.lang.UnsupportedOperationException on what seems like a correct script
Lillo: I know this isn't the correct version nor the correct loader, as i am using neoforge on 1.21.1, but i couldn't find a solution and i need your help. I was trying to create a custom quest with the FTB Quests mod that needed to trigger when the player reached a specific level of a specific building of the minecolonies mod. that seemes impossible to do, as there was no communication between FTB and KubeJS, so i headed this way, using a script to check both at the start of the world and at the completion of a building (using minecolonies api) and to check a map of needs and quests id to complete an empty quest via command. This has lead to an infinite amount of errors i have been able to fix, but this one. i've been running in circles and i can't find a logical solution to this. the server_events.js file is in the main kubejs folder, while the other scripts are in the server_scripts folder (i've read that this is the only way to make it work, but it seems there's a problem between kube and rhino). KubeJS is updated to its latest version
Perform block action on all chunks?
Kragnoth: I want to make it less obvious which chunks the player is in range of, and I want to spawm blocks/etc. Is there an event that I can tie into that will do this quietly without causing too many cascading chunk loading errors? I'd like to let's say do like what snowfall does... only with ash and block changes.
Custom Command Warp
Estatrix: Is it possible to make a custom command that works like a warp?
How to add attributeModifiers to items for the offhand slot?
Jimbob: There appears to be no option to specify the slot for attribute modifiers. Like below, I want to create a feather that when held in the off hand gives +5% Attack Damage, or any other attribute. However, at the moment this only changes the attribute when the feather is in the main hand, how can I make this work when its in the off hand? (This is in ItemEvents.modification)
limiting custom enchant levels
Cat :3: so there is this one mod that i like and after configing it enchants have multiple levels however i think some enchants should be stuck at the base level (with the default config which counts them as max level theyre too op)
Can't set player's absorption amount
Raio: `event.player.setAbsorptionAmount()` doesn't seems to work, no errors either
How to use BlockBuilder.color()
Dusty: Title says it pretty much. How is it used? I can't find a single example on google.
trying to figure out and understand how 'randomize' a recipe using the world seed
Tacocat!: in CABIN and A&B, there is a recipe that is different for every world. im trying to figure out how they codded it by looking inside the files but its a little dificult to understand considering im not very good at coding. was wondering if someone could assist so i can reverse engineer it.
Item.getItem() method not working properly?
milo: Trying to get the internal item for this block class' constructor as it is required. It seemingly isn't returning the internal item and is returning as air. I have verified the item id i am using is correct; and using `Block.getBlock()` works correctly and does return the internal block.
Change item durability
Kotara4: i want to make the slingshot from supplementaries be unbreakable, what is wrong
[1.21 NeoForge] Issues with ArmorMaterialBuilder.repairIngredient and linking Armor Items
Night: I'm encountering two issues while trying to register custom Armor Materials and Armor Items in KubeJS for Minecraft 1.21 (NeoForge).