Jump to content

change banner direction


BOXEY

Recommended Posts

when i set a block to a banner it is facing the wrong way so how can i set it so the original diction that is was

 

code

on place:
	if player has permission "flag.place":
		stop
	else:
		cancel event


on right click:
	if event-block is red banner:
		if {redteam.%player%} is set:
			send "&c&lFlags &8| &7You can't capture your own flag"
		else:
			if {rfc} is set:
				send "&c&lFlags &8| &7You can't capture a flag that was already captured - 0_0"
			else:
				set {redloc} to event-location
				set block at event-location to air
				send action bar "&c&lFlags &8| &7You captured the &cRed Flag" to player
				broadcast "&c&lFlags &8| &cRed Flag &7captured"
				set {rfc} to true
				set {hf.%player%} to true



on right click:
	if event-block is dropper:
		cancel event
		if {rfc} is set:
			if {hf.%player%} is set:
				set block at {redloc} to red banner
				delete {rfc}
				delete {hf.%player%}
				add 1 to {red.points}
			else:
				send "&c&lFlags &8| &7You need a flag dum but - 0_o"
		else:
			send "&c&lFlags &8| &7BRO THE FLAG YOU NEED TO GET THE FLAG - 0_oo"

 

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...