I am having issue with a command block code. I have made a raised rail line on my world. I had used a command block code to give me a sign, that when clicked, would kill the minecart when the player got out...so there was no build up of carts on the lines. However, my sign stopped working with the latest updates.
The way I got my custom sign was going to minecraft.tools/en/sign.php and putting in two commands. When I had the commands in, I would generate the code, then paste it into a command block in world, put a button on the command block, push it...and I'd have my sign.
Now, it doesn't work right. When you click the sign, it takes you out of the cart, but it does not kill the cart.
This is what I put in the code generator...
/kill @e[type=Minecraft:minecart,c=1,r=3]
/tp @p ~ ~1 ~
I have tried fiddling around with the kill command, and still cannot get it to kill the cart.
Hello,
I am having issue with a command block code. I have made a raised rail line on my world. I had used a command block code to give me a sign, that when clicked, would kill the minecart when the player got out...so there was no build up of carts on the lines. However, my sign stopped working with the latest updates.
The way I got my custom sign was going to minecraft.tools/en/sign.php and putting in two commands. When I had the commands in, I would generate the code, then paste it into a command block in world, put a button on the command block, push it...and I'd have my sign.
Now, it doesn't work right. When you click the sign, it takes you out of the cart, but it does not kill the cart.
This is what I put in the code generator...
/kill @e[type=Minecraft:minecart,c=1,r=3]
/tp @p ~ ~1 ~
I have tried fiddling around with the kill command, and still cannot get it to kill the cart.
I have tried...
/kill @e[type=Minecraft:minecart_rideable,c=1,r=3]
/kill @e[type=minecart,c=1,r=3]
/kill @e[type=minecart_rideable,c=1,r=3]
Any help?
Command blocks no longer use minecraft: before item names.
For example, the command block I have in my world that disables Enderman griefing had to be changed,
@Courageous_Marinade If you look above, in my original post...I also tried it a few ways without the "Minecraft:" in the code...it still did not work.