Data Packs Quality of Life

Bee Counter (datapack)

  • Advancements
  • Functions
  • Recipes
  • 6,979 views • 3 today
  • 307 downloads • 0 today
  • 10
  • 5
  • 2
Required Resource Pack
Link__HM
Level 50 : Grandmaster Strawberry
17
Ever wanted to know how many bees were in that nest/hive you are looking at? Then this datapack is for you!

This datapack adds two new items the Bee Counter and the Scroll of Bee Counter Stats. The Bee Counter is crafted with 1 stick, 1 white stained glass, and 7 iron ingots in a pattern shown above. When you right-click a bee home (nest/hive) with a Bee Counter it will tell you how many bees are in the selected nest/hive. The Scroll of Bee Counter Stats is crafted with 3 sticks, 4 paper, 1 honeycomb, and 1 ink sac, which will craft 3. When you right-click with the Scroll of Bee Counter Stats it will tell you some statistics about Bees and bee homes (nest/hive).

Known Bugs:

- When you craft a lot of Scrolls your Hotbar will fill up and the items will start going into your main inventory. Sometimes a visual glitch occurs and it will appear that when you press craft your items are being deleted. But in fact, the crafted item is there. To fix this simply open a chest and you should see the items.


If you find a bug, have a suggestion, comment, or question please leave it down below. Thanks!! :)
CompatibilityMinecraft 1.16
Tags

1 Update Logs

Update 1.1 : by Link__HM 07/18/2020 12:25:35 pmJuly 18, 2020 @ 4:25 pm UTC

Bugs Fixed:

- there was an inconsistency having to do with the chat msg from the Scoll of Bee Counter Stats

- the main function has been made more efficient (credit: UncleThaodan)

  Have something to say?

UncleThaodan
07/18/2020 6:35 am
Level 46 : Master Wizard
Nice work!

Just a small improvement i see - nbt checks in selectors are quite expensive, so i would suggest doing the following in the main function:

execute as @a[scores={bc_rightclick=1..}] at @s[nbt={...}] run function bc:scroll/triggered
then check for the state of bee_cool inside the triggered function. This avoids running any nbt checks as long as the bee counter is not used and avoids repeating almost identical selectors.This is minor, but on a server small things quickly add up.
1
Link__HM
07/18/2020 11:29 am
Level 50 : Grandmaster Strawberry
history
Thanks for the feedback!! I'll see if I can update the pack within the next few days!
1

Welcome