Hello, I'm currently trying to log every creeper egg placed by a player. I tried two approach to this but both don't seem to work.
My first attempt is here:
This doesn't bring up any error but it doesn't log the placement since a creeper egg isn't a block
My second attempted was to do a click event:
In this case "if event-block is not air" doesn't seem to work, it still logs if the player clicks on air.
Thanks in advance
My first attempt is here:
code_language.skript:
on place a spawner_egg:50:
log "%player% placed CreeperEgg in %world% at %location of block%" to "creeper/creeperplacement.yml"
message "Test"
This doesn't bring up any error but it doesn't log the placement since a creeper egg isn't a block
My second attempted was to do a click event:
code_language.skript:
on click:
if event-block is not air:
if held item is a spawner_egg:50:
log "%player% placed CreeperEgg in %world% at %location of block%" to "creeper/creeperplacement.yml"
message "hi"
In this case "if event-block is not air" doesn't seem to work, it still logs if the player clicks on air.
Thanks in advance