
CraftTweaker x SBW
Control the Superb Warfare recipes with CraftTweaker: remove, change or add the recipes of weapons, ammunition and vehicles. Your scripts have priority over my SBW Remoove recipe mods.
Why this mod ?
Superb Warfare recipes are easy to edit with CraftTweaker, but the SBW Remoove recipe mods remove recipes after your scripts have run, including the ones you added.
With this mod, remove everything, then give back only what you want, at the price you want. Perfect for modpacks, adventure maps and roleplay servers.
What the mod does
- A recipe added by a script stays craftable, even if a Remoove recipe mod removes that item.
- A recipe removed by a script stays removed.
- Everything your scripts do not mention follows the configuration of the Remoove recipe mods.
- Nothing new to learn: you write normal CraftTweaker scripts.
Put a .zs file in the scripts folder:
// The AK-47 now costs 1 diamond
craftingTable.addShapeless("ak47_diamond", <item:superbwarfare:ak_47>, [<item:minecraft:diamond>]);
// 48 rifle rounds for 1 flint
craftingTable.addShapeless("rifle_ammo_flint", <item:superbwarfare:rifle_ammo> * 48, [<item:minecraft:flint>]);
// A vehicle, on the vehicle assembling table
<recipetype:superbwarfare:vehicle_assembling>.addJsonRecipe("type63_diamond", {
"category": "defense",
"inputs": ["1 minecraft:diamond"],
"result": {"entity": "superbwarfare:type_63"}
});
Changes are applied with /reload or after a restart.
Useful commands
| Script | Effect |
|---|---|
craftingTable.addShaped(name, output, pattern) |
Adds a shaped recipe |
craftingTable.addShapeless(name, output, ingredients) |
Adds a shapeless recipe |
craftingTable.removeByName(name) |
Removes a single crafting table recipe |
<recipetype:minecraft:smithing>.removeByName(name) |
Removes a single smithing table recipe |
<recipetype:superbwarfare:vehicle_assembling>.addJsonRecipe(name, data) |
Adds a vehicle recipe |
<recipetype:superbwarfare:vehicle_assembling>.removeByName(name) |
Removes a single vehicle recipe |
To change a recipe, remove it and add your own. All vehicles share the same item, so remove them by name:
<recipetype:superbwarfare:vehicle_assembling>.removeByName("superbwarfare:type_63");
Works with SBW Remoove recipe
Made for my SBW Remoove recipe series. Install one, two or all three:
Requirements
- Minecraft 1.20.1 with Forge 47 or newer, or Minecraft 1.21.1 with NeoForge 21.1 or newer.
- CraftTweaker, Superb Warfare and at least one SBW Remoove recipe mod (without them, this mod does nothing).
- In multiplayer, the server decides: install the mod on the server. In singleplayer, just install it.
FAQ
My script recipe appears as false in a Remoove recipe config. This is normal: it stays craftable. To disable it, delete it from your script.
The game crashes on startup with animTime in GeoModel. This comes from Superb Warfare 0.8.9.2 on 1.20.1 with GeckoLib 4.8.6, not from this mod. Use GeckoLib 4.4.6.
License
Mod created by Mozork. All rights reserved.