Minecraft Data Packs / Game Mechanic

Allay Duplication for 1.19

  • check_circle Functions
  • 4,657 views, 2 today
  • 242 downloads, 0 today
  • 13
  • 11
  • 6
Pepijn's Avatar Pepijn
Level 57 : Grandmaster Cyborg
382
This data packs introduces Allay duplication from 1.19.1 into 1.19, for servers that can't or won't update to 1.19.1.

Settings

It is recommended to set these variables only once after installing the data pack. Changing the 'cooldown_time' variable during play comes with a risk of allays consuming their amethyst shard once without duplicating.
  • /scoreboard players set dancing_time AD_variables <ticks>Sets how long allays will dance after a jukebox starts playing. Defaults to 1200 ticks / 60 seconds.
  • /scoreboard players set cooldown_time AD_variables <ticks>Sets the cooldown time till an allay can duplicate again. Defaults to 6000 ticks / 5 minutes.
  • /scoreboard players set note_frequency AD_variables <ticks>Sets the frequency of the note particle that appears when an allay is dancing to once every number of ticks. Defaults to 20 ticks / 1 second.
  • /function allay_duplication:reset_variablesResets the above variables to their default setting.
CompatibilityMinecraft 1.19
Tags

Create an account or sign in to comment.

1
08/08/2022 9:09 pm
Level 1 : New Miner
KX5
KX5's Avatar
Just tried this datapack and really like it.. However I found a bug.. whenever you breed an Allay it makes the Allay you originally breed with invincible. It won't take any damage and you can't kill it.. the Allay that splits off the original can be killed just not the first one. And it's only after breeding them that it becomes invincible.
1
08/09/2022 11:49 am
Level 57 : Grandmaster Cyborg
Pepijn
Pepijn's Avatar
In vanilla giving an item to an allay will make you its "owner" and owners cannot hurt their own allays. Giving the amethyst shard to the allay counts as giving it an item, its how this data pack detects it. If vanilla 1.19.1 allay duplication does not make the duplicated allay consider you its owner I might look into updating this pack to mimic it more precisely.
1
08/10/2022 12:23 amhistory
Level 1 : New Miner
KX5
KX5's Avatar
Oh ok I didn't know that about the Allay. It got me curious so I decided to test it in Vanilla 1.19.1 and here are my results.

Freshly spawned in Allay = CAN be killed
Allay holding an item from the player = CANNOT be killed
Allay holding nothing after the player removes item = CAN be killed

Breeding
Allay dancing = CAN be killed
Allay dancing while holding an item from the player = CANNOT be killed
Both Allays after duplicating = CAN be killed
Both Allays after duplicating holding items from player = CANNOT be killed
Both Allays holding nothing after player removes item = CAN be killed

I then tested your data pack in 1.19 and it matches vanilla except for one thing. Once they duplicate the original Allay CANNOT be killed. The duplicate Allay CAN be killed. If you give the Original Allay an item then remove it now you CAN kill it.

Either way now that i know i can just give it an item and then remove it in the case i need to kill one it is no big deal. I was just having to resort to commands and i was worried i would mess that up and wipe my server of all Allays lol...

Good Datapack. Thanks for making it.
1
08/04/2022 9:18 am
Level 1 : New Miner
Cardinal71
Cardinal71's Avatar
Thank you for this! The duplication worked well and it is identical to vanilla as far as I can tell. One question - my allays do not spin and lean when they are dancing. Is this intentional?
1
08/04/2022 8:11 pm
Level 57 : Grandmaster Cyborg
Pepijn
Pepijn's Avatar
Datapacks aren't like traditional mods and cannot really do any sort of proper mob animation, besides clunky teleporting frame by frame. If I wanted to implement this I would have to recreate the entire allay model with armor stands and a bunch of item models and paste it on top of every allay in the world, then animate the armor stands by posing them frame by frame. It's not really worth it and would still not look as smooth as a proper vanilla animation.
3
07/22/2022 8:03 pm
Level 19 : Journeyman Network
DarkRob333
DarkRob333's Avatar
Thank you so much for this!
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome