1

I want to make a map that if you trow an item on the ground, a pillar will spawn there. But I don't know how to make the pillar spawn there. I don't know if this is even possible with the /clone command.

2

/execute at @e[type=item,nbt={OnGround:1b}] run clone [pillar corner xyz] [pillar opposite corner xyz] ~ ~ ~

and then on a chain conditional command block,

/kill @e[type=item,nbt={OnGround:1b}]

This will spawn a pillar on any item that you drop and then delete the item. I'm sure you want to be more specific with what items to spawn pillars at, but you haven't specified, so do as you will.

| improve this answer | |
  • 1
    I am making this is 1.12.2, for what version is this command? (And i already have the detector for the item drop) – Timo 203 Feb 16 at 13:09
  • 1
    The syntax of the /execute command was branched out in 1.13, so this solution will not work. Mind me asking why you're on 1.12.2? – AMJ Feb 16 at 13:11
  • 1
    I am on 1.12.2 because I am more familiar with the commands in 1.12.2 – Timo 203 Feb 16 at 14:21
  • 1
    Relative coordinates are a pretty basic feature of commands. If you didn't know about that until now, I would recommend a commands tutorial anyway, and then you might as well watch/read/… one for 1.13+. But be aware of potential issues in 1.13+: gaming.stackexchange.com/a/334702/171580 – Fabian Röling Feb 16 at 14:28
  • 2
    Also, you should have mentioned in the question that you're playing in 1.12.2. Now you can't do it anymore without invalidating the answer, which you should not do. – Fabian Röling Feb 16 at 14:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.