nbt in recipes .json

Started by Foxyas on

Topic category: Help with modding (Java Edition)

Last seen on 16:07, 12. Apr 2024
Joined Nov 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
nbt in recipes .json

all you need is add "nbt": "{nbt:\"nbt:nbt\"}"

if your nbt use " like {potion:"minecraft:slowness"}

you go need use \ in start of " and before of " like 

"nbt": "{Potion:\"minecraft:slowness\"}"

if not you just need use the all nbt without \\

Hope this helps

Last seen on 16:07, 12. Apr 2024
Joined Nov 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
real example  { "type": …
Sun, 02/12/2023 - 01:23

real example 

{
  "type": "minecraft:crafting_shaped",
  "pattern": [
    " 1 ",
    "345",
    " 7 "
  ],
  "key": {
    "1": {
      "item": "minecraft:arrow"
    },
    "3": {
      "item": "minecraft:arrow"
    },
    "4": {
      "item": "example:seed"
    },
    "5": {
      "item": "minecraft:arrow"
    },
    "7": {
      "item": "minecraft:arrow"
    }
  },
  "result": {
    "item": "minecraft:tipped_arrow",
    "count": 4,
    "nbt": "{Potion:\"example:seedeffect\"}"
  }
}
Last seen on 08:39, 19. Nov 2023
Joined Jul 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Could you also state the…
Sat, 07/15/2023 - 23:38

Could you also state the values for enchantments?