1

How do I make a weak bow

MindbuilderXP's Avatar MindbuilderXP6/30/16 4:10 pm
8/10/2016 9:33 am
MC_Master123's Avatar MC_Master123
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
Posted by MindbuilderXP's Avatar
MindbuilderXP
Level 1 : New Miner
1

Create an account or sign in to comment.

27

1
08/10/2016 9:32 am
Level 7 : Apprentice Miner
MC_Master123
MC_Master123's Avatar
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)
1
08/10/2016 9:33 am
Level 7 : Apprentice Miner
MC_Master123
MC_Master123's Avatar
sorry i think i posted this twice I'm pretty new to planet minecraft
1
08/10/2016 9:32 am
Level 7 : Apprentice Miner
MC_Master123
MC_Master123's Avatar
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)
1
08/04/2016 8:05 am
Level 1 : New Crafter
GiantDinko
GiantDinko's Avatar
Oh, right, sorry! Didn't quite understand. English = thumbs down!
1
08/04/2016 5:54 am
Level 63 : High Grandmaster Hero
Runninlikcraz
Runninlikcraz's Avatar
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.
1
08/09/2016 11:07 am
Level 1 : New Miner
MindbuilderXP
MindbuilderXP's Avatar
Exactly...
1
08/03/2016 3:26 am
Level 1 : New Crafter
GiantDinko
GiantDinko's Avatar
If { mean weakening it as in the durability, try this command:
/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
08/04/2016 4:10 am
Level 1 : New Miner
MindbuilderXP
MindbuilderXP's Avatar
But I do mean "low Damage bow". But thanks anyway :p
1
07/03/2016 3:22 pm
Level 29 : Expert Caveman
Lexxer
Lexxer's Avatar
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:
/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
07/24/2016 8:00 am
Level 1 : New Miner
MindbuilderXP
MindbuilderXP's Avatar
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
07/02/2016 4:49 am
Level 1 : New Miner
MindbuilderXP
MindbuilderXP's Avatar
By the way I tested the bow and it does the same damage as if it was a normal bow...
1
07/01/2016 7:50 am
Level 29 : Expert Caveman
Lexxer
Lexxer's Avatar
I thought that this was the error you get, in that case just try to increase the parameters, for example:
/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
07/01/2016 8:50 am
Level 1 : New Miner
MindbuilderXP
MindbuilderXP's Avatar
I have tried quite alot of combinations and it still doesn't seem to work. Maybe it's the coordinates??
1
07/01/2016 11:41 am
Level 29 : Expert Caveman
Lexxer
Lexxer's Avatar
Does it work, if you delete the parameters?
/execute @a[tag=weakBow] ~ ~ ~ entitydata @e[type=Arrow] {damage:0.0d}

And have you tested, if the Arrow actually does damage?
1
07/02/2016 4:42 am
Level 1 : New Miner
MindbuilderXP
MindbuilderXP's Avatar
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
07/02/2016 5:08 am
Level 29 : Expert Caveman
Lexxer
Lexxer's Avatar
This works, because the damage updates to 0.
1
07/03/2016 2:54 pm
Level 1 : New Miner
MindbuilderXP
MindbuilderXP's Avatar
... I really can't get it to work...
1
06/30/2016 6:11 pm
Level 65 : High Grandmaster Wolf Whisperer
Myyoyo
Myyoyo's Avatar
Skript:

on rightclick with bow:
apply weakness 2 to the player

on shoot:
remove weakness from the player
1
06/30/2016 5:35 pm
Level 57 : Grandmaster Fox
Foxy
Foxy's Avatar
You could make it so that anyone holding the bow gets a weakness potion effect.
1
06/30/2016 4:52 pm
Level 29 : Expert Caveman
Lexxer
Lexxer's Avatar
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'
/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
07/01/2016 3:33 am
Level 1 : New Miner
MindbuilderXP
MindbuilderXP's Avatar
I can't make it work. Is this right?: /scoreboard players tag @p add weakBow
1
07/01/2016 6:54 am
Level 29 : Expert Caveman
Lexxer
Lexxer's Avatar
It should work, maybe if you adjust the parameters "score_Arrow" and "r".
1
07/01/2016 7:36 am
Level 1 : New Miner
MindbuilderXP
MindbuilderXP's Avatar
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
06/30/2016 4:21 pm
Level 22 : Expert Network
YTCereal
YTCereal's Avatar
idk remember if this works.

try using "minus" on the enchantments
1
07/01/2016 3:44 am
Level 1 : New Miner
MindbuilderXP
MindbuilderXP's Avatar
Already tried that. Then it just does the same damage as a normal bow :/
1
06/30/2016 4:11 pm
Level 29 : Expert Lumberjack
Civeberg
Civeberg's Avatar
Tie it single knot instead of double
1
07/03/2016 5:32 pm
Level 32 : Artisan Artist
Spa-Geddy
Spa-Geddy's Avatar
I can assure you this works.
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome