Data Packs Other

Ducks in minecraft vanilla

  • 1.6k views 0 today
  • save_alt 118 downloads
Compatibility
Minecraft 1.16
to version
Minecraft 1.19
Changes include
  • Functions
  • 2
  • 7
  • 2
Lightura
Lvl 17Journeyman uwu
3
This datapack gives you the ability to add ducks to your minecraft world!
To spawn a duck:
/function ducks:summon_duckEverytime a duck gets spawned the nearest player to it will be it´s owner.

If you want to change the owner of a duck, you do this:
/execute as @e[tag=duck,sort=nearest,limit=1] at @s run function ducks:assign_ownerYou would need to replace the @e[​tag=duck,sort=nearest,limit=1] with the selector for the duck you need. Evey duck has the tag "duck".
This command only makes the nearest player to the selected duck its owner, if you want a specific player, you do this:
/data modify entity @e[tag=duck,sort=nearest,limit=1] Owner set from entity [PLAYERNAME] UUIDIn this case, you again replace the @e[​tag=duck,sort=nearest,limit=1] with the selector for the duck you need, and replace the [​PLAYERNAME] with the name of the player you want (or a player selector)

To remove every duck:
/function ducks:remove_all
To remove the nearest duck:
/function ducks:remove_nearest
Ducks are basically dogs that have an armor stand tp´d to them, so they can sit too. If you want to find out if a duck is sitting, you go within 2 blocks of it and hold sugar, if end rod particles appear above it, the duck is sitting.

More like this

  Have something to say?

Kilastro29Z
10/18/2022 3:59 am
Level 12 : Journeyman Network
Nice thanks for the data pack!!
1
litex
09/12/2022 4:06 am
Level 18 : Journeyman Dragonborn
heh
1

Welcome