I want to make a plugin that loops the blocks around a player and has a very small chance of them becoming spawners. I am having 2 issues one whenever I do this it uses the default spawners which is pig and I was wondering how to make that something else and I want it to only loop blocks that are not already spawners.
Skript Version: 2.5.3
Code:
command /spawner:
trigger:
loop all blocks in radius 50 around players:
if loop block is not spawner:
chance of 0.0051%:
set loop-block to zombie spawner
Errors: It says that it can't compare loop block with an item type and zombie spawner doesn't work saying that it is also an item type
Skript Version: 2.5.3
Code:
command /spawner:
trigger:
loop all blocks in radius 50 around players:
if loop block is not spawner:
chance of 0.0051%:
set loop-block to zombie spawner
Errors: It says that it can't compare loop block with an item type and zombie spawner doesn't work saying that it is also an item type