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
?
Minecraft – How to use /setblock to put down a flower pot with an Oxeye Daisy in it
minecraft-java-edition
Related Topic
- Minecraft – Testing for a Certain Structure
- Minecraft: Special Characters in Target Selector Arguments
- Minecraft – How to use exclamation marks in Minecraft commands
- Minecraft – How to use /setblock to place a chain_command_block with arguments
- Minecraft – Need to make target selector only select one entity
- Minecraft – the Java Edition method of Bedrock Edition’s /ride command
Best Answer
The command to spawn in a flower pot with an Oxeye Daisy at your feet is:
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: