TaCZ JS Mod Wiki › FAQ
TaCZ JS Mod FAQ
10 questions players actually ask, answered.
How do I start writing KubeJS scripts for TaCZ guns?
Create a new .js file in your KubeJS scripts folder, then use the TaCZ event handlers to access gun, attachment, and ammunition data. Start by listening to TaCZ-specific events that let you modify or add new items before the game loads them.
Can I change how fast a gun fires or its magazine size?
Yes, you can modify gun behavior through KubeJS scripts by adjusting properties like fire rate, magazine capacity, and reload time. These changes apply when you edit the gun's data in your script before the world loads.
What's the difference between modifying a gun and creating a new one?
Modifying an existing gun changes its properties in-place, while creating a new gun requires defining all its properties from scratch, including firing mechanics, attachments slots, and crafting recipes. Both use similar KubeJS syntax but serve different purposes.
How do I add custom attachments to an existing TaCZ gun?
Define your custom attachment in a KubeJS script with its properties (like scope magnification or recoil reduction), then assign it to a gun's attachment slots. The gun must have available attachment points that match your attachment type.
Can I make a gun that uses a different crafting recipe?
Yes, you can override the default crafting recipe for any TaCZ gun or ammunition using KubeJS recipe events, replacing ingredients or changing the recipe type entirely. This works the same as modifying recipes for other mods.
What happens if my KubeJS script has an error?
KubeJS will log the error to your game console and the script won't apply—your guns will keep their default behavior. Check the latest.log file in your .minecraft folder to find what went wrong in your script.
Can I disable or remove a gun from the mod?
Yes, you can remove guns or ammunition by deleting their index in a KubeJS script, which prevents them from being registered when the game loads. This is cleaner than hiding them and frees up item IDs.
Does TaCZ JS Mod work with other gun mods?
TaCZ JS Mod only customizes TaCZ content; it won't affect other gun mods. However, you can use KubeJS itself to modify recipes or mechanics for other mods in the same script file.
How do I change aiming zoom or recoil patterns for a gun?
Use KubeJS to modify the gun's aiming properties, such as zoom level and recoil behavior, by editing the relevant gun data before it loads. These changes affect how the gun feels when you aim down sights.
Will my custom guns work in multiplayer?
Yes, if all players have the same KubeJS scripts installed on the server and client, your custom guns will sync properly. Make sure everyone uses identical script files to avoid conflicts.