#Tipped arrow not working\
1 messages · Page 1 of 1 (latest)
if name of player's tool contains "&e&lAuto Bow":
if {arrowMode::%uuid of player%} is not set:
set {arrowMode::%uuid of player%} to 1
set {_mode} to {arrowMode::%uuid of player%}
set {_arrowFound} to false
if {_mode} is 1:
set {_start} to 0
set {_end} to 27
else if {_mode} is 2:
set {_start} to 0
set {_end} to 9
else if {_mode} is 3:
set {_start} to 10
set {_end} to 18
else if {_mode} is 4:
set {_start} to 19
set {_end} to 27
loop numbers between {_start} and {_end}:
set {_item} to {arrowINV::%loop-number%}
set {_nbt} to {arrowNBT::%loop-number%}
set {_amount} to item amount of {_item}
if {_item} is arrow or spectral arrow:
if {_amount} > 0:
cancel event
make player shoot ("%1 of {_item}%" parsed as entity type) at speed 5
remove 1 from {_amount}
set item amount of {arrowINV::%loop-number%} to {_amount}
set {_arrowFound} to true
stop loop
if {_item} is tipped arrow:
if {_amount} > 0:
cancel event
make player shoot an tipped arrow at speed 1
broadcast "%{_nbt}%"
remove 1 from {_amount}
set item amount of {arrowINV::%loop-number%} to {_amount}
set {_arrowFound} to true
stop loop
if {_arrowFound} is false:
send actionbar "&a&lCC &7>> &fNo arrows found in your &eAuto Bow&f!" to player
play sound "sfx.error" to player
cancel event```
this code is really confusing for me Hahaha
means i have code bow on pressing b it will open chest like container to store arrows
and it will shoot arrows from there
there are 4 modes
hotbar 1
2
3
and container mode
anyways this isnt problem the main problem is related tipped arrows
when they are projected they shoot without effects
yea
but everything works?
yea
just effect missing
that' a miracle
correct
alright, give me 1 sec
if {_item} is tipped arrow:
if {_amount} > 0:
cancel event
make player shoot an tipped arrow at speed 1
broadcast "%{_nbt}%"
remove 1 from {_amount}
set item amount of {arrowINV::%loop-number%} to {_amount}
set {_arrowFound} to true
stop loop```
this part only
6mins?
sorry had to do smtg
rip
you have 2 approaches here
ok?
the first one that I am still searching that is cheking for actual arrow stored potion effect
of give an effect to victim based on player mode on shoot
Because I've just found that tipped effect arrows are not at item but a content
only tipped arrow item exists
okay so what can i do
Easy one would probably be storing effects on a list, and on player damage by arrow were you shoot it take the effect from the list
{DataVersion:3953,components:{"minecraft:potion_contents":{potion:"minecraft:awkward"}},count:64,id:"minecraft:tipped_arrow"}
?
No because
and probably only skbee supports that
But I don't use skbee
and i am using ðŸ˜
Then I can't help you, but let me try
okay
Yeah, I don't find anything arrow related
yea sure
if you want to test it you can come to my server
but you will need a mod called arikeys
its fabric
what if i use
if projectile is tipped arrow of strong damage:```
you might be able to add to the NBT of an arrow when you shoot it.
or maybe just make player shoot tipped arrow of poison or whatever
its not about only one tipped arrow
ig there are over 50+
so this cant be done
maybe you could do something like set {_x} to last shot projectile add poison to potion effects of {_x}
as i said there are over 50+ tipped arrows
okay
just replace poison with {_yourEffect} then
then i have to make it detect the potion effect of arrow
i did but it didnt worked
bump
anyways none of them worked
i tried - broadcast "%{_nbt}%" set {_x} to last shot projectile apply {_nbt} to {_x}
broadcast thingy is working well
{DataVersion:3953,components:{"minecraft:potion_contents":{potion:"minecraft:strong_harming"}},count:64,id:"minecraft:tipped_arrow"}
but isnt shooting actual tipped arrow
what if i try to grab potion content and then apply to the arrow
the entity itself is different than the item. use a program like mcstacker.net to see examples of the nbt. I use the site regularly, as it is extremely helpful with this sort of thing
.
how can i do with tipped arrow?
a shot tipped arrow is just a normal arrow with potion effects, whereas the item is it's own thing. again, use the site i suggested
Site doesn't have anything about arrow 👹
it does, you just actually need to know what you're doing