繁琐Fansuo
本帖最后由 qin905604662 于 2017-4-2 21:48 编辑

如何在书本内加入大量的图片呢?
在玩迫降时无意发现。
可以通过更改字体的材质来实现。
通过各种生僻的汉字及符号的不同来实现。
字体材质位置:Roaming\.minecraft\resourcepacks\1.8 Default Texture Pack.zip\1.8 Default Texture Pack\assets\minecraft\textures\font

以美丽新世界中的书本举个例子,例如:
  1. {Motion:[0:1.1834239707919455E-9d,1:-0.0d,2:4.853611756627014E-8d,],UUIDLeast:-7756158697837595296L,Health:5s,Invulnerable:0b,Air:300s,OnGround:1b,Dimension:0,PortalCooldown:0,Rotation:[0:223.85187f,1:0.0f,],Thrower:"fansuo233",FallDistance:0.0f,Item:{id:"minecraft:written_book",Count:1b,tag:{pages:[0:"{"bold":true,"color":"gold","extra":[{"bold":false,"color":"blue","text":"If you are reading this guide, then your ship\u0027s on-board computer has detected a critical error in your Crafting Module!"}],"text":"Hello Space Traveller!\n\n\n"}",1:"{"color":"blue","text":"Worry not though, for your Crafting Module has just activated its Emergency Failsafe!\n\nWhen your Crafting Module is in Emergency Failsafe mode, your crafting recipes will be limited to only those which are deemed necessary for survival on hostile"}",2:"{"color":"blue","extra":[{"color":"dark_red","text":"\n(Do not place more than one item in a CM Slot!)"}],"text":"worlds.\n\nThe Emergency Failsafe ensures no internal power is wasted in the crafting process. In order to ensure this, new items can only be crafted one at a time. "}",3:"{"color":"blue","extra":[{"color":"dark_red","text":"Once again, remember not to place more than ONE item/block in any Crafting Module Slot. Also do not place items in empty slots of a recipe, as it will be lost (Craft carefully!)"}],"text":"This guide will show you the recipes which are still craftable in your dire situation.\n\n"}",4:"{"color":"gold","text":"\n\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\n\nThe Crafting Module\u0027s\n  Emergency Failsafe\n      Recipe Guide\n\n\n\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\n"}",5:"{"bold":true,"color":"green","clickEvent":{"action":"open_url","value":"http://imgur.com/a/iQ1p0"},"extra":[{"bold":false,"color":"blue","extra":[{"color":"dark_red","text":"(Highly recommended for players with internet access)"}],"text":"Click the button above to be taken to the online guide! It\u0027s easier to use with full picture images! \n\n"}],"text":"\n\n   [Online Guide]\n\n\n"}",6:"{"bold":true,"color":"dark_green","extra":[{"bold":false,"hoverEvent":{"action":"show_text","value":"[需][需][需]\n[需][靠][需] ---\u003e (靤x4)\n[需][需][需]"},"extra":[{"hoverEvent":{"action":"show_text","value":"[需][需][需]\n[邭][邭][需] ---\u003e (霠)\n[邭][邭][需]"},"extra":[{"hoverEvent":{"action":"show_text","value":"[需][需][需]\n[邾][邾][需] ---\u003e (霑)\n[邾][邾][需]"},"extra":[{"hoverEvent":{"action":"show_text","value":"[需][需][需]\n[郉][郉][需] ---\u003e (霖)\n[郉][郉][需]"},"extra":[{"hoverEvent":{"action":"show_text","value":"[需][需][需]\n[郜][郜][需] ---\u003e (霒)\n[郜][郜][需]"},"extra":[{"hoverEvent":{"action":"show_text","value":"[靨][靨][靨]\n[靨][靨][靨] ---\u003e (靪)\n[靨][靨][靨]"},"extra":[{"hoverEvent":{"action":"show_text","value":"[靫][靫][靫]\n[靫][靫][靫] ---\u003e (霈)\n[靫][靫][靫]"},"extra":[{"hoverEvent":{"action":"show_text","value":"[邰][邰][邰]\n[邰][邰][邰] ---\u003e (霚)\n[邰][邰][邰]"},"extra":[{"hoverEvent":{"action":"show_text","value":"[邬][霚][邬]\n[霚][邼][霚] ---\u003e (霝)\n[邬][霚][邬]"},"extra":[{"hoverEvent":{"action":"show_text","value":"[需][需][需]\n[需][邴][需] ---\u003e (釽x4)\n[需][郅][需]"},"extra":[{"hoverEvent":{"action":"show_text","value":"[需][需][需]\n[需][邬][需] ---\u003e (釾)\n[需][郅][需]"},"text":"Redstone Torch"}],"text":"Torch\n"}],"text":"Powered Block\n"}],"text":"Iron Block\n"}],"text":"Coarse Dirt\n"}],"text":"Wet Foliage\n"}],"text":"Gold Ore Dust\n"}],"text":"Zinc Ore Dust\n"}],"text":"Iron Ore Dust\n"}],"text":"Cobblestone\n"}],"text":"Oak Planks\n"}],"text":"Blocks\n\n"}",7:"{"bold":true,"color":"dark_aqua","extra":[{"bold":false,"hoverEvent":{"action":"show_text","value":"[靤][需][靤]\n[靤][需][靤] ---\u003e (邨)\n[靤][靤][靤]"},"extra":[{"hoverEvent":{"action":"show_text","value":"[靠][靠][靠]\n[靠][需][靠] ---\u003e (鞡)\n[靠][靠][靠]"},"extra":[{"hoverEvent":{"action":"show_text","value":"[靤][量][靤]\n[靤][需][靤] ---\u003e (送)\n[靤][需][靤]"},"extra":[{"hoverEvent":{"action":"show_text","value":"[霠][霠][霠]\n[霠][需][霠] ---\u003e (鞒)\n[霠][霠][霠]"},"extra":[{"hoverEvent":{"action":"show_text","value":"[遭][遭][遭]\n[邶][霚][邶] ---\u003e (适)\n[邶][邶][邶]"},"extra":[{"hoverEvent":{"action":"show_text","value":"[需][需][需]\n[需][遙][需] ---\u003e (逃)\n[需][遗][需]"},"extra":[{"hoverEvent":{"action":"show_text","value":"[霚][釾][霚]\n[需][霚][需] ---\u003e (靐)\n[霝][霝][霝]"},"text":"Distress Beacon\n"}],"text":"Obsidian Turret\n"}],"text":"Deconstructor\n"}],"text":"Furnace\n"}],"text":"Oak Sieve\n"}],"text":"Storage Chest\n"}],"text":"Barrel\n"}],"text":"Functional Blocks\n\n"}",8:"{"bold":true,"color":"dark_gray","extra":[{"bold":false,"hoverEvent":{"action":"show_text","value":"[郆][郆][需]\n[需][郆][需] ---\u003e (退)\n[需][郆][需]"},"extra":[{"hoverEvent":{"action":"show_text","value":"[需][需][需]\n[需][邶][需] ---\u003e (達)\n[邶][需][需]"},"extra":[{"hoverEvent":{"action":"show_text","value":"[需][靤][靤]\n[需][需][郅] ---\u003e (逄)\n[需][需][郅]"},"extra":[{"hoverEvent":{"action":"show_text","value":"[邰][邰][違]\n[邰][需][違] ---\u003e (鞔)\n[需][需][邶]"},"extra":[{"hoverEvent":{"action":"show_text","value":"[需][邶][需]\n[需][邶][需] ---\u003e (逕)\n[需][郅][需]"},"extra":[{"hoverEvent":{"action":"show_text","value":"[邶][邶][邶]\n[需][郅][需] ---\u003e (逖)\n[需][郅][需]"},"extra":[{"hoverEvent":{"action":"show_text","value":"[邶][邶][需]\n[邶][郅][需] ---\u003e (逘)\n[需][郅][需]"},"text":"Steel Axe\n"}],"text":"Steel Pickaxe\n"}],"text":"Steel Sword\n"}],"text":"Grappling Hook\n"}],"text":"Wooden Hoe\n"}],"text":"Shears\n"}],"text":"Bone Crook\n"}],"text":"Tools\n\n"}",9:"{"bold":true,"color":"dark_purple","extra":[{"bold":false,"hoverEvent":{"action":"show_text","value":"[醰][醰][醰]\n[醰][醰][醰] ---\u003e (邝)\n[醰][醰][醰]"},"extra":[{"hoverEvent":{"action":"show_text","value":"[郍][郍][郍]\n[郍][郍][郍] ---\u003e (量)\n[郍][郍][郍]"},"extra":[{"hoverEvent":{"action":"show_text","value":"[邸][邸][邸]\n[邰][邰][邰] ---\u003e (邶)\n[邴][邴][邴]"},"extra":[{"hoverEvent":{"action":"show_text","value":"[醿][醿][醿]\n[醿][醿][醿] ---\u003e (違)\n[醿][醿][醿]"},"extra":[{"hoverEvent":{"action":"show_text","value":"[需][需][需]\n[需][靤][需] ---\u003e (郅x4)\n[需][靤][需]"},"extra":[{"hoverEvent":{"action":"show_text","value":"[邬][邬][邬]\n[霁][霁][霁] ---\u003e (邼)\n[邱][邱][邱]"},"extra":[{"hoverEvent":{"action":"show_text","value":"[邬][邬][需]\n[邬][邮][邬] ---\u003e (逞x4)\n[需][邬][邬]"},"extra":[{"hoverEvent":{"action":"show_text","value":"[需][霃][需]\n[霃][邼][霃] ---\u003e (遗)\n[邶][霃][邶]"},"extra":[{"hoverEvent":{"action":"show_text","value":"[霃][需][需]\n[霃][霃][霃] ---\u003e (遙)\n[邶][邶][需]"},"extra":[{"hoverEvent":{"action":"show_text","value":"[需][需][需]\n[需][邱][需] ---\u003e (邻x9)\n[需][需][需]"},"text":"Golden Nuggets"}],"text":"Obsidian Turret Top\n"}],"text":"Obsidian Turret Base\n"}],"text":"Redstone Shards\n"}],"text":"Circuit Board\n"}],"text":"Sticks\n"}],"text":"Rope\n"}],"text":"Galvanised Steel Ingot\n"}],"text":"Silk Mesh\n"}],"text":"Mashed Saplings\n"}],"text":"Items \u0026 Materials\n\n"}",10:"{"bold":true,"color":"gold","extra":[{"bold":false,"hoverEvent":{"action":"show_text","value":"[需][需][需]\n[郕][郕][郕] ---\u003e (郪)\n[需][需][需]"},"extra":[{"hoverEvent":{"action":"show_text","value":"[需][需][需]\n[邯][郟][邯] ---\u003e (郥)\n[需][需][需]"},"extra":[{"hoverEvent":{"action":"show_text","value":"[需][需][需]\n[郕][邜][郕] ---\u003e (郫x4)\n[需][需][需]"},"extra":[{"hoverEvent":{"action":"show_text","value":"[需][釆][需]\n[需][采][需] ---\u003e (郩)\n[需][部][需]"},"extra":[{"hoverEvent":{"action":"show_text","value":"[邻][邻][邻]\n[邻][郖][邻] ---\u003e (郗)\n[邻][邻][邻]"},"extra":[{"hoverEvent":{"action":"show_text","value":"[邱][邱][邱]\n[邱][郝][邱] ---\u003e (郞)\n[邱][邱][邱]"},"extra":[{"hoverEvent":{"action":"show_text","value":"[需][靾][需]\n[需][郮][需] ---\u003e (郶)\n[需][需][需]"},"extra":[{"hoverEvent":{"action":"show_text","value":"[需][郏][需]\n[需][郮][需] ---\u003e (鄂)\n[需][需][需]"},"extra":[{"hoverEvent":{"action":"show_text","value":{"extra":[{"color":"green","text":"鄊"},")\n[需][郯][需]"],"text":"[郓][郓][郓]\n[郓][郓][郓] ---\u003e ("}},"extra":[{"hoverEvent":{"action":"show_text","value":"[需][郞][需]\n[需][郮][需] ---\u003e (郴)\n[需][需][需]"},"text":"Apple Juice"}],"text":"Lemon Grass Tea\n"}],"text":"Eye Juice\n"}],"text":"Cactus Juice\n"}],"text":"Golden Apple\n"}],"text":"Golden Carrot\n"}],"text":"Mushroom Stew\n"}],"text":"Cookies\n"}],"text":"Seasoned Flesh\n"}],"text":"Bread\n"}],"text":"Food \u0026 Drink\n\n"}",],author:"Intergalactic Crafters Ltd",title:"Emergency Crafting Guide",resolved:1b,},Damage:0s,},UUIDMost:4341815938576367941L,Pos:[0:-1852.4801154229508d,1:5.0d,2:-890.9862382802107d,],PickupDelay:8s,Fire:-1s,Age:32s,}
复制代码

只需要将其中类似于“靨,靾,醿"等罕见字修改材质即可,便能达到下图中的效果
图中效果为修改后的悬浮事件









2067576645
好水啊,垃圾帖子

ABCS
2067576645 发表于 2015-5-6 20:48
好水啊,垃圾帖子

这算水?更改字体材质已经新脑洞打开了好吗=-=

1351680343zxw
我混乱了。。。。晕

nannan20041016
为何我感觉后面是乱码。。。

时光如年i
呃,完全看不懂....这个应该是其他游戏吧。内个。好玩吗?我那天也来看看

超平坦之王
nannan20041016 发表于 2015-5-6 20:54
为何我感觉后面是乱码。。。

你复制粘贴- -

爱心魔王FHC
LZ能放个图片么

8575544
图片已挂,请速补

Danger_S.M
图怎么挂了,我就是看看效果

360君
Danger_S.M 发表于 2015-5-6 21:08
图怎么挂了,我就是看看效果

不是图挂·是通过字体材质在书本用字符弄出图画

Danger_S.M
360君 发表于 2015-5-6 21:15
不是图挂·是通过字体材质在书本用字符弄出图画

嗯现在看到了

Danger_S.M
哇!!!真是厉害脑洞打开啊!!!怎么造的

⭐✔️
已为代码添加代码格式

HIMH
ABCS 发表于 2015-5-6 20:53
这算水?更改字体材质已经新脑洞打开了好吗=-=

是他没搞懂

繁琐Fansuo
贰逼 发表于 2015-5-6 21:18
已为代码添加代码格式

感谢帮助~

小白~别喷。
大开眼界,感谢LZ的分享,至于沙发的那个人我就不吐槽了0 0话说LZ还真厉害

lzs1234
图哪里挂…上面那群人别乱说…
本来准备研究代码才发现完全看不懂在写什么…

番茄茄
书里插图片!?以前还从来没想过这个问题...

2067576645
还好啊,不错

时光如年i
好东西。以后可以修改文本内容做一个具有特色的书了。还可以有图片。很赞。之前还以为是其他游戏呢。收下了

akbinlin
不错 好厉害哦~

z9481752630
那幅图不就是美丽沙世界吗

1272307182
2067576645 发表于 2015-5-6 20:48
好水啊,垃圾帖子

别理他,就是小学生看不懂就水贴

乙烯_中国
{:10_512:}不错的技巧,恩,楼主哪天我们来探讨一下这个技巧吧。不过个人觉得如果讲解能够更详尽一点就好了,毕竟需要教人来使用这个技巧。

ruhuasiyu
脑洞挺大

渡邉みなみ
没怎么看懂.....字体的材质.....什么意思

纯白剑姬
完全   看不懂!

第一页 上一页 下一页 最后一页