Minecraft Data Packs / Game Mechanic

Naturally Spawning Shulkers!

  • check_circle Functions
  • 2,630 views, 1 today
  • 287 downloads, 0 today
  • 8
  • 5
  • 1
1withspaghetti's Avatar 1withspaghetti
Level 38 : Artisan Robot
9
With this datapack, Shulkers can naturally spawn on the bottom of end islands within 128 blocks of a player.


This datapack is included with my Renewabilities Datapack so if you want this and much more, be sure to download that!


Spawning Mechanics
Every 500 ticks (can be changed), the code will select a random X and Z and search for the lowest block of endstone below Y30 with at least 2 air blocks below it (so the shulker can open). If that attempt fails, you will have to wait another 500 ticks for the next attempt. These attempts are per-player meaning that if there are 5 players online in the end, up to 5 shulkers can spawn if your lucky. Just like with almost every other mob in the game, they despawn when you go out of the 128 block range and have a seperate mob cap where only 20 shulkers (also can be changed) can exist at a time.

Configuring the datapack
You can access the config by doing /function rs_config. Clicking on the pencil will suggest a scoreboard command where you can edit the value. You can also click the Restore Defaults button at the bottom to change to the original settings.
CompatibilityMinecraft 1.16
toMinecraft 1.17
Tags

Create an account or sign in to comment.

Javi-Flyer
06/19/2021 1:15 am
Level 12 : Journeyman Miner
Javi-Flyer's Avatar
looks cool!
1
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome