• check_circle Advancements
  • check_circle Functions
  • 2,764 views, 7 today
  • 104 downloads, 0 today
Derpbox's Avatar Derpbox
Level 46 : Master Loremaster
86
Have you ever felt like Glow Berries aren't very useful?

This datapack allows players to give themselves the glowing affect by eating a Glow Berry, making it easier to find each other when lost.

Installation:

To install, please put the Glowier-Berries-V1.1.zip file inside your world folder's datapacks folder.

Once installed, type /reload or restart your server for the datapack to take affect
CompatibilityMinecraft 1.17
toMinecraft 1.20
Tags

3 Update Logs

Update #3 : by Derpbox 04/25/2024 4:49:29 amApr 25th

- Added 1.20.5 support

- Moved to a better method for detecting players eating berries
LOAD MORE LOGS

Create an account or sign in to comment.

1
12/07/2021 2:56 am
Level 41 : Master Engineer
the der discohund
the der discohund's Avatar
Hello, I recently implemented this feature for my private SMP and just came by to check if something like this already existed on PMC. Anyways, I ended up comparing our solutions and now I can't help giving my share of criticism:
When hooking up events to eating items, you should not be using scoreboard triggers for this. Instead, please use the much better alternative of using the 'minecraft:consume_item' advancement trigger to grant an advancement that rewards a function that executes your event and revokes the advancement.
Here a quick list of what this improves:
  • The advancement will only run any tests when the player actually consumes something, rather than once every 3 ticks per player.
  • No scores will be needed. This removes the need for init and install/uninstall functions. Excluding the decorative advancement tab, this allows your entire data pack to only need two files in total, both of which are very short.
  • This technique allows you to directly test for the used item alongside any of its properties, so it would be powerful enough to support adding custom effects to items depending on custom nbt or depending on which item group they are in. This is mostly relevant for potential future projects.
If you're still unsure of how exactly that would be implemented, please feel free to ask in a comment.
1
04/25/2024 4:50 am
Level 46 : Master Loremaster
Derpbox
Derpbox's Avatar
I know its been 3 years but I finally did this
1
02/06/2021 5:50 am
Level 8 : Apprentice uwu
Francielly
Francielly's Avatar
nice, but without the fix of MC-157116, its kinda annoying to glow when planting them instead of eating
1
06/18/2021 6:05 pm
Level 46 : Master Loremaster
Derpbox
Derpbox's Avatar
Hi i actually got around to fixing this

Thank you for telling me about this bug
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome