It MUST be in range of spawn to work, otherwise the chunk won't be loaded - better with the redstone timer I think. Of course, the issue here is that no-one would be able to hide the command block, so a bit pointless really, unless you hide it first, then set it from below perhaps. The moment you hit 'Done' you and everyone else will be permanently stuck on Adventure. It will be a little different from version to version, but I have no idea which version you are using. The example below was setup in Minecraft version 1.17.1. This might be a little safer to use - up to you. This would give you time to reach the command block and set yourself to creative to stop the update from constantly happening. You could change the button marked 'Always Active' to show 'Needs Redstone' and then set up a redstone timer to changes players gamemode. The below spoiler shows the settings for such a command block - better make a backup of the map before trying this - highly recommended. The REAL danger with setting up a command block this way is that ANYONE, including yourself will automatically be changed to adventure mode, meaning that NO-ONE would ever be able to change or update anything in the map ever again, unless you nbt edit the command block out of the map. Unfortunately I do not know all the entries that need changing to make adventure mode so the best way round this is to have a hidden command block somewhere on the map near spawn point which changes the gamemode to adventure for any player entering the map. Unfortunately, as far as I know, the Adventure mode relates to the player and would be under the 'player' / 'playerdata' entries and there are more than 1 entry that needs changing. This method just makes any user that logs in to be automatically in adventure mode. by the way, it will not show up as adventure mode in the world selection screen, due to it being a player specific option, not a map specific option. I'll leave my posts below because you may find them useful. Of course, you will be able to change the gamemode using the command line if you need to in the future using this method. Double-click on it and change to 2.ĭon't forget to save your changes and then re-try the map. Click on the + sign to open up the entries on 'playerdata', and on each of the entries you see, click on the + sign and look for 'playerGameType'. Now, further up from level.dat is 'playerdata'. To add NBT tags to existing compounds/lists, only edit already existing tags (thats next on my list of things to implement).Well, forgetting my second post about adventure mode below, you can set adventure mode from the nbt editor, but there is a few places to edit.ġ) click on the + sign to the left of 'level.dat' and 'level.dat_old' to open up the entriesĤ) Look for entry 'playerGameType', double-click on it and change the number to 2ĭon't forget change entries for both level.dat and level.dat_old Please be aware that at the moment there is no way That I hope to implement by full release. That it has not been heavily tested and still lacks some features NBT Explorer is currently flagged as experimental due to the fact
0 Comments
Leave a Reply. |