Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on right click holing a stick:
- if player's pitch is between -50 and 50:
- add 2 to y-coord of {_1}
- subtract 1 from y-coord of {_2}
- if player's horizontal facing is west or east:
- add 1 to z-coord of {_1}
- add 1 to x-coord of {_1}
- subtract 1 from z-coord of {_2}
- subtract 1 from x-coord of {_2}
- loop blocks within {_1} to {_2}:
- loop-block is dirt
- set loop-block to air
- execute console command "scoreboard players add %player% getpoint 1"
- stop
- loop-block is grass
- set loop-block to air
- execute console command "scoreboard players add %player% getpoint 1"
- stop
- else if player's horizontal facing is north or south:
- add 1 to x-coord of {_1}
- add 1 to z-coord of {_1}
- subtract 1 from x-coord of {_2}
- subtract 1 from z-coord of {_2}
- loop blocks within {_1} to {_2}:
- loop-block is dirt
- set loop-block to air
- execute console command "scoreboard players add %player% getpoint 1"
- stop
- loop-block is grass
- set loop-block to air
- execute console command "scoreboard players add %player% getpoint 1"
- stop
- else:
- add 1 to x-coord of {_1}
- add 1 to z-coord of {_1}
- subtract 1 from x-coord of {_2}
- subtract 1 from z-coord of {_2}
- loop blocks within {_1} to {_2}:
- loop-block is dirt
- set loop-block to air
- execute console command "scoreboard players add %player% getpoint 1"
- stop
- loop-block is grass
- set loop-block to air
- execute console command "scoreboard players add %player% getpoint 1"
- stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement