Minecraft Data Packs / Quality of Life

Bee Counter (datapack)

  • check_circle Advancements
  • check_circle Functions
  • check_circle Recipes
  • 6,009 views, 2 today
  • 288 downloads, 0 today
  • 9
  • 4
  • 2
Required Resource Pack
Link__HM's Avatar Link__HM
Level 49 : Master 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 pmJul 18th, 2020

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)

Create an account or sign in to comment.

1
07/18/2020 6:35 am
Level 45 : Master Wizard
UncleThaodan
UncleThaodan's Avatar
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
07/18/2020 11:29 amhistory
Level 49 : Master Strawberry
Link__HM
Link__HM's Avatar
Thanks for the feedback!! I'll see if I can update the pack within the next few days!
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome