NTP overrides CraftTweaker recipes - 1.18.2
doarlock opened this issue ยท 1 comments
Issue description
minecraft1.18.2 - forge-40.2.21
CraftTweaker-forge-1.18.2-9.1.211
notreepunching-forge-1.18.2-5.1.0
I'm trying to re-enable wooden and stone tools recipes but got this error on crafttweaker log file. The recipe is disabled automatically by getting this error.
[17:53:17.532][INFO]: Successfully identified and loaded plugin jeitweaker:default
[17:53:17.608][INFO]: Successfully identified and loaded plugin crafttweaker:builtin
[17:53:17.609][INFO]: Successfully identified and loaded plugin crafttweaker:builtin_forge
[17:53:17.688][INFO]: Successfully identified and loaded plugin botania:default
[17:53:21.574][INFO]: The following mods have explicit CraftTweaker support through the default plugin:
[17:53:21.577][INFO]: - 'aquaculture' at version '1.18.2-2.3.12'
[17:53:21.577][INFO]: - 'botania' at version '1.18.2-435'
[17:53:21.577][INFO]: - 'crafttweaker' at version '9.1.211'
[17:53:21.577][INFO]: - 'farmersdelight' at version '1.18.2-1.2.3'
[17:53:21.577][INFO]: - 'jeitweaker' at version '3.0.0.9'
[17:53:21.577][INFO]: - 'vampirism_integrations' at version '1.7.0-beta.1'
[17:53:44.836][INFO]: Started loading scripts for loader 'initialize'
[17:53:45.362][INFO]: Compiling and executing scripts
[17:53:45.427][INFO]: Successfully initialized modules [crafttweaker, expansions]
[17:53:45.572][INFO]: Execution for loader 'initialize' completed successfully
[17:56:21.157][INFO]: Started loading scripts for loader 'tags'
[17:56:21.176][INFO]: Compiling and executing scripts
[17:56:21.187][INFO]: Successfully initialized modules [crafttweaker, expansions]
[17:56:21.194][INFO]: Execution for loader 'tags' completed successfully
[17:56:27.743][INFO]: Started loading scripts for loader 'crafttweaker'
[17:56:27.760][INFO]: Compiling and executing scripts
[17:56:28.073][INFO]: Successfully initialized modules [mods, crafttweaker, expansions]
[17:56:28.074][INFO]: Loading file 'zzz_treepunching.zs' with priority 0
[17:56:28.106][ERROR]: zzz_treepunching.zs:19:0: zzz_treepunching.zs:19:0: No compatible methods found!
[17:56:28.107][ERROR]: zzz_treepunching.zs:31:0: zzz_treepunching.zs:31:0: No compatible methods found!
[17:56:28.107][ERROR]: zzz_treepunching.zs:49:0: zzz_treepunching.zs:49:0: No compatible methods found!
[17:56:28.107][ERROR]: zzz_treepunching.zs:61:0: zzz_treepunching.zs:61:0: No compatible methods found!
[17:56:28.107][ERROR]: Scripts are invalid!
[17:56:28.108][INFO]: Execution for loader 'crafttweaker' completed successfully
[17:56:28.109][INFO]: This reload was made possible by Jessie Sims and more! Become a patron at https://patreon.com/jaredlll08?s=crtmod
I attached my script. (I changed to .txt format in order to be able to upload it)
Steps to reproduce
No response
Script used
https://gist.github.com/doarlock/f8f0e4717a664f319be9b20bfd4f8150
The crafttweaker.log file
https://gist.github.com/doarlock/955929b9d91c8e621512530106de37c6
Minecraft version
1.18
Modloader
Forge
Modloader version
40.2.21
CraftTweaker version
9.1.211
Other relevant information
I already reported this to NTP's author but he closed the incident with this comment:
"Your script is wrong, this has nothing to do with my mod, this has everything to do with your script being wrong. Ask craft tweaker people."
alcatrazEscapee/no-tree-punching#311
The latest.log file
https://gist.github.com/doarlock/2d928bf1eaf32d4f5ce929c921bd75f0
Please take a look at the docs for shaped mirrored recipes https://docs.blamejared.com/1.18/en/tutorial/Recipes/Crafting/MirroredShapedRecipes
Your entire script should look like this:
import crafttweaker.api.recipe.MirrorAxis;
craftingTable.addShaped("wood_pickaxe", <item:minecraft:wooden_pickaxe>, [
[<tag:items:minecraft:planks>, <tag:items:minecraft:planks>, <tag:items:minecraft:planks>],
[<item:minecraft:air>, <tag:items:forge:rods/wooden>, <item:minecraft:air>],
[<item:minecraft:air>, <tag:items:forge:rods/wooden>, <item:minecraft:air>]
]);
craftingTable.addShaped("wood_sword", <item:minecraft:wooden_sword>, [
[<tag:items:minecraft:planks>],
[<tag:items:minecraft:planks>],
[<tag:items:forge:rods/wooden>]
]);
craftingTable.addShapedMirrored("wood_hoe", MirrorAxis.ALL, <item:minecraft:wooden_hoe>, [
[<tag:items:minecraft:planks>, <tag:items:minecraft:planks>],
[<tag:items:forge:rods/wooden>, <item:minecraft:air>],
[<tag:items:forge:rods/wooden>, <item:minecraft:air>]
]);
craftingTable.addShaped("wood_shovel", <item:minecraft:wooden_shovel>, [
[<tag:items:minecraft:planks>],
[<tag:items:forge:rods/wooden>],
[<tag:items:forge:rods/wooden>]
]);
craftingTable.addShapedMirrored("wood_axe", MirrorAxis.ALL, <item:minecraft:wooden_axe>, [
[<tag:items:minecraft:planks>, <tag:items:minecraft:planks>],
[<tag:items:minecraft:planks>, <tag:items:forge:rods/wooden>],
[<item:minecraft:air>, <tag:items:forge:rods/wooden>]
]);
craftingTable.addShaped("cobble_pickaxe", <item:minecraft:stone_pickaxe>, [
[<tag:items:forge:cobblestone>, <tag:items:forge:cobblestone>, <tag:items:forge:cobblestone>],
[<item:minecraft:air>, <tag:items:forge:rods/wooden>, <item:minecraft:air>],
[<item:minecraft:air>, <tag:items:forge:rods/wooden>, <item:minecraft:air>]
]);
craftingTable.addShaped("cobble_sword", <item:minecraft:stone_sword>, [
[<tag:items:forge:cobblestone>],
[<tag:items:forge:cobblestone>],
[<tag:items:forge:rods/wooden>]
]);
craftingTable.addShapedMirrored("cobble_hoe", MirrorAxis.ALL, <item:minecraft:stone_hoe>, [
[<tag:items:forge:cobblestone>, <tag:items:forge:cobblestone>],
[<tag:items:forge:rods/wooden>, <item:minecraft:air>],
[<tag:items:forge:rods/wooden>, <item:minecraft:air>]
]);
craftingTable.addShaped("cobble_shovel", <item:minecraft:stone_shovel>, [
[<tag:items:forge:cobblestone>],
[<tag:items:forge:rods/wooden>],
[<tag:items:forge:rods/wooden>]
]);
craftingTable.addShapedMirrored("cobble_axe", MirrorAxis.ALL, <item:minecraft:stone_axe>, [
[<tag:items:forge:cobblestone>, <tag:items:forge:cobblestone>],
[<tag:items:forge:cobblestone>, <tag:items:forge:rods/wooden>],
[<item:minecraft:air>, <tag:items:forge:rods/wooden>]
]);
while not an error, I did remove potentially unwanted air slots that would force the recipe to be made in the center of the table.