karlip_a Posted July 4, 2021 Share Posted July 4, 2021 gun command /gun: permission: op trigger: give a iron ingot named "&7Gun" to player variables: {%player%.ammo} = 0 on right click: if name of player's held item is "&7Gun": add 1 to {ammo} if {ammo} is less than 21: shoot an arrow if {ammo} is more than 21: send "&4You dont have any ammo left!" on right click: if name of player's held item is "&8AMMO": if {ammo} is more than 21: remove 1 arrow named "&8AMMO" from player set {ammo} to 0 command /AMMO: permission: op trigger: give a arrow named "&8AMMO" to player Link to comment Share on other sites More sharing options...
ItsKirby Posted July 4, 2021 Share Posted July 4, 2021 (edited) 5 hours ago, karlip_a said: gun command /gun: permission: op trigger: give a iron ingot named "&7Gun" to player variables: {%player%.ammo} = 0 on right click: if name of player's held item is "&7Gun": add 1 to {ammo} if {ammo} is less than 21: shoot an arrow if {ammo} is more than 21: send "&4You dont have any ammo left!" on right click: if name of player's held item is "&8AMMO": if {ammo} is more than 21: remove 1 arrow named "&8AMMO" from player set {ammo} to 0 command /AMMO: permission: op trigger: give a arrow named "&8AMMO" to player Ammo system doesn't seem to work. It doesn't consume or take ammo Edited July 4, 2021 by ItsKirby Yo who actually reads these [Vip] - 12/29/2020[Pro] - 1/25/2022 Link to comment Share on other sites More sharing options...
karlip_a Posted July 4, 2021 Author Share Posted July 4, 2021 ill try to fix it Link to comment Share on other sites More sharing options...
karlip_a Posted July 4, 2021 Author Share Posted July 4, 2021 thats weird it works for me. did you right click the ammo with the gun in your inventory if not do that. to reload you have to right click on the ammo while holding it Link to comment Share on other sites More sharing options...
Kinetic6806 Posted March 30, 2022 Share Posted March 30, 2022 Why does it close the server wehen you right click the ammo XD Link to comment Share on other sites More sharing options...
Fuzy_Boi Posted April 7, 2022 Share Posted April 7, 2022 if {ammo} is more than 21: ??? do you mean if {ammo} is more than 1: Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now