- check_circle Functions
Published Oct 18th, 2022, 10/18/22 7:45 pm
- 715 views, 7 today
- 101 downloads, 1 today
15
I made it so pets while sitting have a regeneration effect on them i was just going to make it so any Tamed pet had it but turns out
pets dont have a (non player specific) Tamed NBT tag so i decided to go with sitting instead
uhh yea not much else to say really its kinda self explanatory
pets dont have a (non player specific) Tamed NBT tag so i decided to go with sitting instead
uhh yea not much else to say really its kinda self explanatory
Compatibility | Minecraft 1.19 |
Tags |
tools/tracking
5743719
119
regen-for-sitting-pets
Create an account or sign in to comment.
And I got a further idea, do you think it’s worthy to make a “player version”? When players sit (on horse or boat or cart or just blocks with a sitting mod/datapack), they will get a regeneration effect, too!
I came up with this idea long ago, but I don’t know how to make it… I think the idea is cool cuz it makes sitting useful and realistic rather than just posting and decorative.
I couldn't find any nbt stuff about "sitting player", then I change
"effect give @e[nbt={Sitting:1b}] regeneration 1"
to
"effect give @e[nbt={Ridding:1b}] regeneration 1"
LOL and of course nothing happen
don't have time to learn more about function datapack...
might be possible with a different method but it certainly isnt possible with the method i used for the pets
ill look into it and if i find a way to detect when a player is sitting then ill update this one