Armor not adjusting properly when using AttributeModifier
jelaw21 opened this issue · 13 comments
I have an interesting problem that may be CraftTweaker related. Here is the script I am running:
recipes.remove(minecraft:iron_helmet);
recipes.addShapeless(minecraft:iron_helmet.withTag({AttributeModifiers:[{AttributeName:"generic.armor",Name:"generic.armor",Amount:30,Operation:0,UUIDLeast:176584,UUIDMost:798203,Slot:"head"}]}), [minecraft:stick, minecraft:stick, minecraft:stick]);
So, as you can guess, I am making an iron helmet with 30 armor. Now, it works. It creates the helmet, but when I put it on, I get no shields and a fall test verifies that I am not protected. Any ideas? I used MCStacker to create the attribute modifier command.
Tried with 20, nada. Also looked at wiki about armor modifications and it
says it supports up to 30.
On Wed, Sep 28, 2016 at 10:52 AM, Jared [email protected] wrote:
try make the armor value smaller
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/jaredlll08/CraftTweaker/issues/62#issuecomment-250190332,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AUH5G63e3p4ZkY3ktxesG8PUN7-85vkQks5qun8ogaJpZM4KI6Ft
.
uh, give a link to that wiki post thingy?
also maybe just try something like 5 for the armor thing?
Thing is, that the recipe is being added fine, so is the nbt :/
http://minecraft.gamepedia.com/Attribute
On Wed, Sep 28, 2016 at 11:54 AM, Jared [email protected] wrote:
uh, give a link to that wiki post thingy?
also maybe just try something like 5 for the armor thing?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/jaredlll08/CraftTweaker/issues/62#issuecomment-250210435,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AUH5G0Sbj41-4ClkngFzBOhRKwQCyVjRks5quo2igaJpZM4KI6Ft
.
And just tried 5, nada.
On Wed, Sep 28, 2016 at 11:57 AM, Joshua Law [email protected] wrote:
http://minecraft.gamepedia.com/Attribute
http://www.minecraftforum.net/forums/minecraft-discussion/
redstone-discussion-and/command-blocks/2651625-attribute-tutorial-1-9-1On Wed, Sep 28, 2016 at 11:54 AM, Jared [email protected] wrote:
uh, give a link to that wiki post thingy?
also maybe just try something like 5 for the armor thing?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/jaredlll08/CraftTweaker/issues/62#issuecomment-250210435,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AUH5G0Sbj41-4ClkngFzBOhRKwQCyVjRks5quo2igaJpZM4KI6Ft
.
hhm, I got no idea, but I highly doubt this is a minetweaker issue. try spawn the item ingame using the same data tag and see if it works
How to do that, command is too long? use command block?
On Wed, Sep 28, 2016 at 12:03 PM, Jared [email protected] wrote:
hhm, I got no idea, but I highly doubt this is a minetweaker issue. try
spawn the item ingame using the same data tag and see if it works—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/jaredlll08/CraftTweaker/issues/62#issuecomment-250213548,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AUH5G_jIsmteGiUdLk6F3d57x3p5tyzSks5quo_vgaJpZM4KI6Ft
.
try a command block, if that doesn't work, then I'm not sure.
also where is UUIDLeast and UUIDMost gotten from? or are they just a random value?
Yep, doesn't work that way either.
On Wed, Sep 28, 2016 at 12:04 PM, Joshua Law [email protected] wrote:
How to do that, command is too long? use command block?
On Wed, Sep 28, 2016 at 12:03 PM, Jared [email protected] wrote:
hhm, I got no idea, but I highly doubt this is a minetweaker issue. try
spawn the item ingame using the same data tag and see if it works—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/jaredlll08/CraftTweaker/issues/62#issuecomment-250213548,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AUH5G_jIsmteGiUdLk6F3d57x3p5tyzSks5quo_vgaJpZM4KI6Ft
.
I'm not sure, I'm using MCStacker and it seems like a random number. Wiki's
aren't very clear on that part. It has something to do with the way the
armor stacks. One source says if the UUID's are different for the same item
with the same attribute, the higher one is taken. If they are in the same
range, they stack. Not sure how to even find the UUID of the standard
items.
On Wed, Sep 28, 2016 at 12:07 PM, Joshua Law [email protected] wrote:
Yep, doesn't work that way either.
On Wed, Sep 28, 2016 at 12:04 PM, Joshua Law [email protected] wrote:
How to do that, command is too long? use command block?
On Wed, Sep 28, 2016 at 12:03 PM, Jared [email protected] wrote:
hhm, I got no idea, but I highly doubt this is a minetweaker issue. try
spawn the item ingame using the same data tag and see if it works—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/jaredlll08/CraftTweaker/issues/62#issuecomment-250213548,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AUH5G_jIsmteGiUdLk6F3d57x3p5tyzSks5quo_vgaJpZM4KI6Ft
.
looking at stuff from a wiki, I think the UUID dictates what slot it gets applied in, lower the UUIDLeast to 0 and try?
That produced an iron helmet with no data tag, but still gave 2 (1 shield)
armor.
On Wed, Sep 28, 2016 at 12:15 PM, Jared [email protected] wrote:
looking at stuff from a wiki, I think the UUID dictates what slot it gets
applied in, lower the UUIDLeast to 0 and try?—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/jaredlll08/CraftTweaker/issues/62#issuecomment-250216885,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AUH5G2tk-unMpOAUDsPvv2TtZMvPFN0Eks5qupKPgaJpZM4KI6Ft
.