1

Command help!

Dudamesh •5/4/15 2:25 am
•
1k
•
5/10/2015 6:26 am
I made 2 classes
The first one (let's name it A)
and the second one (B)

Class A is more powerful to Class B
but Class A is weak to the same class

the question is how?
Posted by
Dudamesh
Level 62 : High Grandmaster Senpai
74

  Have something to say?

Join • Sign in

12

YTCereal
• 05/06/2015 2:08 pm
• Level 22 : Expert Network
Well if u say A Dosent Do Dmg then

/give @p minecraft:iron_chestplate 1 0 {AttributeModifiers:[{AttributeName:"generic.attackDamage",Name:"generic.attackDamage",Amount:-200,Operation:0,UUIDLeast:894654,UUIDMost:2872}],Unbreakable:1}

brb. srly i dont have life.
1
YTCereal
• 05/05/2015 4:12 pm
• Level 22 : Expert Network
kk power pepjin

/give @p minecraft:stone_sword 1 0 {HideFlags:3,AttributeModifiers:[{AttributeName:"generic.followRange",Name:"generic.followRange",Amount:0.5,Operation:0,UUIDLeast:894654,UUIDMost:2872},{AttributeName:"generic.knockbackResistance",Name:"generic.knockbackResistance",Amount:0.55,Operation:0,UUIDLeast:894654,UUIDMost:2872},{AttributeName:"generic.movementSpeed",Name:"generic.movementSpeed",Amount:0.999,Operation:0,UUIDLeast:894654,UUIDMost:2872},{AttributeName:"generic.attackDamage",Name:"generic.attackDamage",Amount:5,Operation:0,UUIDLeast:894654,UUIDMost:2872}],display:{Name:Sword Of Attack},ench:[{id:34,lvl:10}]} Well it can kill a Person without Armor 2 Hits But ARMOR DOES A WEAR?
1
Pepijn
• 05/06/2015 2:01 pm
• Level 58 : Grandmaster Cyborg
This still doesn't allow for Class A to do less damage to Class A and more to Class B AND Class B to do less damage to Class B and more to Class A. If you read my previous posts you would know I thought this is what OP meant in the original post.

If this is not what he meant, then it's indeed very simply done with either permanent status effects + armor or these swords
1
guestds
• 05/05/2015 4:03 pm
• Level 20 : Expert Modder
maybe a gets fire res and knock res and sharpness with fire and diamond knockback swords and full diamond but b gets normal iron armour and iron sword?

quick question do you mean how to get this or how is it weaker?
1
YTCereal
• 05/05/2015 8:10 am
• Level 22 : Expert Network
well if u need help then. Learn How To Use attack Addon/Power on armors!

Weakness Sword
Open Me
/give @p minecraft:stone_sword 1 0 {AttributeModifiers:[{AttributeName:"generic.followRange",Name:"generic.followRange",Amount:0.555,Operation:0,UUIDLeast:894654,UUIDMost:2872},{AttributeName:"generic.knockbackResistance",Name:"generic.knockbackResistance",Amount:0.55,Operation:0,UUIDLeast:894654,UUIDMost:2872},{AttributeName:"generic.attackDamage",Name:"generic.attackDamage",Amount:-0.5,Operation:0,UUIDLeast:894654,UUIDMost:2872}],display:{Name:Weakness Sword},ench:[{id:34,lvl:127}]}


Pepjin learn how to redstone
1
Dudamesh
• 05/10/2015 6:26 am
• Level 62 : High Grandmaster Senpai
I already know Attribute Modifiers.
However that won't help
1
Pepijn
• 05/05/2015 3:21 pm
• Level 58 : Grandmaster Cyborg
How does this help? It still does the same damage to every team... that's not what OP asked for.
1
TerraScript
• 05/04/2015 6:21 am
• Level 31 : Artisan System
I would first set up a dummy scoreboard objective, and give Class 'A' a value of one and Class 'B' a value of two.

I would then set up a redstone fill clock that gives everyone with a scoreboard minimum of 1 and a scoreboard maximum of 1 strength 1. That would look something like this:

/effect @e[type=Player,score_ScoreboardNameHere_min=1,score_ScoreboardNamehere_max=1] 5 10

If you wanted to, you could even give Class 'B' weakness. Or maybe you just want to give them weakness when they're around a Class 'A' person. Possibilities are endless.
1
Pepijn
• 05/04/2015 9:40 am
• Level 58 : Grandmaster Cyborg
That's unnecessary, you're able to test for a team already. So just make a team a (/scoreboard teams add A) and a team B (/scoreboard teams add B) then @a[team=A] will only target people in team A (you join teams with /scoreboard teams join <teamname> <player>).

Also @e[type=Player] is unnecessary, just do @a.
1
Pepijn
• 05/04/2015 4:12 am
• Level 58 : Grandmaster Cyborg
Just give Class A a weakness effect (/effect @a[team=A] minecraft:weakness <duration> <amplifier>)
1
Dudamesh
• 05/05/2015 3:08 am
• Level 62 : High Grandmaster Senpai
But they have to be powerful to kill Class B in like 4-5 hits
1
Pepijn
• 05/05/2015 5:53 am
• Level 58 : Grandmaster Cyborg
When changing the original post and thus changing what you're asking for, please just let us know. All it does is confuse us.

If only Class A needs to be weak to Class A and strong to Class B, just give Class A bunch of armor together with a Strenght effect. However, I think you also want Class B to be weak against Class B and strong against Class A so that compicates stuff a lot more. As far as I know it's not possible with vanilla commands to check what player hurt another play, so I don't think what you want can be realized
1

Welcome