<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-Hans-CN">
	<id>https://mineplugin.org/index.php?action=history&amp;feed=atom&amp;title=Magic%2FImageMaps</id>
	<title>Magic/ImageMaps - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://mineplugin.org/index.php?action=history&amp;feed=atom&amp;title=Magic%2FImageMaps"/>
	<link rel="alternate" type="text/html" href="https://mineplugin.org/index.php?title=Magic/ImageMaps&amp;action=history"/>
	<updated>2026-06-01T11:05:18Z</updated>
	<subtitle>本wiki上该页面的版本历史</subtitle>
	<generator>MediaWiki 1.41.1</generator>
	<entry>
		<id>https://mineplugin.org/index.php?title=Magic/ImageMaps&amp;diff=15244&amp;oldid=prev</id>
		<title>炫宙菌：​创建页面，内容为“none  Magic includes a robust…”</title>
		<link rel="alternate" type="text/html" href="https://mineplugin.org/index.php?title=Magic/ImageMaps&amp;diff=15244&amp;oldid=prev"/>
		<updated>2021-06-27T15:40:05Z</updated>

		<summary type="html">&lt;p&gt;创建页面，内容为“&lt;a href=&quot;/index.php?title=%E6%96%87%E4%BB%B6:Https://lh5.googleusercontent.com/-QvcXC33t6K4/U1qTbWjp4dI/AAAAAAAAAU4/QIfysxqbFT4/w854-h480-no/2014-04-25_09.50.25.png&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;文件:Https://lh5.googleusercontent.com/-QvcXC33t6K4/U1qTbWjp4dI/AAAAAAAAAU4/QIfysxqbFT4/w854-h480-no/2014-04-25 09.50.25.png（页面不存在）&quot;&gt;thumb|none&lt;/a&gt;  Magic includes a robust…”&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[File:https://lh5.googleusercontent.com/-QvcXC33t6K4/U1qTbWjp4dI/AAAAAAAAAU4/QIfysxqbFT4/w854-h480-no/2014-04-25_09.50.25.png|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
