Minecraft / Data Packs

🍖 Food Preview Datapack 🍖

  • 5
  • 2
  • comment2
  • playlist_add
  • share
  • more_horiz
avatar Rasemotte
Level 38 : Artisan Artist
23
THIS DATAPACK IS NOT FINISHED BUT STILL WORKS

Hi it's Rasemotte !

The datapack allows the player to preview the hunger points from the food in his hand.

It's inspired by the Apple Skin Mod by squeek502
It uses the magic fonts mechanics, inspired by tryshtar



ISSUES :

All of the problems are visual :

I don't know how to tell the datapack to show half hunger point when it has to show it.


It uses the action bar for the display: I don't know how to set the hunger point above the hunger bar.

I don't know how to "fill" the hunger bar when the player has enough hunger point to be sate. (for the moment, it show "(full)")

I'm planning to add a saturation preview when everything is fixed.

I you want to help me to finish the datapack, contact me on discord :

@Rasemotte#9587


Progress25% complete
Game VersionMinecraft 1.14
Tags

2 replies

1
07/14/2019 7:36 pm
Level 1 : New Explorer
LordQwerty
i suggest that you check your description and "issues" page for typos
1
07/14/2019 1:30 pm
Level 22 : Expert Miner
Eglaios
Uh, I see a thing but I guess it's a little tricky :
-Detect if the player holds a food type
-Store the amount of the food item in the player hand
-Fill the player hotbar's empty slots of the player with custom items (like buttons with tag "Fill:1")
-clear the player's hand (/replaceitem)
-Summon an item as the selected food at the player with pickupdelay:0, a custom item tag (like "Food:1"), a Name displaying food points and set its Item.Count value to the registered item count number
-Finally, as all the player hotbar are full but its hand, the player will get the items in its hand.
-Now, the held item's name is the food status

Planet Minecraft

Browse

Site

© 2010 - 2019
planetminecraft.com

Welcome