CC: Tweaked

CC: Tweaked

65M Downloads

[Suggestion] Write-protection disks tag

sashafiesta opened this issue ยท 3 comments

commented

I think it would be useful to have an nbt tag to disable writing to disk, so it could behave like a treasure disk
Disk Drive could provide canWrite() method to fetch information about whether data can be written or not.
(true for non-protected non-treasure disks and false for everything else)

It could help map authors and won't be difficult to implement.

commented

It is currently possible to create read-only treasure disks using resource packs in CC:T See https://github.com/cc-tweaked/treasure-disks https://github.com/cc-tweaked/datapack-example and https://datapacks.madefor.cc/ for examples.

commented

I know. This suggestion is about write protecting regular disks. Treasure disks are actually mounted to resources(nowhere). I suggest adding a way to write-protect(and unprotect by removing the nbt tag) regular disks having actual mount points.

commented

I think @Wojbie's point is that map authors already have a way to implement this as (assumedly) they're already shipping a datapack.