Minecraft Version:1.8
---
Full Code:
Other Useful Info: I keep getting an error that says that addTag(last shot arrow, r0) and hasTag(projectile, r0) is not booleans
I'm using TagAPI, SkRayfall, SkQuerry, SkStuff, Umbaska, and TuSKe
Have you tried searching the docs? Yes
Have you tried searching the forums? Yes
What other methods have you tried to fix it? I've tried many different things but none seems to work
---
Full Code:
code_language.skript:
on join:
if {bc.rifle.%player%} is not set:
set {bc.rifle.%player%} to 0
command /getweapons:
trigger:
if {bc.rifle.%player%} is 0:
set {bc.r0.ammo.%player%} to 16
set {bc.r0.leftammo.%player%} to 64
set {no.ammo.r0.%player%} to 0
give a wooden pickaxe named "Rifle %{bc.r0.ammo.%player%}%/%{bc.r0.leftammo.%player%}%" to the player
on right click:
if player is holding a wooden pickaxe named "Rifle %{bc.r0.ammo.%player%}%/%{bc.r0.leftammo.%player%}%":
if {no.ammo.r0.%player%} is 0:
shoot arrow from player at speed 5
addTag(last shot arrow, r0)
set {bc.r0.ammo.%player%} to {bc.r0.ammo.%player%} - 1
set the name of the player's tool to "Rifle %{bc.r0.ammo.%player%}%/%{bc.r0.leftammo.%player%}%"
if {bc.r0.ammo.%player%} is 0:
if {bc.r0.leftammo.%player%} is 0:
set {no.ammo.r0.%player%} to 1
else:
message "Reloading"
set the name of the player's tool to "Reloading..."
wait 20 ticks
set the name of the player's tool to "Reloading.."
wait 20 ticks
set the name of the player's tool to "Reloading."
wait 20 ticks
set {bc.r0.leftammo.%player%} to {bc.r0.leftammo.%player%} - 16
set {bc.r0.ammo.%player%} to 16
set the name of the player's tool to "Rifle %{bc.r0.ammo.%player%}%/%{bc.r0.leftammo.%player%}%"
wait 5 ticks
else:
message "Out of ammo"
on damage:
projectile is a arrow
hasTag(projectile, r0):
set damage to 1
code_language.skript:
on right click:
if player is holding a wooden pickaxe named "Rifle %{bc.r0.ammo.%player%}%/%{bc.r0.leftammo.%player%}%":
if {no.ammo.r0.%player%} is 0:
shoot arrow from player at speed 5
addTag(last shot arrow, r0)
on damage:
projectile is a arrow
hasTag(projectile, r0):
set damage to 1
Other Useful Info: I keep getting an error that says that addTag(last shot arrow, r0) and hasTag(projectile, r0) is not booleans
I'm using TagAPI, SkRayfall, SkQuerry, SkStuff, Umbaska, and TuSKe
Have you tried searching the docs? Yes
Have you tried searching the forums? Yes
What other methods have you tried to fix it? I've tried many different things but none seems to work