I’m trying to make a datapack that adds image maps to chests in shipwrecks and etc., But i can’t for the life of me figure out how. I know how to give myself a specifc map with a command by using {map:#} but I can’t find out how to format it in the loot table json. Can someone tell me what to put?
You have to fill in the maps yourself beforehand (either pixel art in-game or an external tool) and include them with the world save or as a separate "data pack" (a folder separate from the main data pack that contains map data files); map data is saved separately in map_#.dat files in the "data" folder (you also need idcounts.dat, which the game uses to store the current highest map number, otherwise, new maps will start at 0 and can overwrite existing maps. You could also just use very high map numbers, e.g. 32000-32767 (1.13+ uses an int instead of short, so it may be much higher) as it is extremely unlikely anybody will ever make that many maps. Likewise, you want to set the "locked" NBT tag to true so the player doesn't overwrite them when they are within the area covered by the map (before 1.14 you have to set the map center to something the player will normally never reach).
You have to fill in the maps yourself beforehand (either pixel art in-game or an external tool) and include them with the world save or as a separate "data pack" (a folder separate from the main data pack that contains map data files); map data is saved separately in map_#.dat files in the "data" folder (you also need idcounts.dat, which the game uses to store the current highest map number, otherwise, new maps will start at 0 and can overwrite existing maps. You could also just use very high map numbers, e.g. 32000-32767 (1.13+ uses an int instead of short, so it may be much higher) as it is extremely unlikely anybody will ever make that many maps. Likewise, you want to set the "locked" NBT tag to true so the player doesn't overwrite them when they are within the area covered by the map (before 1.14 you have to set the map center to something the player will normally never reach).
Thanks for that, i'll keep that in mind. However, i still don't know how to add the maps to the loot tables once they're added. What do I put in the loot table .json files to add them?
Hey.
I’m trying to make a datapack that adds image maps to chests in shipwrecks and etc., But i can’t for the life of me figure out how. I know how to give myself a specifc map with a command by using {map:#} but I can’t find out how to format it in the loot table json. Can someone tell me what to put?
Thanks a lot.
You have to fill in the maps yourself beforehand (either pixel art in-game or an external tool) and include them with the world save or as a separate "data pack" (a folder separate from the main data pack that contains map data files); map data is saved separately in map_#.dat files in the "data" folder (you also need idcounts.dat, which the game uses to store the current highest map number, otherwise, new maps will start at 0 and can overwrite existing maps. You could also just use very high map numbers, e.g. 32000-32767 (1.13+ uses an int instead of short, so it may be much higher) as it is extremely unlikely anybody will ever make that many maps. Likewise, you want to set the "locked" NBT tag to true so the player doesn't overwrite them when they are within the area covered by the map (before 1.14 you have to set the map center to something the player will normally never reach).
TheMasterCaver's First World - possibly the most caved-out world in Minecraft history - includes world download.
TheMasterCaver's World - my own version of Minecraft largely based on my views of how the game should have evolved since 1.6.4.
Why do I still play in 1.6.4?
Thanks for that, i'll keep that in mind. However, i still don't know how to add the maps to the loot tables once they're added. What do I put in the loot table .json files to add them?