Custom Treasure Map – Custom – Made Treasure Card 1.13+ Guide

Custom Treasure Map – Custom – Made Treasure Card 1.13+ Guide

Have you thought about how to make a custom map of treasures, search for a mansion or temple in the ocean? I yes, so I decided to look for information. But on the Internet, I did not find anything… Therefore, I myself have developed my own, author’s method of creating a custom map of the treasure.

As soon as I saw the cards of the treasure, it caught fire to create such a custom card. This is an ideal thing for passing cards, or you can arrange events on the server (although at the moment it is very inconvenient because of the method. Perhaps in the future I will write a plugin for automatic creation of such cards). In general there is nothing to rant, let’s move on to the method.

1. We find the place you like, take an empty map and use. Now we have an image of the area, it will come in handy. We leave the world.

Custom Treasure Map – Custom – Made Treasure Card 1.13+ Guide

2. We draw a map of the area that we chose in any photo editor (I used Photoshop). This is what our card from the first point is useful to come in handy. I took off the screenshot using JOXI. Size image in the 128 editor for 128 pixels, if it is a card without scale.

Custom Treasure Map – Custom – Made Treasure Card 1.13+ Guide

3. We use a service or a program to create maps according to the picture. I took advantage of this site, But the color scheme there is clearly outdated, so it is better to use this program – github. Then we throw our received card in the folder with preservation (I hope everyone can do it, otherwise, google).

4. Open the well – known nbtexplorer. We find our preservation of the world, we find a map that was added to the world and edit the following fields:

– XCenter and ZCenter are the coordinates of the block that will be in the center of the map.

– Trackingposition – is responsible for displaying the player on the map.

– UnlimitedTracking – andquot;Tagandquot; the player will always be on the map, even if the player is far beyond its borders. It is necessary in order to look for the position of the area presented on the map.

Custom Treasure Map – Custom – Made Treasure Card 1.13+ Guide

5. We save everything and go into the world. Now you need to give yourself a card, as well as place marks on it. To do this, I used the following command:

/give @a filled_map {map: 1, display: {name:andquot;Cacheandquot;, Mapcolor: 32768}, decorations: [{ID:andquot;Houseandquot;, Type: 8, X: 314, Z: 254, Rot: 180}, {ID:andquot;Treasureandquot;, Type: 26, X: 293, Z: 269, Rot: 0}]} 1

Phased analysis of the team:

MAP: 1 – this is the card indifier that needs to be issued. We edited the file map_1, and the indicator is determined by the number in the title of the file.

Display: {Mapcolor: 32768} – Thus, we set color to the map. The screenshots show that it is green. Where did the dials come from? They are calculated by the formula [(red “16) + (Green“ 8) + Blue].

If you delve into theory, then this is RGB color coding.

For what? Each color is 1 byte (0 – 255). And if you use a byte, then each color will have to be written separately, which is not rational, from the side of the program. And all 3 colors (red, green, blue) contain 3 bytes. By the way, Integer contains 4 bytes. This does not apply to the map, but it is worth considering that there is still such a thing as transparency, which is recorded in the fourth byte. So it turns out that coding RGB color (especially with transparency) is ideal for Integer and under one variable. andlt;andlt; – This is a bite shift in the left. In general, the one who understands will understand. A little theory will not hurt.

The one who did not understand, look for the desired color in the RGB system and substitute values in the code presented below. The code itself can be compiled in the Java online compiler.

Ultimately you get a number, this is the color.

Class Rextester {Public Static Vood Main (String Args []) {
int r, g, b;
// R = andlt;numberandgt;;// g = andlt;numberandgt;;// b = andlt;numberandgt;;
int color = (r andlt;andlt; 16) |(Gandlt;andlt;8) |(B);
System.out.Println (Color);
}}

Decorations: [{id:andquot;Treasureandquot;,type: 26, x: 293, z: 269, rot: 0}] – this tag is responsible for the tags on the map. There may be several of them.

ID – Indiffer, should be different.

TYPE – type of marker. All markers are here.

X and Z are responsible for the coordinates of this marker.

ROT is a rotation angle. What is interesting is that the marker of the mansion is turned 180 degrees initially (others should be displayed normally).

6. Leave away from the area that was added to the map and give yourself a map. After completing you will see this miracle.

Custom Treasure Map – Custom – Made Treasure Card 1.13+ Guide

7. The card is ready, explore!

Custom Treasure Map – Custom – Made Treasure Card 1.13+ GuideCustom Treasure Map – Custom – Made Treasure Card 1.13+ GuideCustom Treasure Map – Custom – Made Treasure Card 1.13+ Guide

Leave a Reply

Your email address will not be published. Required fields are marked *