• 9/11/22 10:53 am
- 1.6k views • 0 today
- save_alt 118 downloads
- Compatibility
- Minecraft 1.16
- to version
- Minecraft 1.19
- Changes include
- Functions
3
This datapack gives you the ability to add ducks to your minecraft world!
To spawn a duck:
If you want to change the owner of a duck, you do this:
This command only makes the nearest player to the selected duck its owner, if you want a specific player, you do this:
To remove every duck:
To remove the nearest duck:
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.
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_allTo remove the nearest duck:
/function ducks:remove_nearestDucks 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
5709022
119



Have something to say?