Fix Survival Players Abusing Spawn Eggs

  • check_circle Advancements
  • check_circle Functions
  • 2 diamonds
  • 505 views, 43 today
  • 11 downloads, 1 today
  • 0 comments
  • 0 favorites
  • 2
  • 0
avatar hokage3211
Level 40 : Master Engineer
27
Basically, what this datapack does is stop survival mode players from being able to use spawn eggs on spawners, since a lot of datapacks use spawn eggs given to survival players, which they could then use to get infinite of that spawned mob by right-clicking on any spawner.



What this pack does:

If a player in survival uses a spawn egg on a spawner, the spawner will break and a message will appear telling them why it occurred.



What if I want to use this to stop some spawn eggs from being used, but I want one datapack to still be able to set spawners for survival players?

Great question! I accounted for this, if a player uses a spawn egg with the CanPlaceOn nbt (that stuff used for adventure mode) set to minecraft:spawner, then it won't destroy the spawner when used! So you will need to either fix this yourself, or ask the datapack developer to add this data to their spawn eggs.

How to install:


Simply download the file, and drop it into the datapacks folder of your selected world!
CompatibilityMinecraft 1.16
Tags
Planet Minecraft Logo

Website

© 2010 - 2020
www.planetminecraft.com

Welcome