Skip to content

thalida/bonemeal_small_flowers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bonemeal Small Flowers

bsf

Installation

Download the latest release, and add the zipped datapack to your Minecraft world datapacks folder.
datapack_folder

Usage

  1. Run /trigger dsf_give_frame to add a custom item frame to your inventory
  2. Place the custom frame on the top of a block with a small flower
  3. Now bonemeal the ground
  4. Magic!✨ You've used up a bonemeal AND harvested two identical flowers

How it works

Custom Frame

/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)

Bonemeal Magic

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

View source2

Commands

/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

Footnotes

  1. Wither roses are excluded from this datapack

  2. Not my best work. But, it functions.