Skript Version (do not put latest): Skript 2.2 (dev34)
Minecraft Version: 1.12.2
---
Problem:
I want to limit animal breeding.
Actually, The breeding restriction succeeded. However, the cancel event does not end the breeding attempt. This Skript Print more than 30 "test" messages.
Is there a way to end the breeding attempt?
---
Full Code:
Addons using (including versions):
sharpSK 1.6.3
skDragon
skllett 1.9.6b
SkQuery
skRayFall
skUtilities
TuSKe
SKCompat-2.1.0
SkStuff
SkAction 2.2
[template=footer][/template]
Minecraft Version: 1.12.2
---
Problem:
I want to limit animal breeding.
Actually, The breeding restriction succeeded. However, the cancel event does not end the breeding attempt. This Skript Print more than 30 "test" messages.
Is there a way to end the breeding attempt?
---
Full Code:
code_language.skript:
on Breeding:
if event-animal is sheep:
if {breed::%breeder%} is not set:
set {breed::%breeder%} to 0
if {breed::%breeder%} > 0:
message "test1" to breeder
if {breed::%breeder%} is 0:
message "do not breed!" to breeder
message "test2" to breeder
cancel event
broadcast "%breed item used%"
broadcast "%breeder%"
Addons using (including versions):
sharpSK 1.6.3
skDragon
skllett 1.9.6b
SkQuery
skRayFall
skUtilities
TuSKe
SKCompat-2.1.0
SkStuff
SkAction 2.2
[template=footer][/template]