How to (simulate) bonemeal with commands

I would like to run a command/series of commands where I can specify an x y and z coordinate of a block and then bonemeal will be used on that block.

By used I mean:

  • Have the same Fertilizer effects described here
  • Create new plants in the same way as is described here
  • If the coordinates are of a block where bonemeal cannot be used, e.g. air, the command should do nothing

I would like to be able to run this command through any method which can be achieved both manually and automated i.e. run in a command block. For instance, 3 trigger commands for x, y, and z and then a run trigger command; summoning a specific entity at the coordinates; etc...

Note: I am running 1.14.3


Solution 1:

There is no "bonemeal command". You need to place a dispenser with bonemeal in it and activate it.