最MC论坛

标题: CustomStuff2-梯子和门 [打印本页]

作者: Thiocyanate    时间: 2016-2-1 17:28
标题: CustomStuff2-梯子和门
本帖最后由 Thiocyanate 于 2016-2-2 13:02 编辑

这次来介绍更多的梯子更多的门,不用担心门的类型少了


1.JS,不用说了
2.输入下列代码:
/*DiamondDoor.js*/
name = "DiamondDoor";
creativeTab = "buildingBlocks";

iconFile = "yourDoorIcon.png";
drop[0] = "Creator:DiamondDoor";
textureFileXP[0] = "/diamond_block.png";
textureFileXN[0] = "/diamond_block.png";
textureFileYP[0] = "/diamond_block.png";
textureFileYN[0] = "/diamond_block.png";
textureFileZP[0] = "/diamond_block.png";
textureFileZN[0] = "/diamond_block.png";
addToCreative[0]= true;

代码几乎都是一样的,关键是脚本文件,iconFile是在物品栏里面显示的图标
3.脚本文件
[attach]9178[/attach]
注意蓝色框框里面的东西,门是door
4.可以打开游戏了。

梯子

1.JS文件
2.输入下列代码:
/*IronLadder.js*/
name = "IronLadder";
material = "iron";
stepSound = "metal";
creativeTab = "buildingBlocks";


drop[0] = "Creator:IronLadder";
hardness[0] = 5;
resistance[0] = 30;
toolClass[0] = "pickaxe";
harvestLevel[0] = 2;
textureFileXP[0] = "/iron_block.png";
textureFileXN[0] = "/iron_block.png";
textureFileYP[0] = "/iron_block.png";
textureFileYN[0] = "/iron_block.png";
textureFileZP[0] = "/iron_block.png";
textureFileZN[0] = "/iron_block.png";
addToCreative[0] = true;
还是一样,关键在脚本
3.脚本设置
[attach]9177[/attach]
因为是梯子,蓝色框框里面是输入ladder
语言文件如果不会的请看之前的
4.就这么简单,打开游戏吧

下次介绍如何制作新的栅栏、栅栏门、墙、陷阱门,能介绍我尽量介绍,不然分出来太多了麻烦
初始页地址,有教程目录http://www.zuimc.com/thread-39587-1-1.html




欢迎光临 最MC论坛 (http://www.zuimc.com/) Powered by Discuz! X3.2