1
How do I make a weak bow
I'm working on a 1.10 pvp map and I am working on classes/loadouts. I am making an Alchemist and I want to make him a weak bow that shoots tipped arrows. The purpose is that it isn't the arrows that kills but the potion effects. I have searched everywhere but I just cant find out how to make a weak bow!
Any answer is really appreciated
Any answer is really appreciated
Create an account or sign in to comment.
27
1
You could use 2 commands to do this.
First command is a repeat and always active:
/execute @a ~ ~ ~ kill @e[type=Arrow,r=2]
Second command is a conditional, always active, and chain command block:
/effect @a (potion effect) (seconds) (potion strength)
This has some limitations:
If you are playing multiplayer and a player gets shot, everyone will get the effect
You don't actually have to get hit by the arrow, you could just have to be in a 2 radius (you can change this in the first command)
First command is a repeat and always active:
/execute @a ~ ~ ~ kill @e[type=Arrow,r=2]
Second command is a conditional, always active, and chain command block:
/effect @a (potion effect) (seconds) (potion strength)
This has some limitations:
If you are playing multiplayer and a player gets shot, everyone will get the effect
You don't actually have to get hit by the arrow, you could just have to be in a 2 radius (you can change this in the first command)
1
sorry i think i posted this twice I'm pretty new to planet minecraft
1
You could use 2 commands to do this.
First command is a repeat and always active:
/execute @a ~ ~ ~ kill @e[type=Arrow,r=2]
Second command is a conditional, always active, and chain command block:
/effect @a (potion effect) (seconds) (potion strength)
This has some limitations:
If you are playing multiplayer and a player gets shot, everyone will get the effect
You don't actually have to get hit by the arrow, you could just have to be in a 2 radius (you can change this in the first command)
First command is a repeat and always active:
/execute @a ~ ~ ~ kill @e[type=Arrow,r=2]
Second command is a conditional, always active, and chain command block:
/effect @a (potion effect) (seconds) (potion strength)
This has some limitations:
If you are playing multiplayer and a player gets shot, everyone will get the effect
You don't actually have to get hit by the arrow, you could just have to be in a 2 radius (you can change this in the first command)
1
Oh, right, sorry! Didn't quite understand. English = thumbs down!
1
I have been searching for this as well.
Setting the damage for bows isn't as easy as setting such for a sword because of the fact that the Damage tag is set on the arrow fired.
The only way (as of now) to change the damage of a bow and arrow by command (to something weaker) is to use a repeating command block and change the entitydata of the arrow to {Damage:0s} (That might not be the exact tag, sorry D:)
The only problem with this method is that when a player fully charges a bow, the arrow sometimes moves too rapidly for the commands to keep up and you may encounter problems with the command setting the damage fast enough.
Setting the damage for bows isn't as easy as setting such for a sword because of the fact that the Damage tag is set on the arrow fired.
The only way (as of now) to change the damage of a bow and arrow by command (to something weaker) is to use a repeating command block and change the entitydata of the arrow to {Damage:0s} (That might not be the exact tag, sorry D:)
The only problem with this method is that when a player fully charges a bow, the arrow sometimes moves too rapidly for the commands to keep up and you may encounter problems with the command setting the damage fast enough.
1
Exactly...
1
If { mean weakening it as in the durability, try this command:
Putting the 50 at the end will take 50 uses from the tool. So instead of having 385 uses like normal, it should have 335. You can replace the 50 with the amount you want taken off.
You can also add enchantments to it, by putting
/give (playername) bow (amount you want) 50
.Putting the 50 at the end will take 50 uses from the tool. So instead of having 385 uses like normal, it should have 335. You can replace the 50 with the amount you want taken off.
You can also add enchantments to it, by putting
{Unbreakable:1}
for the Unbreakable 1 enchantment, you can obviously replace this with whatever you like.1
But I do mean "low Damage bow". But thanks anyway :p
1
Okay, I tested it and the entitydata command doesn't work together with the execute command for some reason.
However, I changed the setup a bit, this worked for me:
First(Repeating) command block:
Second(chain, always active):
Third(chain, always active):
This should work now.
However, I changed the setup a bit, this worked for me:
First(Repeating) command block:
/scoreboard players add @e[type=Arrow] Arrow 1
Second(chain, always active):
/execute @a[tag=weakBow] ~ ~ ~ scoreboard players tag @e[type=Arrow,score_Arrow=1,r=2] add weakArrow
Third(chain, always active):
/entitydata @e[tag=weakArrow] {damage:0.0d}
This should work now.
1
Now it seems to be random. Either I shoot something and the arrow bounces of, or I shoot something and it takes a half Heart in damage and gives a potion effect...
1
By the way I tested the bow and it does the same damage as if it was a normal bow...
1
I thought that this was the error you get, in that case just try to increase the parameters, for example:
Until it works.
/execute @a[tag=weakBow] ~ ~ ~ entitydata @e[type=Arrow,score_Arrow_min=1,score_Arrow=10,r=10,c=1] {damage:0.0d}
Until it works.
1
I have tried quite alot of combinations and it still doesn't seem to work. Maybe it's the coordinates??
1
Does it work, if you delete the parameters?
And have you tested, if the Arrow actually does damage?
/execute @a[tag=weakBow] ~ ~ ~ entitydata @e[type=Arrow] {damage:0.0d}
And have you tested, if the Arrow actually does damage?
1
I tried the shorter command and it still didn't work. Then I tried the same command with @e instead of @a and it said this:
[10:39:15] Entity data updated to: {Motion:[0:-1.3629375410242517d,1:-0.2752888272053191d,2:0.8886395230065887d],damage:0.0d,shake:0b,xTile:-1076,UUIDLeast:-8904893174832900851L,inGround:1b,pickup:2b,Invulnerable:0b,Air:300s,OnGround:0b,Dimension:0,PortalCooldown:0,Rotation:[0:-56.895462f,1:-5.285499f],life:585s,FallDistance:0.0f,inTile:"minecraft:grass",UUIDMost:6254597383402569745L,inData:0b,Pos:[0:-1075.0895186281368d,1:4.006857817225779d,2:-1107.338943176001d],zTile:-1108,Fire:0s,yTile:3}
1
This works, because the damage updates to 0.
1
... I really can't get it to work...
1
Skript:
on rightclick with bow:
apply weakness 2 to the player
on shoot:
remove weakness from the player
1
You could make it so that anyone holding the bow gets a weakness potion effect.
1
Sadly, there isn't a way to do this with one command or over the .nbt data.
However, you can achieve this by using the following setup:
You will need one dummy objective called 'Arrow'
You will also need one tag, just assign the tag 'weakBow' to every Alchemist.
Now you will need a command Block chain with 2 commands:
The first command block:
The second one:
This will set the damaga to every Arrow, a Alchemist fires to 0.
It won't affect players without the tag 'weakBow'.
However, you can achieve this by using the following setup:
You will need one dummy objective called 'Arrow'
/scoreboard objectives add Arrow dummy
You will also need one tag, just assign the tag 'weakBow' to every Alchemist.
Now you will need a command Block chain with 2 commands:
The first command block:
/scoreboard players add @e[type=Arrow] Arrow 1
The second one:
/execute @a[tag=weakBow] ~ ~ ~ entitydata @e[type=Arrow,score_Arrow_min=1,score_Arrow=6,r=8,c=1] {damage:0.0d}
This will set the damaga to every Arrow, a Alchemist fires to 0.
It won't affect players without the tag 'weakBow'.
1
I can't make it work. Is this right?:
/scoreboard players tag @p add weakBow
1
It should work, maybe if you adjust the parameters "score_Arrow" and "r".
1
In the last chain command block it says
[13:38:54] Failed to execute 'entitydata @e[type=Arrow,score_Arrow_min=1,score_Arrow=6,r=8,c=1] {damage:0.0d}' as mindbuilderXP
1
idk remember if this works.
try using "minus" on the enchantments
try using "minus" on the enchantments
1
Already tried that. Then it just does the same damage as a normal bow :/