Jump to content

[1.19.2][SOLVED] costume recipe for mi mod lance whit costume tags as recipe pointing to mi mod knife


perromercenary00

Recommended Posts

hai

i'm doing some tools and weapons for the mod 
then comes the recipes
i want this items recipes to use minecraft tags way the recipes keeps working even if another mod cames an overrides the base materials


recipes-whit-tags-edit.gif

as you can see the knife recipe works the battleaxe recipe works 
but the lance recipe don't works 
this mod is named merctool
i have spend like a day triying things like moving the knife tag to the merctool folder 
dobble and trippple check item names and routes 
dont works and dont know why 



the knife 
 

{
  "type": "minecraft:crafting_shaped",
  "pattern": [
    " S ",
    " R "
  ],
  "key": {
    "S": {
      "tag": "minecraft:ingots/steel"
    },
    "R": {
      "tag": "minecraft:rods/carbon"
    }
    
  },
  "result": {
    "item": "merctool:knife_steel",
    "count": 1
  }
}

the battleaxe

{
  "type": "minecraft:crafting_shaped",
  "pattern": [
    "S S",
    "SRS",
    " R "
  ],
  "key": {
    "S": {
      "tag": "minecraft:ingots/steel"
    },
    "R": {
      "tag": "minecraft:rods/carbon"
    }
    
  },
  "result": {
    "item": "merctool:battleaxe_steel",
    "count": 1
  }
}

the lance 
 

{
  "type": "minecraft:crafting_shaped",
  "pattern": [
    "  K",
    " R ",
    "R  "
  ],
  "key": {
    "K": {
      "tag": "minecraft:knifes/steel"
    },  
    "S": {
      "tag": "minecraft:ingots/steel"
    },
    "R": {
      "tag": "minecraft:rods/carbon"
    }
    
  },
  "result": {
    "item": "merctool:lance_steel",
    "count": 1
  }
}

tags steel ingot 
src/main/resources/data/minecraft/tags/items/ingots/steel.json
 

{
  "replace": false,
  "values": [
    "merctool:ingot_steel"
  ]
}

tags rod carbon
src/main/resources/data/minecraft/tags/items/rods/carbon.json
 

{
  "replace": false,
  "values": [
    "merctool:rod_carbon"
  ]
}

tags knifes steel 
src/main/resources/data/minecraft/tags/items/knifes/steel.json

{
  "replace": false,
  "values": [
    "merctool:knife_steel"
  ]
}



can you help whit it can you see whats missing/wrong ?? 

thanks for your time 

Edited by perromercenary00
Link to comment
Share on other sites

I suggest you put the code on github so we can see everything in context and try it for ourselves.

Posting snippets is pretty useless unless there is an obvious error.

 

One thing I can see is you have an ingredient "S" in your lance recipe but never use it in the recipe. I don't know what happens in that case.

You should probably check your log for errors/warnings

 

Finally, you are using the wrong tags if your aim is interoperability with other mods.

e.g. minecraft:ingots/steel should be forge:ingots/steel.

https://forge.gemwire.uk/wiki/Tags#Items

https://github.com/BluSunrize/ImmersiveEngineering/blob/1.18.2/src/generated/resources/data/forge/tags/items/ingots/steel.json

  • Like 1

Boilerplate:

If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one.

If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install

Large files should be posted to a file sharing site like https://gist.github.com  You should also read the support forum sticky post.

Link to comment
Share on other sites

  • perromercenary00 changed the title to [1.19.2][SOLVED] costume recipe for mi mod lance whit costume tags as recipe pointing to mi mod knife

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.