How do I use /setblock to put down a flower pot with an Oxeye Daisy in it?
I've been working a lot with DataValues and Entity IDs, doing mostly stuff with the /summon command, but i'm getting more into learning how to manipulate the world with Essentials and the Minecraft base commands. I'm trying to place a flowerpot with an Oxeye Daisy (or any flower) in it, but I can only seem to spawn in empty pots, or ones with dandelions, poppies or saplings. How do I put one down with /setblock?
Best Answer
The command to spawn in a flower pot with an Oxeye Daisy at your feet is:
/setblock ~ ~ ~ flower_pot 0 destroy {Item:38,Data:8}
A flower pot's plant is stored in an associated tile entity, which is described by the {stuff in curly braces}.
An Oxeye Daisy is block 38 with a data value of 8. Block 38 encompasses all one-block flowers except for Dandelions (which are 37 for historical reasons). Check the wiki for a hopefully up-to-date list on all the different values.
Planting other supported items works pretty much the same. For example, an Acacia Sapling would be:
{Item:6,Data:4}
Pictures about "How do I use /setblock to put down a flower pot with an Oxeye Daisy in it?"



How do you use Setblock?
How to Enter the CommandHow do you put things in a flower pot in Minecraft?
Steps to Use a Flower PotWhat are all the items you can put in a flower pot in Minecraft?
Usage. A flower pot can be used to hold mushrooms, fungi, and various plants. Plants that can be placed in a pot include any one block high flowers, saplings, ferns, dead bushes, cacti, bamboo, azaleas, mangrove propagule\u200c [upcoming:JE1.19] and roots.Set block/fill command tutorial for Minecraft PE
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Dids, Karolina Grabowska, Susanne Jutzeler, suju-foto, Gary Barnes
