Download the latest release, and add the zipped datapack to your Minecraft world datapacks folder.
- Run
/trigger dsf_give_frame
to add a custom item frame to your inventory - Place the custom frame on the top of a block with a small flower
- Now bonemeal the ground
- Magic!✨ You've used up a bonemeal AND harvested two identical flowers
/trigger bsf_give_frame
gives the player an invisible invulnerable item frame
Invisiblity is required for the illusion of built-in gameplay
Invulnerability is required so you don't accidentally break the item frame (see: /trigger bsf_kill_frame
for removing placed frames)
The datapack detects if there's an invisible invulnerable item frame containing a bonemeal item, it then checks if the block the frame is on also includes a small flower1
If a small flower is detected:
- The datapack gives the player 2 of the same flower, then
- Shows partical effects for user feedback (mimicing the behavior of bonemealing tall flowers), and
- Deletes the bonemeal in the frame "using" up the bonemeal
/trigger bsf_give_frame
Gives the player 1 invisbile invincible item frame
View source
/trigger bsf_kill_frame
If the player is standing on an invisible invincible item frame, running this command will kill the frame (removing it from the game)
View source