Data Packs Quality of Life

Regen for sitting pets!

  • 1.3k views 0 today
  • save_alt 142 downloads
Compatibility
Minecraft 1.19
Changes include
  • Functions
  • 11
  • 13
  • 5
Pearyori
Lvl 42Master Modder uwu
20
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

More like this

  Have something to say?

Eugene2000
10/23/2022 10:32 pm
Level 53 : Grandmaster Explorer
history
This is amazing and realistic! I love it
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.
1
Eugene2000
10/23/2022 10:57 pm
Level 53 : Grandmaster Explorer
I read another datapack villager regeneration of yours, your description of “simple” really ignited me, I’ll try to learn something from your codes and achieve my idea this afternoon!
1
Eugene2000
10/24/2022 1:33 am
Level 53 : Grandmaster Explorer
history
Sadly, i failed x_x

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...
1
Pearyori
10/24/2022 3:05 pm
He/Him • Level 42 : Master Modder uwu
history
yeah it would be hard to detect player sitting since players dont have a sitting NBT tag (infact players dont have alot of NBT tags and are somewhat limited as it is)



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
1
Eugene2000
10/25/2022 8:01 pm
Level 53 : Grandmaster Explorer
That’s cool, thank you! I’m all counting on you now
1

Welcome