Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function removeShop(p: Player, e: Entity, x: String, y: String, z: String, w: String):
- if {Tycoon::shopLocations::*} doesn't contain "%{_w}% - %{_x}%, %{_y}%, %{_z}%":
- send "Cancelled" to {_p}
- stop
- else:
- loop all villagers in radius 6 around {_p}:
- if "%location of loop-entity%" is "x: %{_x}%, y: %{_y}%, z: %{_z}%":
- set health of loop-entity to 0
- play "block_wood_hit" to {_p} at volume 10
- close {_p}'s inventory
- remove "%{_w}% - %{_x}%, %{_y}%, %{_z}%" from {Tycoon::shopLocations::*}
- function openShop(p: Player, page: String):
Add Comment
Please, Sign In to add comment