Kod:
options:
mobs: zombie or skeleton
animals: cow or sheep
aktifworld: "world" or "world_the_end"
radius: 5
mobaktif: true
mobxp: 10
animalsaktif: false
animalsxp: 5
on spawn of a {@mobs}:
if {@mobaktif} is true:
if entity is in {@aktifworld}:
loop all blocks in radius {@radius} around event-location:
if loop-block is mob spawner:
cancel event
kill entity
spawn {@mobxp} xp
exit loop
stop loop
on spawn of a {@animals}:
if {@animalsaktif} is true:
if entity is in {@aktifworld}:
loop all blocks in radius {@radius} around event-location:
if loop-block is mob spawner:
cancel event
kill entity
spawn {@animalsxp} xp
exit loop
stop loop
Moderatör tarafında düzenlendi: