how i can remove all of one item from my game

i want to remove all spawners that are placed and also in inventories. How can i? I thought onspawnmobevent if it is caused by spawner i remove that spawner. but how can i clear the spawners my players has in inventories?
5 Replies
Admincraft Meta
Admincraft Meta7mo ago
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 djarda2#0
Arthurmeade12
Arthurmeade127mo ago
Spawners are part of dungeons so you'd have to modify that structure to disable spawners there (probably a big pain to setup). Then you could go through the playerdata files and clear them from inventories. But wouldn't it just be easier to stop spawners from functioning in the first place, as in you could place them but they would not spawn mobs? That's easier imo @djarda2
djarda2
djarda2OP7mo ago
problem is i gave players too many spwaners and they placed some of them/have some of them in their inventory i want to do a complete spawner wipe and then make them more rare and introduce to game again so i found a way to remove all placed spawners almost but im not sure how to remove the hidden spawners i have coreprotect also
spinyshell
spinyshell7mo ago
Depending on how far your coreprotect logs go back, there are some commands that let you filter and check for every instance of someone placing a spawner, or putting them into a tile-entity inventory (chest, dispenser etc). This does not check for enderchest, or VERY specific and deliberate item smuggling techniques. Something like
/co l time:100d action:+container include:spawner
/co l time:100d action:+container include:spawner
Might need some adjusting, but coreprotect definitely has the capabilities https://docs.coreprotect.net/commands/
djarda2
djarda2OP7mo ago
ok i will look it

Did you find this page helpful?