When I give myself an empty(nbt data has its spawn id set to nothing) monster spawner without cheats enabled(using a command block of course) and I try and place it down it turns into a pig spawner, even though the nbt data of the block is telling it to have an empty spawn id. When I enable cheats on the world by turning on LAN and then place it down, it comes up as an empty spawner.
Attachments
Comments 5
That still confuses me? How would one exploit this? If someone knew how to give themselves one by turning on LAN and enabling cheats, aren't they already exploiting a game mechanic? To me this seems kinda limiting in terms of what map makers can do. Not by much as it is just one thing, but still slightly limiting. I don't mean to sound aggressive or mean, but to me it just seems weird that the game would force you to enable cheats to use nbt data on monster spawners or whatever else. I'm honestly just trying to do this for a survival map, but I don't want to enable cheats, as that would allow players to cheat... Regardless, not something that I personally would have done, but I can't really complain either since I didn't make the game. I didn't know it was a feature, so sorry about posting this thinking it was a mistake. I honestly thought that this was some weird bug that happened as a result of the new update. Any way, thanks for clearing this up for me. I will just have to think of a work around I guess.
For server security, if you enable cheats in single player/lan, you're basically considered an op, and only ops are allowed to place blocks with a BlockEntityTag.
The idea is that if someone were to use a hacked client to give themselves such an item (without cheats/op), placing it would render it useless.
This is intended, to avoid possible exploits.