options:
kirilmasigereken: 5
on break of diamond block:
if {5kirilacakblok::%player%} is not set:
set {5kirilacakblok::%player%} to location of event-block
add 1 to {%{5kirilacakblok::%player%}%::sayi}
cancel event
else:
if {%{5kirilacakblok::%player%}%::sayi} is not bigger than {@kirilmasigereken}:
add 1 to {%{5kirilacakblok::%player%}%::sayi}
cancel event
else:
delete {%{5kirilacakblok::%player%}%::sayi}
delete {5kirilacakblok::%player%}