Minecraft Data Packs / Simple

Store animals in a barn block

  • check_circle Advancements
  • check_circle Functions
  • check_circle Predicates
  • check_circle Recipes
  • 1,791 views, 4 today
  • 82 downloads, 0 today
  • 3
  • 1
Endernice61's Avatar Endernice61
Level 72 : Legendary Engineer
180
This datapack adds a barn block which allows you to store your animals in.
Each barn block can only store 1 type of animal (only cows, chickens, pigs and sheep)

Right clicking the block will cycle the animal type it will store and applies a glowing effect to the selected mobs.
Right clicking the block when it has animals in it will tell you how many animals are inside and what type of animal.
Shift right clicking will put the animals in or take them out.

It is useful for servers as it can be used to reduce lag by storing the animals

Any scoreboard objectives the animals have will be lost, but the datapack can be configured to keep specific objectives.
Configuring for specific objectives
Open the datapack, open data/barn/functions and open up pack_me.mcfunction and unpack/move
There will be two lines with # before them. The first one is an instruction.
For multiple objectives, just duplicate the line.
CompatibilityMinecraft 1.19
toMinecraft 1.20
Tags

2 Update Logs

Update #2 : by Endernice61 03/16/2024 2:52:38 pmMar 16th

Updated to work up to 24w11a.
Crafting now directly outputs the barn block as of 24w10a.
LOAD MORE LOGS

Create an account or sign in to comment.

Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome