Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- pre:<gold>[<yellow>Mines!<gold>] <yellow>
- on place of stone pressure plate:
- lore of player's tool contains "mine":
- set {minelocations::%block's location%} to the block's location
- set {mineplayer::%block's location%} to the player
- set {mineplayername::%block's location%} to the player's display name
- message "{@pre}Mine set!" to player
- on break of stone pressure plate:
- if {minelocations::%block's location%} is set:
- clear {mineplayer::%block's location%}
- clear {minelocations::%block's location%}
- clear {mineplayername::%block's location%}
- on stepping on a pressure plate:
- player is not sneaking:
- #message "%{mineplayer::%block's location%}%" to player
- if {mineplayer::%block's location%} is set:
- #message "Location set!!!" to player
- if {mineplayer::%block's location%} is not the player:
- #message "not the player!!!!" to player
- if {minelocations::%block's location%} is set:
- #message "BOOM" to player
- set the block to air
- create a safe explosion of force 1 at the player
- make a fake explosion at the block
- set {_randnum} to a random number between 1 and 5
- damage the player by {_randnum}
- clear {minelocations::%block's location%}
- clear {mineplayer::%block's location%}
- clear {mineplayername::%block's location%}
- on right click on pressure plate:
- message "{@pre}Mine owner: <gold>%{mineplayername::%block's location%}%"
- player's tool is any hoe:
- lore of player's tool contains "disarm":
- set block to air
- drop a stone pressure plate at the block
- clear {mineplayer::%block's location%}
- clear {minelocations::%block's location%}
- clear {mineplayername::%block's location%}
- message "{@pre}BLOCK DISARMED" to player
- command /recipeupdate:
- trigger:
- set {_mine} to named item stack from "stone pressure plate,<gold>Pressure Mine,<gold>Place this mine||<gold>to blow up||<gold>your enemies!"
- add 1 of {_mine} to the player's inventory
- message "%{_mine}%" to the player
- register new shapeless recipe for {_mine} using stone pressure plate, gunpowder, air, air, air, air, air, air, air
- set {_grinding5} to named item stack from "iron ingot;<gold>Grinding Stone - Lvl 5;Combine this with a lvl 5 sword for ||a sharper sword!"
- register new shapeless recipe for {_grinding5} using 1 diamond, diamond sword, air, air, air, air, air, air, air
Advertisement
Add Comment
Please, Sign In to add comment