I am using to do floor crafting. Basically it applies a tag to anything on the ground with an id that is defined in the command. In the same command I would like to check for nbt data. For example lets make something up Diamond+Nether Star = super emerald. So we have a recipe, I use the super emerald with a diamond chest plate to make a super chest plate. How would I be sure that it was the super emerald vs any ordinary one? Any Help!?!
Thank you for responding so fast it is greatly appreciated I will try your method and look into it. There is another thing I found while looking that checks the names of entities on the ground just haven't got it to work yet.
I tried this and it works excellently I just have one problem what do I put under
/scoreboard players set @e[type=Item] Item 1 {OnGround:1b,Item:{id:"minecraft:your_block/item_id_required_for_crafting",AddYourExtraNBTDataHere:1}}
Not sure what the actual nbt data is and or how to summon an item with nbt data. I am somewhat new to command blocks and don't know everything about them like you do. (Btw watched your videos and subscribed you'er cool)
I tried this and it works excellently I just have one problem what do I put under
/scoreboard players set @e[type=Item] Item 1 {OnGround:1b,Item:{id:"minecraft:your_block/item_id_required_for_crafting",AddYourExtraNBTDataHere:1}}
Not sure what the actual nbt data is and or how to summon an item with nbt data. I am somewhat new to command blocks and don't know everything about them like you do. (Btw watched your videos and subscribed you'er cool)
First off, thank you!
NBT data is specific information stored on the item. For example, there is NBT data to specify how much items there are. That NBT data is Count:#. Where the # represents the amount of items. So, if you wanted it to be 32 items, it would look like this:
/scoreboard players set @e[type=Item] Item 1 {OnGround:1b,Item:{id:"minecraft:your_block/item_id_required_for_crafting",Count:32}}
There are many NBT data's out there, that's just one.
Thank you for responding so fast it is greatly appreciated I will try your method and look into it. There is another thing I found while looking that checks the names of entities on the ground just haven't got it to work yet.
Yup! That testfor command will work. Anything after the first curly bracket { and before the last } is NBT data. So, all of that in between the {} is NBT data. If you need anymore help on it, just tell me!
This is exactly what I am wanting thank you. The way you put this it looks like it might just work with the system I was using before. Thanks Really!
Would it be able to tell if the Item was {Custom:1b} if it was picked up and dropped again?
Never mind I'm stupid it is an nbt tag to the item not the entity
Final Edit
This works I have added a tag to the item crafted and successfully checking for that tag again to be used in another crafting recipe.
If I decide to make another recipe to craft the super emerald and a dragon egg into an ultimate emerald could I do custom:2b tag (assuming not because it is a boolean)
THANK YOU SO MUCH!!! Everything I have been trying to do has just suddenly worked and I an honored to meet people as skilled at redstone and command blocks as you two thank you all so much. You don't know how much this means to me!
THANK YOU SO MUCH!!! Everything I have been trying to do has just suddenly worked and I an honored to meet people as skilled at redstone and command blocks as you two thank you all so much. You don't know how much this means to me!
I am using to do floor crafting. Basically it applies a tag to anything on the ground with an id that is defined in the command. In the same command I would like to check for nbt data. For example lets make something up Diamond+Nether Star = super emerald. So we have a recipe, I use the super emerald with a diamond chest plate to make a super chest plate. How would I be sure that it was the super emerald vs any ordinary one? Any Help!?!
Btw, Would recommend watching his method.
The way I do my floor crafting looks a bit different. (I haven't watched the video but by your desc. it seems different.)
The floor crafting commands I use are these:
So, just add the NBT data to the scoreboard commands and boom! You're set!
So, the scoreboard command would look kinda like this:
Thank you for responding so fast it is greatly appreciated I will try your method and look into it. There is another thing I found while looking that checks the names of entities on the ground just haven't got it to work yet.
/testfor @e[type=Item] {Item:{id:minecraft:stone,tag:{display:{Name:"grenade"}}}}
Anyways thanks for your help I will try this.
I tried this and it works excellently I just have one problem what do I put under
First off, thank you!
NBT data is specific information stored on the item. For example, there is NBT data to specify how much items there are. That NBT data is Count:#. Where the # represents the amount of items. So, if you wanted it to be 32 items, it would look like this:
There are many NBT data's out there, that's just one.
You're welcome!
Yup! That testfor command will work. Anything after the first curly bracket { and before the last } is NBT data. So, all of that in between the {} is NBT data. If you need anymore help on it, just tell me!
This is exactly what I am wanting thank you. The way you put this it looks like it might just work with the system I was using before. Thanks Really!
Would it be able to tell if the Item was {Custom:1b} if it was picked up and dropped again?
Never mind I'm stupid it is an nbt tag to the item not the entity
Final Edit
This works I have added a tag to the item crafted and successfully checking for that tag again to be used in another crafting recipe.
If I decide to make another recipe to craft the super emerald and a dragon egg into an ultimate emerald could I do custom:2b tag (assuming not because it is a boolean)
THANK YOU SO MUCH!!! Everything I have been trying to do has just suddenly worked and I an honored to meet people as skilled at redstone and command blocks as you two thank you all so much. You don't know how much this means to me!
and you're welcome!