Arqade Asked on December 1, 2020
Slimes are notoriously known for being able to split into smaller slime when killed. This happens in both editions of Minecraft, Java Edition and Bedrock Edition.
I’m making a map where a slime is present and cannot be killed except for one secret procedure whose instructions are hidden in the map. When these instructions are achieved, a /kill
command kills the slime indicating that the player has completed their mission.
But unfortunately, there is one small flaw: the /kill
command activates the slimes’ splitting mechanic, and it splits into medium sized slimes. But I want the slime to die immediately, without splitting.
I would prefer a command that satisfies the following conditions. If you have an answer that doesn’t satisfy them, I will still accept it, but please avoid repeating anything already said:
How can I achieve this?
You could teleport it far away or into the void. You could also preform multiple kill commands. Those are two ways of solving it. If you want the death animation then kill it then teleport all the slimes far away or into the void.
Answered by randomuser922 on December 1, 2020
So I see two solutions:
Have a pit of lava, or if its lava slimes a deep hole that they cant jump out of, or that goes through the bedrock, or a closed room they can't escape from and teleport them to that pit. Or even, teleport them below the bedrock, if possible.
or make a command that kills all slimes, and in a way just make it run every .25s for a few seconds. So the slime die, separate, and then the next instance of the run comes through and kills the separated. Running it like 10 times in a row you make sure to get through the invicibility frames they may have when they are separating.
Or, if you want to see the kill animation (and not see them die and die again), mix both things. Run the /kill, so the player can see them die, and small time later just teleport all of them to the trash room.
Both are a little botched solutions, but I don't think you can straight kill a slime without it separating.
Answered by Fredy31 on December 1, 2020
You can try to make a Command Block that makes the slime become small right at the end of the death animation, so that it doesn't split anymore. I'm not sure about the modern syntax, but for 1.8 I think it'd be something like the following:
/entitydata @e[type=Slime] {Size:0}
For modern versions you might have to use /execute
.
Answered by John on December 1, 2020
There are two commands to run: (I'm assuming you're playing on 1.13+ version)
/execute as @e[type=slime] run data modify entity @s Size set value 0
/kill @e[type=slime]
The first command turns all slimes in the currently rendered chunks into baby slimes, the second one just kills them directly.
Another approach is to teleport the slimes to void, it's simpler and you don't need to deal with any drops.
/tp @e[type=slime] ~ -100 ~
Answered by YoshinoBHL on December 1, 2020
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP