Minecraft Data Packs / Game Mechanic

Fix Survival Players Abusing Spawn Eggs

  • check_circle Advancements
  • check_circle Functions
  • 2,564 views, 8 today
  • 55 downloads, 1 today
  • 3
  • 1
  • 1
hokage3211 avatar hokage3211
Level 46 : Master Engineer
34
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

Create an account or sign in to comment.

2
02/11/2021 6:09 pm
Level 25 : Expert Blacksmith
christianTENN
christianTENN avatar
cool
Planet Minecraft

Website

© 2010 - 2022
www.planetminecraft.com

Welcome