๐๏ธ tryashtar ยท 111 points ยท Posted at 03:24:53 on April 3, 2014 ยท (Permalink)
Dynamic too!

Redstone-Activated Custom NBT Tags!
I discovered a fancy dynamic redstone-controlled NBT attribute system for items. You can set it up so that any item containing a certain custom string will have an effect, and you'll never need to touch the redstone again. Let's dive right in!

Check out this totally-completely-original item I made as a demonstration! Under current systems where holding an item gives you bonuses, only this item and items sharing its name would work. But there's hidden NBT data that does that instead!

Here we are at the /give command for the item, where you can see the "bonus" list. Even though this isn't a tag used in vanilla, it still applies the list and all the strings inside of it to the item when it gives it to you, making any items with these strings special.

I have a big clock testing for you holding an item with "bonus:[fire_resist]". Partial list-checking allows this to work for any item with this bonus, even if it has more. If you're holding any item with that bonus string, it activates some redstone.

When I hold the item with the effect, the redstone lights up and activates a very simple scoreboard system. This one causes any mob that attacks me to get set on fire, but it could really be anything.

The "bonus:[fire_resist]" tag the weapon also has gives me fire resistance whenever I'm holding it too.

Just equip my completely-original item number 2 and you're immune to poison as well! Again, any item with the special string this item has will provide this buff.
cube1234567890 ยท 10 points ยท Posted at 05:00:14 on April 3, 2014 ยท (Permalink)
Love the fin at the end. Nice pun.
atra0 ยท 3 points ยท Posted at 06:24:10 on April 3, 2014 ยท (Permalink)
First off, thank you for this. I've been trying to figure out a method of doing this and was going to start with scoreboard objectives tomorrow. Second, any chance you could give us a world download for this? It's really awesome.
๐๏ธ tryashtar ยท 3 points ยท Posted at 02:49:10 on April 4, 2014 ยท (Permalink)
world download:
http://www.mediafire.com/download/z2k2yt4v4cp3o9l/Redstone-Activated_Custom_NBT_Tags_I_Have_Typed_This_So_Many_Times.zip
(disclaimer: i'm not too experienced with mediafire. let me know if it doesn't work)
atra0 ยท 1 points ยท Posted at 04:10:52 on April 4, 2014 ยท (Permalink)
It works perfectly. Thank you.
jacobgarner ยท 5 points ยท Posted at 11:23:11 on April 3, 2014 ยท (Permalink)
Did someone say... [THUNDERFURY, BLESSED BLADE OF THE WINDSEEKER] ?
IHateChores ยท 2 points ยท Posted at 04:47:23 on April 3, 2014 ยท (Permalink)
...Wow, just wow, you have changed the way I will build and use commands from now on.
Chris4Hawks ยท 2 points ยท Posted at 17:52:41 on April 3, 2014 ยท (Permalink)
This is pure genius. I have no idea how you figured this out but it'll be infinitely useful. I wish /u/SethBling would make a video on this. In fact, you should cross-post this to /r/sethblingsuggestions.
CherryLax ยท 3 points ยท Posted at 06:52:13 on April 3, 2014 ยท (Permalink)
I know you've pretty much told us what to do, but is there a chance you could make a video tutorial or a step by step album of images?
Droggelbecher ยท 2 points ยท Posted at 09:05:22 on April 3, 2014 ยท (Permalink)
Wow, these completely original property of blizzard entertainment Items are very cool.
AllenWL ยท 1 points ยท Posted at 12:43:11 on April 3, 2014 ยท (Permalink)
wait so does the nbt tags actually do that, or do you need to hook up something else? I'm confused
r_stronghammer ยท 3 points ยท Posted at 14:02:39 on April 3, 2014 ยท (Permalink)
No, the NBT tags just mark the item for the command block circuit to give you the buff. You could name the tags whatever you want, and it would still do the same.
AllenWL ยท 1 points ยท Posted at 22:42:13 on April 3, 2014 ยท (Permalink)
Ah, I see.
It's a good system anyhow
ronyg1 ยท 1 points ยท Posted at 16:06:32 on April 3, 2014 ยท (Permalink)
Your skin. Im in love
Akomboo ยท 1 points ยท Posted at 17:01:29 on April 3, 2014 ยท (Permalink)
Oh you are god! Can we get a commands? Pleaseee ;-; I realy want to learn how to make magic ;<
zoomx19 ยท 1 points ยท Posted at 21:39:46 on April 3, 2014 ยท (Permalink)
WoW
Beonadryt ยท 1 points ยท Posted at 23:33:56 on April 3, 2014 ยท (Permalink)
Is it possible to put custom nbt tags on entities like mobs? That would be awesome. :D
Quad9363 ยท 1 points ยท Posted at 00:37:15 on April 4, 2014 ยท (Permalink)
So the bonus tag isn't a real tag, but since it matches with the testfor it activates the comparator? Interesting...
programjm123 ยท 1 points ยท Posted at 01:01:20 on April 4, 2014 ยท (Permalink)
How did you add colors in the command block? It won't let me add the ยง character. >.<
Jeroknite ยท 0 points ยท Posted at 12:26:54 on April 3, 2014 ยท (Permalink)
That's an amazing discovery [For the Children].