Minecraft Data Packs / Quality of Life

Regen for sitting pets!

  • check_circle Functions
  • 715 views, 7 today
  • 101 downloads, 1 today
  • 9
  • 9
  • 5
Sniper nate avatar Sniper nate
Level 35 : Artisan Engineer
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
CompatibilityMinecraft 1.19
Tags

Create an account or sign in to comment.

1
10/23/2022 10:32 pmhistory
Level 21 : Expert Explorer
Eugene2000
Eugene2000 avatar
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
10/23/2022 10:57 pm
Level 21 : Expert Explorer
Eugene2000
Eugene2000 avatar
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
10/24/2022 1:33 amhistory
Level 21 : Expert Explorer
Eugene2000
Eugene2000 avatar
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
10/24/2022 3:05 pmhistory
Level 35 : Artisan Engineer
Sniper nate
Sniper nate avatar
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
10/25/2022 8:01 pm
Level 21 : Expert Explorer
Eugene2000
Eugene2000 avatar
That’s cool, thank you! I’m all counting on you now
Planet Minecraft

Website

© 2010 - 2023
www.planetminecraft.com

Welcome