I wrote a command in a repeating command block and activated it with a redstone torch. A few seconds later game crashed.
The command I wrote is this: execute at @e[type=!player,type=!item] run summon tnt
Attachments
Comments 4
@Dhranios Thanks for your clarification. I don't understand Minecraft's technical side so well as you. It was my first time trying out that command, I didn't expect a crash.
I agree with @unknown in that this is an user error, but still, I don't think the game should crash. Leaving this open for Mojang to decide if they should fix it.
You're asking the game to spawn tnt at every entity every tick, that includes tnt that was just spawned. You're effectively saying for each tick, double the amount of entities, so your game will run out of memory really quickly.
This is just the game doing as it is told. Those are your instructions, your instructions are flawed.
Not a bug.