Skip to content

Instantly share code, notes, and snippets.

@codetaylor
Last active July 16, 2019 00:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codetaylor/339381177a3ff7c341e7e155679eab6e to your computer and use it in GitHub Desktop.
Save codetaylor/339381177a3ff7c341e7e155679eab6e to your computer and use it in GitHub Desktop.

Recipes

The Pyrotech Worktable inherits recipes from the vanilla Crafting Table, but does so on-demand. This means that the recipes aren't actually created until the last possible moment. This dramatically reduces the memory overhead required by the Worktable recipes.

Remove Exclusive Worktable Recipe

Worktable.removeRecipes(IIngredient) removes any Worktable exclusive recipes that are added by the mod -- of which there are currently none. This method exists to remove recipes that might be explicitly added to Pyrotech's Worktable in the future.

Remove Crafting Table and Worktable Recipe

All of the recipes that Pyrotech adds to the Worktable are added via vanilla crafting recipes. Using recipes.remove(IIngredient) will remove a recipe for both the vanilla Crafting Table and Pyrotech's Worktable.

Remove Crafting Table Recipe

To remove a vanilla Crafting Table recipe, but leave the inherited Worktable recipe, remove both recipes using recipes.remove(IIngredient) and then add the removed recipe back to Pyrotech's Worktable using CraftTweaker.

Remove Only Worktable Recipe

To remove an inherited Worktable recipe, but leave the vanilla Crafting Table recipe, use Worktable.blacklistVanillaRecipes(string[]) supplied with an array of recipe resource locations as strings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment