Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # #'s are to preserve line numbers
- #
- #
- #
- #
- #
- #
- #
- #
- #
- #
- #
- #
- #
- #
- #
- #
- function volWarning(p:player , loc1:location , loc2:location):
- if {dwand.%{_p}'s uuid%::1} is set:
- if {dwand.%{_p}'s uuid%::2} is set:
- set {_x1} to {_loc1}'s x coordinate
- set {_y1} to {_loc1}'s y coordinate
- set {_z1} to {_loc1}'s z coordinate
- set {_x2} to {_loc2}'s x coordinate
- set {_y2} to {_loc2}'s y coordinate
- set {_z2} to {_loc2}'s z coordinate
- set {_x3} to {_x1} - {_x2}
- set {_y3} to {_y1} - {_y2}
- set {_z3} to {_z1} - {_z1}
- if {_x3} < 0:
- set {_x3} to {_x3} * -1
- if {_y3} < 0:
- set {_y3} to {_y3} * -1
- if {_z3} < 0:
- set {_z3} to {_z3} * -1
- if {_x3} * {_y3} * {_z3} > {@selectionWarnDistance}:
- message "<yellow><bold>Note: Selection contians %{_x3} * {_y3} * {_z3}% blocks" to {_p}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement