<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[CustomStuff2-第一套工具]]></title><description><![CDATA[<p dir="auto"><em>本帖最后由 Thiocyanate 于 2016-1-10 14:00 编辑</em></p>
<p dir="auto"><strong>这次我们主要来介绍制作第一套工具，玩家们，你们有新的工具用了！！！！！</strong></p>
<p dir="auto">1.老样子，创建5个JS文件，然后用NotePad++打开，分别输入下列代码，因为代码很多，所以我直接发文字然大家方便复制：(1)斧头：/*CrateAxe.js*/name = "CrateAxe";creativeTab = "tools";full3d = true;toolClass = "axe";harvestLevel = 3;maxDamage = 200;addToCreative[0] = true;damage = 2;efficiency[0] = 6.0;onHitEntity[0] = "itemstack.damageItem(2);";onBlockDestroyed[0] = "itemstack.damageItem(1);";textureFile[0] = "platinumAxe.png";(2)铲子<br />
/*CrateShovel.js*/name = "CrateShovel";addToCreative[0] = true;creativeTab = "tools";damage = 2;full3d = true;toolClass = "shovel";efficiency[0] = 6.0;maxDamage = 200;onHitEntity[0] = "itemstack.damageItem(2);";onBlockDestroyed[0] = "itemstack.damageItem(1);";textureFile[0] = "platinumShovel.png";(3)镐子<br />
/*CratePickaxe.js*/name = "CratePickaxe";addToCreative[0] = true;creativeTab = "tools";damage = 2;full3d = true;toolClass = "pickaxe";harvestLevel = 3;efficiency[0] = 6.0;maxDamage = 200;onHitEntity[0] = "itemstack.damageItem(2);";onBlockDestroyed[0] = "itemstack.damageItem(1);";textureFile[0] = "platinumPickaxe.png";(4)剑：/*CrateSword.js*/name = "CrateSword";addToCreative[0] = true;creativeTab = "combat";damage = 10;full3d = true;maxDamage = 200;onHitEntity[0] = "itemstack.damageItem(1);";onBlockDestroyed[0] = "itemstack.damageItem(2);";textureFile[0] = "platinumSword.png";(5)锄头<br />
<strong>因为锄头的代码比较复杂，并且直接发送文字代码会出错，</strong><br />
<strong>所以在最复杂的地方，只能发送图片了，抱歉哈：</strong>/*CrateHoe.js*/name = "CrateHoe";addToCreative[0] = true;creativeTab = "tools";full3d = true;maxDamage = 200;</p>
<p dir="auto"><img src="/assets/attachment/forum/201601/10/135138gj4dju8itudc1ilc.png" alt="图片" class="img-markdown  img-fluid" /></p>
<p dir="auto">textureFile[0] = "platinumHoe.png";2.代码介绍：damage ：攻击伤害，多大都可以，但不要太大full3d = 是否需要立体，效果如图，左是右否，填写true或false：</p>
<p dir="auto"><img src="/assets/attachment/forum/201601/10/135534nnun7klurgg5gpgh.png" alt="图片" class="img-markdown  img-fluid" /></p>
<p dir="auto"><img src="/assets/attachment/forum/201601/10/135533zrnre4rgfscrgw2t.png" alt="图片" class="img-markdown  img-fluid" /></p>
<p dir="auto">efficiency：挖掘速度，多大都可以，本人不敢超过200maxDamage：工具耐久值，多大都可以，上万都可以enchantability：工具能附魔到好的附魔的几率，最高100，附魔类型取决于工具类型harvestLevel：工具挖掘等级，只限于镐子1级：木镐，只能挖石头、煤炭、石英2级：石镐，能挖石头、煤、铁、青金石、石英3级：铁镐，能挖石头、煤、铁、青金石、金、红石、钻石、绿宝石、石英4级：钻石镐，能挖石头、煤、铁、青金石、金、红石、钻石、绿宝石、石英maxDamage：耐久值，多大都可以onHitEntity：该物品击中实体后执行的脚本onBlockDestroyed：该物品挖掉一个方块后执行的脚本onUse：用此物品右键时执行的脚本执行脚本类的代码比较复杂，按照我的复制进去就可以了，我写的是耐久值的损耗，后面的数字是每次的损耗值，要根据工具的耐久而定3.语言文件和脚本文件这个不用多说了，和之前制作物品的完全一样</p>
<p dir="auto"><img src="/assets/attachment/forum/201601/10/135604uktxhytk8u6keawv.png" alt="图片" class="img-markdown  img-fluid" /></p>
<p dir="auto">还有脚本文件也是，图中的蓝色框框里面，这是它们专有的类型</p>
<p dir="auto"><img src="/assets/attachment/forum/201601/10/135614kdom39qqq3ma3bri.png" alt="图片" class="img-markdown  img-fluid" /></p>
<p dir="auto">4.打开游戏试试看吧</p>
<p dir="auto"><img src="/assets/attachment/forum/201601/10/140023gaa7o7oqtf0t4ao0.png" alt="图片" class="img-markdown  img-fluid" /></p>
<p dir="auto">**这次就介绍到这，下次我们介绍的是第一套装备，敬请期待哦~~~**<strong>初始页地址，有教程目录</strong>：<a href="/topic/9905/1.7.10-ssp-smp-customstuff2-%E4%B8%80%E6%AC%BE%E7%AE%80%E5%8D%95%E6%96%B9%E4%BE%BF%E7%9A%84%E5%88%B6%E4%BD%9Cmod%E7%9A%84mod">《［1.7.10］［SSP/SMP］CustomStuff2-一款简单方便的制…》</a></p>
]]></description><link>https://www.zuimc.com/topic/11333/customstuff2-第一套工具</link><generator>RSS for Node</generator><lastBuildDate>Mon, 30 Nov 2026 20:59:02 GMT</lastBuildDate><atom:link href="https://www.zuimc.com/topic/11333.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 10 Jan 2016 05:37:05 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to CustomStuff2-第一套工具 on Tue, 17 May 2016 13:50:43 GMT]]></title><description><![CDATA[<p dir="auto">你好，我想问一下。想设置右键对生物使用【胡萝卜】，失去胡萝卜，得到【湿润的胡萝卜】，如何编写脚本？<br />
就是对生物使用【物品】，失去【物品】，得到【新物品】这样的过程的脚本~<br />
谢谢前辈quq</p>
]]></description><link>https://www.zuimc.com/post/362135</link><guid isPermaLink="true">https://www.zuimc.com/post/362135</guid><dc:creator><![CDATA[Mcats]]></dc:creator><pubDate>Tue, 17 May 2016 13:50:43 GMT</pubDate></item></channel></rss>