Deleting pig spawners
In my server I have a plugin that lets players mine spawners and get them. Somehow players managed to get pig spawners and I am having trouble of how could I delete all item ones and placed ones.
35 Replies
Thanks for asking your question!
Make sure to provide as much helpful information as possible such as logs/what you tried and what your exact issue is
Make sure to mark solved when issue is solved!!!
/close
!close
!solved
!answered
Requested by 240c#0
Tell your players I guess?
Modrinth
AntiBlockPlace - Minecraft Plugin
Configurable list of blocks that will be unable to be placed
This plugin should allow you to make a rule to block pig spawners to be placed iirc
If it allows to block a certain type of spawner & not all of them
@ProGamingDK can it?
Being able to mine spawners is not suggested btw
Maybe your plugin broke and gave a pig spawner to the players
should be able to block spawners in general from being placed
Can it block just a certain type?
it goes off spigot materials so probably not, just read the post and yeah might not work
for his usecase
I'd block spawner placement
And if players wanted to place them they have to ask and admin
But they can mine them for proof of having a spawner
@240c just purge all spawners with world edit
//replacenear 300 spawner air
In every base
I need the normal spawners to stay.
You can make a plugin to disable certain mobs from spawning from spawners
I'd make it but idk how lol
I would make one if I would know too.
Well, you might be able to find all the pig spawners by searching the world for spawners with the same NBT data.
https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/entity/CreatureSpawnEvent.SpawnReason.html seems like a plugin for it wouldn't be too hard and I might be able to make it when I get home later
CreatureSpawnEvent.SpawnReason (Spigot-API 1.20.1-R0.1-SNAPSHOT API)
declaration: package: org.bukkit.event.entity, class: CreatureSpawnEvent, enum: SpawnReason
(disabling spawns from pig spawners)
That would be amazing.
ill attempt to make it in like 20 minutes or so
what version of mc?
1.20.1
paper?
Yes
i should be done sending in dms
Make an addon to be able to disable certain spawners in config hehe
Not just pigs
well sure i could edit it and then upload it to modrinth
I'm certainly sure some ppl would want it
i would need a name kek
naming is what im horrible at
+ descriptions
AntiSpawners
Per-mob spawner disable- An addon for my plugin that allows you to disable via config the spawn of whatever entity you choose from spawners.
oh you mean a antiblockplace addon?
Well I thought it needed antiblockplace to work 🤣
antiPerMobSpawner
its 3-4... lines of actual code
Amazing
lmao
doing the configurable list rn
In forge it would not be 4 lines 😔✊
basically most of the code
config
indeed, but i should be finished with it
added a reload command aswell just because