#Custom Crafting Table (Recipes Using Predicates)

1 messages · Page 1 of 1 (latest)

jolly violet
#

Ive made some custom crafters in the past but with a lot changing in the NBT for the newer version im not quite sure what im doing wrong. If you know how to fix this what is the best place to look for updated documents on how this works. Ive seen some wikis but some of the pages say "This is outdated" so I cant really find reliable data for the new versions yet

This is just a simple test to see how it works in the new version but I pretty much have an entity on the barrel running this on tick to see if the predicate matches and I am not getting the say output for it so its never hitting true. Im assuming something changed with how I check I just cant find anything anywhere for this.

Note: the reason I am using the barrel is because I made custom items that are all command blocks I would be reading the item_model on the item when crafting which I would not be able to do in the normal crafting table

{
    "condition": "minecraft:any_of",
    "terms": [
      {
        "condition": "minecraft:location_check",
        "predicate": {
          "block": {
            "blocks": ["minecraft:barrel"],
            "nbt": "{Items:[{Slot:1b,id:\"minecraft:command_block\",count:1}]}"
          }
        }
      }
    ]
  }
floral treeBOT
#

<@&1201956957406109788>

Someone will come and help soon!

💬 While you wait, take this time to provide more context and details.

🙇 If nobody has answered you by <t:1744156699:t>, feel free to use the Summon Helpers button to ping our helper team.

✅ Once your question has been resolved (or you no longer need it), please click Resolve Question or run /resolve

magic torrent
#

Well I think the main issue here is that Count is not count and is an integer, not a byte (so no b)

jolly violet
#

Just changed it still doesnt seem to fire

This is the line im running in tick just to make sure this is correct as well
execute if predicate som:shieldofminecraft unless block ~ ~ ~ barrel{Items:[{Slot:15b, id:"minecraft:shield"}]} if entity @s[tag=!crafting_shield] run say "Predicate Works"

#

This is the block data with the command block in it if it helps

#

I also have tried
"nbt": "{Items:[{count:1, Slot:1b, id:'minecraft:command_block'}]}" for the nbt tag to match it still doesnt seem to work

magic torrent
#

Have you tried just the predicate, without any of the other if or unless arguments?

jolly violet
#

If you mean this
execute if predicate som:shieldofminecraft run say "Predicate Works"
This doesnt work either

#

I think it might not be whats inside of the barrel because now that I get rid of the nbt field its still not saying while the only thing being the blocks: [minecraft:barrel]

magic torrent
#

You may not be executing the predicate check at the barrel's location, then

jolly violet
#

Ok I am stupid and was placing the barrel in the incorrect place lol thanks