Skip to main content

NBT Tags

Comments

9 comments

  • Paul Allington

    this definitely looks close to what we need - but the question I guess is how it's used in MCEE

    0
  • Debbie Alexander
    Moderator Beacon of Knowledge Super Star

    I'm thinking you use this code, with rocket (not wooden axe) and instead of can_destroy, we need to find the right "minecraft:projectile": { "on_hit": stuff??? idk. All new to me. lol. (The code syntax is from Python AZNB in the blocks tab.)

     

    ['wooden axe', 0, '{"minecraft:can_destroy":{"blocks":["log2"]}}']
    0
  • Paul Allington

    Forgive me, what does AZNB mean?

    0
  • Moderator Beacon of Knowledge Super Star

    No problem! I am just too lazy to type out Python Azure Notebook, which is the version of Python you choose when you pick the blue notebook. This is contrasted with the version of Python (also fun!) in MakeCode, which you can choose within the block coding interface (the pink puzzle piece.)

    0
  • Daniel Masi

    Is it possible to create a custom Wandering tradesman that offers custom tools and trades with things other than emeralds using NBT?

    Here is an example provided by ChatGPT for Education Edition. 

    summon wandering_trader ~ ~ ~ {Offers:{Recipes:[{buy:{id:"minecraft:oak_log",Count:16b},sell:{id:"minecraft:diamond_pickaxe",Count:1b,tag:{display:{Name:"Custom Pickaxe"},CanDestroy:["minecraft:stone"]}}}]}}

    AND

    /summon npc ~ ~ ~ minecraft:wandering_trader{Offers:{Recipes:[{buy:{id:"minecraft:log",Count:16b},sell:{id:"minecraft:diamond_pickaxe",Count:1b,tag:{Unbreakable:1b,CanDestroy:["minecraft:stone"]}}}]}}

     

    It doesn't work. I am wondering if this is even possible. Any insight would be appreciated.

    0
  • Debbie Alexander
    Moderator Beacon of Knowledge Super Star

    I don't have any luck with the AI searches for MC:EDU. I tried the summon with no luck for additional features (except summoning and naming the trader.) Anyone else have skills in this? Aleece Landis Dani Noble 

    0
  • Dani Noble
    Moderator Beacon of Knowledge Super Star

    NBT use in bedrock (and by association, Education) is extremely limited. It's primarily used in Java edition, where you can do some pretty amazing things with it. 

    Of course, that doesn't really help us in Education, but I've figured out some work arounds over the years. I think part of the magic of Minecraft is that there are multiple vectors to success... you just have to get really creative sometimes... which incidentally is part of the fun! 

    That said, Daniel Masi, while you won't be able to use NBT, you can use an NPC, in conjunction with command blocks to create a trading interface. Students can exchange emeralds (or anything else) to buy specific items from an NPC. Linked here is an excellent YouTube video where I first learned how to create it. 

    Hope this helps!

    0
  • Bug Zapper Beacon of Knowledge Super Star

    Dani Noble Gave the best answer there.

    NBT tags are so limited for Bedrock/Education that there isn't much you get to do with them.  The chatGPT stuff is generally just regurgitating what it searches through on the internet.  Keep in mind that just because you included minecraft education in the search, doesn't mean all the results are going to apply to "Minecraft Education"  If it didn't find exact results for your entire search term, it probably fell back to just searching for part of it and therefore gave you results for Minecraft which often actually means "Minecraft Java".

    0

Please sign in to leave a comment.