How to make a mob spawner that spawns mobs at a specific coordinate?

Solution 1:

I tested to change a spawner to spawn stone as an item but it didn't seem to spawn anything.

However, you can use the execute command to test when a player enters a specific area:

execute if entity @a[x=-61,y=56,z=65,dx=2,dy=1,dz=2] run "Your command"

You could then remove the stone pressure plate and use this command:

setblock x y z redstone_block

or you could also summon the wanted stone:

/summon item ~ ~ ~ {Item:{id:"stone",Count:1}}


Whitin @a[x=-61,y=56,z=65,dx=2,dy=1,dz=2] you would place your own x y z and the dx dy dz is how far it tests for.

this:

execute if entity @a[x=-61,y=56,z=65,dx=2,dy=1,dz=2]

Will test for all players at a cube from -61 56 65 to -59 57 67