Hello, I am trying to make a script where if a player broke a spawner, it drops with the spawn egg of the mob inside it, but I get the error:
Can't compare 'spawner's set name' with a text (spawner.sk, line 11: if spawner's set name is "blaze":')
My code:
on right click:
if clicked block is spawner:
if player's held item is blaze spawn egg:
set name of spawner to "blaze"
on break of spawner:
if spawner's set name is "blaze":
drop 1 blaze spawn egg and 1 spawner
Can't compare 'spawner's set name' with a text (spawner.sk, line 11: if spawner's set name is "blaze":')
My code:
on right click:
if clicked block is spawner:
if player's held item is blaze spawn egg:
set name of spawner to "blaze"
on break of spawner:
if spawner's set name is "blaze":
drop 1 blaze spawn egg and 1 spawner