Jump to content

Loop mobs between 2 location


JustDogYT

Recommended Posts

Can you send your full code?

If I have helped you out in your post or you liked what I posted, please upvote and react to my post! It helps me a lot!

Some Minehut Links:

Server Rules • Staff Applications • News & Updates • Reports • Appeals


Minehut: VIP (07/04/2021 --> Current)
Elestra/Versa Realms: Manager (12/04/2021 --> Current)

If you have any questions contact me!
My Discord: BanditEagle#2481
My Spigot Profile: https://www.spigotmc.org/members/banditeagle.935281/
My IGN: BanditEagle

Link to comment
Share on other sites

1 minute ago, BanditEagle said:

Can you send your full code?

on left click:
    if player is holding orange dye:
        set {_loc1} to location below player's head
        set {_loc2} to location 5 meters infront of the player's head
        loop mobs between {_loc1} and {_loc2}:
            damage loop-mob by 4

 

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...