#✅ | how to get stamina out of the parcool mod and into the progress lane?
1 messages · Page 1 of 1 (latest)
Hello there! 👋
To get the stamina value from the Parcool mod and display it in a progress bar, you'll likely need to use the Player NBT Data placeholder. Many mods store their custom player data, like stamina, in NBT (Named Binary Tag) data.
Here's how you can approach this:
-
Find the NBT Path: You'll need to know the exact NBT path to the stamina value within the Parcool mod's data.
- The easiest way to find this is to use the in-game command
/data get entity @p. This command will display all NBT data for the player. Look for anything related to "stamina" or "parcool" in the output. - You can also try using the optional "NBT Autocomplete" mod, which helps with discovering NBT paths.
- If you find a valid path, it might look something like
ForgeData.PlayerPersisted.stamina.
- The easiest way to find this is to use the in-game command
-
Use the
Player NBT DataPlaceholder: Once you have the NBT path, you can use thenbt_data_getplaceholder in your Progress Bar element.Here's an example of how the placeholder would look, assuming you found a path like
ForgeData.PlayerPersisted.stamina:{"placeholder":"nbt_data_get","values":{"source_type":"entity","entity_selector":"@s","nbt_path":"ForgeData.PlayerPersisted.stamina"}} -
Configure Your Progress Bar:
- Create a Progress Bar element.
- In the "Progress Value" field of the progress bar, you would insert the placeholder shown above.
- You might also need to set the "Max Value" for the progress bar to the maximum possible stamina value for the Parcool mod. If that's also in NBT, you can use another NBT placeholder for that!
If you're having trouble finding the exact NBT path, please provide the <MC instance>/logs/latest.log file after attempting to use the NBT helper or the /data get command. This log can sometimes show errors or more details when trying to access mod-specific data.
You can find more information about the Player NBT Data placeholder here:
I hope this helps you get started! Let me know if you discover the NBT path or need more assistance. 😊
This support thread has been automatically marked as solved because there were no new messages for at least 24 hours.
If you still need help, feel free to continue the conversation or create a new support thread.