Magic includes a robust &amp;amp;quot;image map&amp;amp;quot; system, for putting PNG and GIF images on to Minecraft maps. You can use these maps as decorations in item frames, special collectable items, or whatever you can dream up.&lt;br /&gt;
&lt;br /&gt;
Using the &amp;amp;quot;mmap&amp;amp;quot; command, you can create, edit and remove maps:&lt;br /&gt;
&lt;br /&gt;
* mmap load &amp;lt;url&amp;gt; [name] [width] [height]: Load an image into a map. Will create a new map if this image hasn&amp;#039;t been loaded before. Can load URLs, or files (relative to your MC server path)&lt;br /&gt;
* mmap give [player] &amp;lt;map id&amp;gt; : Give yourself or another player a specific map&lt;br /&gt;
* mmap list [filter] : List all maps, or search for specific maps by keyword/filename&lt;br /&gt;
* mmap remove &amp;lt;map id&amp;gt; : Unregister a specific map id, returning it to a normal map&lt;br /&gt;
* mmap import [Pixelator config file] : Import images from Pixelator (You should disabled Pixelator prior to doing this!)&lt;br /&gt;
&lt;br /&gt;
== Animated GIFs ==&lt;br /&gt;
&lt;br /&gt;
If you were wondering &amp;amp;quot;this can&amp;#039;t possibly support animated GIFs, can it?&amp;amp;quot; Well, it can!&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Disclaimer&amp;#039;&amp;#039;&amp;#039;: I would not recommend using these very much, if at all! The bandwidth cost may be very high. It is effectively 16k x number of players viewing per animation frame time. Minecraft does not cache or compress these in any way, they are sent from the server to the client .. you have been warned!&lt;br /&gt;
&lt;br /&gt;
[http://www.youtube.com/watch?v=6SgD163Xrcs [[File:http://img.youtube.com/vi/6SgD163Xrcs/0.jpg|fig:]]]]&lt;br /&gt;
&lt;br /&gt;
== The Camera Spell ==&lt;br /&gt;
&lt;br /&gt;
The &amp;amp;quot;camera&amp;amp;quot; spell and item use this system for generating player portraits. You will see any photos taken with a camera show up in the /mmap list.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Note:&amp;#039;&amp;#039; It is generally easier to use the /mmap command for dealing with maps, but I&amp;#039;ve left this section here for reference.&lt;br /&gt;
&lt;br /&gt;
The camera spell can be used from the command-line to decorate your&amp;lt;br /&amp;gt;&lt;br /&gt;
world with images. There are a few key parameters:&lt;br /&gt;
&lt;br /&gt;
* name: A player&amp;#039;s name, to create a portrait. Can also be used to set&amp;lt;br /&amp;gt;&lt;br /&gt;
a custom name for an id or url map.&lt;br /&gt;
* url: A full url to a PNG image to show on the map.&lt;br /&gt;
* x: The x offset, in pixels, to start rendering from. Default is 0.&lt;br /&gt;
* y: The y offset, in pixels, to start rendering from. Default is 0.&lt;br /&gt;
* width: How many x pixels of the image to use. Default is 128.&lt;br /&gt;
* height: How many y pixels of the image to use. Default is 128.&lt;br /&gt;
&lt;br /&gt;
Or, you can use the following to get an existing map:&lt;br /&gt;
&lt;br /&gt;
* id: A map id : Useful for creating a copy of an existing map (this&amp;lt;br /&amp;gt;&lt;br /&gt;
can be done with /give, too)&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre class=&amp;quot;&amp;quot;&amp;gt;/cast camera url http://i.imgur.com/UUyPoDi.png&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can also give it a name, which will make it easier to find later, and also name the photo for you:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre class=&amp;quot;&amp;quot;&amp;gt;/cast camera url http://i.imgur.com/UUyPoDi.png name Daft&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[File:http://i.imgur.com/udTNu8h.png|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
You can use &amp;amp;quot;/magic list maps &amp;amp;lt;keyword&amp;amp;gt;&amp;amp;quot; in-game or via the console to&amp;lt;br /&amp;gt;&lt;br /&gt;
search for maps. The list will include the id&amp;#039;s, so you can then use&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;amp;quot;/cast camera id &amp;amp;lt;id&amp;amp;gt;&amp;amp;quot; to get a copy of a previously loaded map.&lt;br /&gt;
&lt;br /&gt;
[[File:http://i.imgur.com/nhF5CzC.png|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
Maps are loaded on demand (both from the web and into memory), and&amp;lt;br /&amp;gt;&lt;br /&gt;
cached on the server for performance. If you wish to clear this cache,&amp;lt;br /&amp;gt;&lt;br /&gt;
use &amp;amp;quot;/magic clearcache&amp;amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Map URLs are saved in data/imagesmaps.yml. This file can be manually&amp;lt;br /&amp;gt;&lt;br /&gt;
edited, though Magic saves to it frequently so editing while the server&amp;lt;br /&amp;gt;&lt;br /&gt;
is offline is best. If you do edit the file, you may create new entries&amp;lt;br /&amp;gt;&lt;br /&gt;
by specifying a non-integer string (e.g. &amp;amp;quot;new1&amp;amp;quot;) as the key. Magic will&amp;lt;br /&amp;gt;&lt;br /&gt;
generate a new map and id for your entry on next start. Make sure to&amp;lt;br /&amp;gt;&lt;br /&gt;
create a backup, YML is a fickle mistress.&lt;br /&gt;
&lt;br /&gt;
== Cropping and Scaling ==&lt;br /&gt;
&lt;br /&gt;
Images will be auto-scaled to fit on a 128x128 map canvas by default. You can scale and crop yourself with the x, y, width and height parameters- for instance&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre class=&amp;quot;&amp;quot;&amp;gt;/cast camera url http://i.imgur.com/UUyPoDi.png x 100 y 100 width 128 height 128&amp;lt;/pre&amp;gt;&lt;br /&gt;
Will produce the following cropped image:&lt;br /&gt;
&lt;br /&gt;
[[File:http://i.imgur.com/EFieeGX.png|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
== Command Blocks and Console ==&lt;br /&gt;
&lt;br /&gt;
You can set up command blocks that use &amp;amp;quot;castp @p camera id &amp;amp;lt;foo&amp;amp;gt;&amp;amp;quot;&amp;lt;br /&amp;gt;&lt;br /&gt;
to give out artwork or portraits. &amp;amp;quot;castp @p camera target self&amp;amp;quot; can be&amp;lt;br /&amp;gt;&lt;br /&gt;
used for a photo booth.&lt;br /&gt;
&lt;br /&gt;
Using /castp from the console can also help you get around the chat&amp;lt;br /&amp;gt;&lt;br /&gt;
length limitations for using longer urls.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre class=&amp;quot;&amp;quot;&amp;gt;castp NathanWolf camera url http://upload.wikimedia.org/wikipedia/commons/thumb/e/ea/Van_Gogh_-_Starry_Night_-_Google_Art_Project.jpg/1024px-Van_Gogh_-_Starry_Night_-_Google_Art_Project.jpg&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[File:https://lh6.googleusercontent.com/-fu_nlaitBgA/U1qTbu1tgUI/AAAAAAAAAU8/F2nakT_ZJ0o/w854-h480-no/2014-04-25_09.51.13.png|thumb|none]]&lt;/div&gt;</summary>
		<author><name>炫宙菌</name></author>
	</entry>
</feed>