Data Packs Game Mechanic

Naturally Spawning Shulkers!

  • 3k views 0 today
  • save_alt 307 downloads
Compatibility
Minecraft 1.16
to version
Minecraft 1.17
Changes include
  • Functions
  • 10
  • 6
  • 1
1withspaghetti
Lvl 38Artisan Robot
10
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.

More like this

  Have something to say?

Javi-Flyer
06/19/2021 1:15 am
Level 12 : Journeyman Miner
looks cool!
1

Welcome