【中英对译】MCreator's wiki:How to Make a Block

文档源地址:https://mcreator.net/wiki/how-make-block
基于百度翻译的翻译结果逐句核对修改。
How to Make a Block 如何制作一个方块
Works with:All versions
适用于:所有版本
Section:Mod elements
This tutorial will guide you through the whole process of making a new block in MCreator.
本教程将指导您完成在MCreator中创建新方块的整个过程。
Before you start 在你开始之前
You will need to make a texture either by an editing program such as Gimp or Paint.net, or you can simply use the embedded editor. If you need help making it, go to Making a new Texture.
您需要通过一个编辑程序(如Gimp或Paint.net)制作一个纹理,或者您只需使用嵌入的编辑器。如果你需要帮助,请前往“制做一个新的纹理”页面。
Creation and naming 创建和命名
·First, go to the workspace.
·首先,转到工作区。
·Next click on Create new element.
·然后单击“创建新元素”。
·Type the name of your block. Names must not be repeated! The end-user will not see this name, so name it something that you can identify. One way you can prevent your block name from being repeated is to put the mod type before your mod name, Example: BlockSteel or ItemEnderStick.
·键入方块的名称。名称不能重复!最终用户不会看到这个名称,因此请将其命名为您可以识别的名称。防止方块名称重复的一种方法是将mod类型放在你的mod名称之前,例如:BlockSteel或ItemEnderStick。
·Click next.
·单击下一步。
Physical properties 物理属性
Block textures 方块纹理
·The top white block represents the top of the block.
·上方的白色方块表示方块的顶部。
·The blue square represents the west side of the block. If you fill this in first, it will apply the texture to all the other sides (which is useful to prevent your block as showing up as the missing/purple-black texture).
·蓝色方形代表方块的西侧。如果先填充此纹理,它会将纹理应用到所有其他边(这有助于防止你的方块显示为丢失的/紫色-黑色纹理)。
·The three other white squares represent the north, east, and south sides of the block (respectively).
·其他三个白色方形分别代表方块的北侧、东侧和南侧。
·The green square represents the bottom of the block and is the only field required.
·绿色方形表示方块的底部,是唯一需要的字段。
Special Information 特殊信息
·This adds a tooltip to the block when you hold your icon over the block in your inventory.
·当您将图标放在库存中的方块上时,这会向方块添加一个工具提示。
·Use commas "," to separate entries to a new line.
·使用逗号“,”分隔新行的条目。
·Use the backslash with a comma after "\," it to prevent the comma to make a new entry.
·使用后面加上逗号的反斜杠“\,”,以防止逗号生成新条目。
Render type and rotation 渲染类型和旋转
Block model 方块模型
This is a feature to fine-tune the rendering of your block and is optional to use.
这是一个微调方块渲染的功能,可以选择使用。
·Built-in models: Choose Custom for a custom model.
·内置模型:选择“自定义”来选择自定义模型。
··Normal: A full six-sided cube.
··正常:一个完整的六面立方体。
··Single texture: A full six-sided cube with only one texture. It uses the bottom block for the texture.
··单一纹理:只有一个纹理的完整六面立方体。它使用底部方块作为纹理。
··Cross model: A model that crosses over like flowers. It uses the bottom block for the texture.
··交叉模型:像花一样交叉的模型。它使用底部方块作为纹理。
·Custom 3D model type: If you are importing a 3D model that you have created in BCraft Cubik or Blender, choose Obj model file; you can also write a JSON file (see this page for more information) in which case, select the option for JSON model definition.
·自定义三维模型模式:如果要导入在BCraft Cubik或Blender中创建的三维模型,请选择Obj模型文件;您也可以编写一个JSON文件(有关详细信息请参见本页面),在这种情况下,请选择JSON模型定义选项。
·Import 3D model: Select this button to open up the .obj or .json file for your custom render. You may also select the buttons for BCraft Cubik or Blender (respectively, as shown) to open an editor.
·导入3D模型:选择此按钮打开.obj或.json文件以进行自定义渲染。您还可以选择BCraft Cubik或Blender(分别如图所示)的按钮以打开编辑器。
Block rotation方块旋转
The is a feature that you can make your block rotate based on the block face or player rotation and other ways.
这是一个让您可以使您的方块根据方块面或玩家旋转等方式旋转的功能。
·There currently are six rotation settings you can choose from.
·当前有六种旋转设置可供选择。
··No rotation: - Fixed block orientation.
··无旋转:-固定方块方向。
··Y-axis rotation (S/W/N/E): Rotates only the sides based on the way the player is facing.
··Y轴旋转(S/W/N/E):仅根据玩家面对的方式旋转侧面。
··D/U/N/S/W/E rotation: Rotates all sides based on the way the player is facing.
··D/U/N/S/W/E旋转:根据玩家面对的方式旋转所有侧面。
··Y-axis rotation (S/W/N/E): - Rotates only the sides based on the block face the block is clicked on.
··Y轴旋转(S/W/N/E):-仅根据单击方块的方块面旋转侧面。
··D/U/N/S/W/E rotation: Rotates all sides based on the block face the block is clicked on.
··D/U/N/S/W/E旋转:根据单击方块的方块面旋转所有侧面。
··Log rotation (X/Y/Z): Rotates the block like vanilla logs.
··原木旋转(X/Y/Z):像普通原木一样旋转方块。
Transparency 透明度
The is a feature that makes the block support transparency.
这是使方块支持透明度的功能。
·Check this box if your block has transparency - Leave unchecked for a solid block, check it if your block is similar to leaves, glass, iron bars, etc.
·如果方块具有透明度请选中此框-对于实心方块不选中此框,如果方块类似于树叶、玻璃、铁条等,则选中此框。
·Transparency type
·透明度类型
··Solid: No transparency (similar to dirt, stone, etc.)
··固体:无透明度(类似于泥土、石头等)
··Cutout: Transparent without mipmapping (similar to glass)
··剪切:透明,无mipmapping(类似于玻璃)
··Cutout mapped: Like Cutout, but with mipmapping (for a good explanation of what mipmapping is, see this page)
··剪切图映射:与剪切图类似,但使用mipmapping(有关mipmapping是什么的良好解释,请参见本页面)
··Translucent: Partially transparent and the most resource heavy option (similar to ice)
··半透明:部分透明,资源最重的选项(类似于冰)
Block dimensions 方块尺寸
Edits the physical bounds of the block with ranges between 0 and 1.
编辑范围在0到1之间的方块的物理边界。
·The 3 min coordinates reside in the bottom corner of the block, while the 3 max coordinates reside in the top corner
·3个最小的坐标位于方块的下角,而3个最大的坐标位于块的上角。
·Lower half slabs would have the settings: 0, 0, 0, 1, 0.5, 1 (min x, y, z, max x, y, z)
·下半砖的设置为:0、0、0、1、0.5、1(最小x、y、z,最大x、y、z)
·Upper half slabs would have the settings: 0, 0.5, 0, 1, 1, 1
·上半砖的设置为:0、0.5、0、1、1、1
TX Blocks TX方块
This is no longer part of the program, it is still here for historical purposes.
这已不再是程序的一部分,它仍在这里是因为历史目的。
·TX blocks option: This option is deprecated and currently serves no purpose.
·TX方块选项:此选项已被弃用,目前不起作用。
Block Settings 方块设置
Here you will have a number of options to chose from.
在这里,您可以选择许多选项。
Basic properties 基本属性
·Name In GUI: This is the shown name of the block or item when you hover over it in any GUI in Minecraft.
·图形用户界面中的名称:这是当您将鼠标悬停在Minecraft中的任何GUI(图形用户界面)上时显示的方块或物品的名称。
·Hardness: This is how long it takes to mine the block.
·硬度:这是开采方块所需的时间。
·Resistance: This is how the block reacts to explosions.
·抗性:这是方块对爆炸如何反应。
·Has Gravity: Check this if you want the block to act like sand or gravel, it will fall if not on the ground.
·有重力:如果你想让方块像沙子或沙砾一样运动,请选中此项。如果它不在地面上,它会掉下来。
·Creative Tab: This is where your block will be in creative mode.
·创造选项卡:这是处于创造模式时方块所在的位置。
Advanced properties 高级属性
·Isn't collidable: Check this if you want to walk through the block.
·不可碰撞:如果你想穿过方块,请选中这个。
·Can provide power: Check this if you want the block to act as a Redstone block.
·可以供能:如果您希望方块充当红石块,请选中此项。
·Light opacity: This property makes the block allow (1) or not (0) the light to pass through, 126 makes it semi-transparent and 255 will allow all light through.
·光不透明度:此属性使块允许(1)或不允许(0)光通过,126使其半透明,255将允许所有光通过。
·Material: Select the material of the block. It isn't really important what to choose, but if you select water material, farmland will become wet if it's near it, if you select wood, you can smelt your block in the furnace, selecting lava means that you can get empty buckets full of lava by clicking on your block. here is some more info about materials.
·材质:选择方块的材质。选择什么并不重要,但是如果你选择了水材质,如果靠近农田,农田就会变湿;如果你选择了木材,你可以在熔炉中烧炼你的方块;选择熔岩意味着你可以通过点击方块获得装满熔岩的空桶。以下是有关材质的更多信息。
Dropping properties 掉落属性
·Tool able to destroy it: This is what tool you want to mine the block, Example: set to an axe to mine wood.
·能够摧毁它的工具:这是你想挖掘该方块的工具,例如:设置成一把斧头来挖掘木头。
·Doesn't drop itself: Check this if you want the block to drop something other than the block you are mining. take note that you will need an item or block before you check this so it can drop it.
·不会掉落自身:如果您希望方块掉落您正在挖掘的方块以外的其他东西,请选中此项。请注意,在选中此项之前,您需要一个物品或方块,以便它可以将其掉落。
·Block that drops: This will become active when you check Doesn't drop itself. You can select your item or block you want to drop here.
·掉落的方块:当您选中“不会掉落自身”时,它将变为活动状态。您可以在此处选择要掉落的物品或方块。
·Drop amount: This is how much it drops when mined.
·掉落数量:这是挖掘时掉落的数量。
Light, sound, and hardness 光亮、声音和硬度
·Sound on step: This is the sound that your block makes when you walk on it.
·行走时的声音:这是你在你的方块在上面行走时发出的声音。
·Luminance: This is how much light the block gives off.
·亮度:这是方块发出的光的多少。
·Is unbreakable: Check this if you want it to act like bedrock.
·是无法破坏的:如果你想让它像基岩一样,就选中此项。
·Harvest Level to break: This is the tier of tool required to break the block. 0 is hand/wood, 1 is stone, 2 is iron and 3 is diamond. Only the tier of tool you specify will be able to break your block.
·要破坏的收获级别:这是破坏方块所需的工具级别。0是手/木头,1是石头,2是铁,3是钻石。只有您指定的工具层级才能破坏您的方块。
Particles 粒子
·Spawn particles around block: Check this box if you want to add particles.
·围绕方块生成粒子:如果要添加粒子,请选中此框。
·Particle type: This will be the type of the particles, for instance, the particles could be bubbles or hearts (breeding).
·粒子类型:这将是粒子的类型,例如,粒子可以是气泡或心脏(繁殖中)。
·Particle spawning shape: This is the shape of how the particles will spawn.
·粒子生成形状:这是粒子将如何生成的形状。
·Particle spawning radius: This the distance that the particles will travel from your block.
·粒子生成半径:这是粒子将从方块移动的距离。
·Particle amount: This is the number of particles that will spawn at one time.
·粒子数量:这是一次生成的粒子数目。
·Click next
·单击下一步
Block's tile entity and inventory 方块的平铺实体和库存
·Enable tile entity and inventory on this block: check this box if you want to add an inventory or use NBT variables.
·在此方块上启用平铺实体和库存:如果要添加库存或使用NBT变量,请选中此框。
·Number of Inventory (slot count): This is how many slots your GUI will use for the inventory.
·库存数量(插槽计数):这是您的GUI将用于库存的插槽数。
·Max size of stack: This is how many items in the slots can stack too.
·堆栈的最大大小:这也是插槽中可以堆叠的项目数。
·Drop items from inventory when destroyed: Check this if you want the items to drop when the block is broken.
·破坏时从库存中掉落物品:如果希望在方块被破坏时掉落物品,请选中此项。
·Enable block output comparator data: Check this if you want the block to work with comparators.
·启用方块输出比较器数据:如果希望方块与比较器一起工作,请选中此项。
·Output slots: Select what slots are output slots, use commas to separate the slot numbers.
·输出插槽:选择哪些插槽是输出插槽,使用逗号分隔插槽编号。
·Click next
·单击下一步
Procedures 程序
·See this post to introduce you to events.
·请看这篇文章,向您介绍事件。
·Procedure Tiggers
·程序触发器
··On block right clicked: Trigger a procedure when the block is right-clicked.
··在方块被右键单击时:在方块被右键单击时触发一个过程。
··When block added: Trigger a procedure when the block is added.
··添加块时:添加块时触发一个过程。
··When neighboring block changes: Trigger a procedure when a block nearby updates.
··当相邻块变化时:当附近的块更新时触发一个过程。
··Update tick: Trigger a procedure when the tick-rate updates.
··更新tick:当tick-rate更新时触发一个过程。
··Random tick update event: Trigger a procedure randomly (player side only)
··随机tick更新事件:随机触发一个程序(仅限于玩家侧)
··When block destroyed by player: Trigger a procedure when the player breaks the block.
··当方块被玩家摧毁时:当玩家打破方块时触发一个程序。
··When block destroyed by explosion: Trigger a procedure when the block breaks by an explosion.
··当方块被爆炸破坏时:当方块被爆炸破坏时触发程序。
··When player starts to destroy: Trigger a procedure when a player starts to destroy the block.
··当玩家开始破坏时:当玩家开始破坏方块时触发程序。
··When entity collides in the block: Trigger a procedure when the player is in the block.
··当实体在方块中碰撞时:当玩家在方块中时触发一个过程。
··When entity walks on the block: Trigger a procedure when the player walks on the block.
··当实体在方块上行走时:当玩家在方块上行走时触发一个过程。
··When block is placed by: Trigger a procedure when something places the block (entity/block)
··当方块被放置时:当有东西放置方块时触发一个过程(实体/方块)
··Redstone on: Trigger a procedure when the block is powered with Redstone.
··红石开启:当方块被红石供电时触发一个过程。
··Redstone off: Trigger a procedure when the block is not powered by Redstone.
··红石关闭:当块未被红石供电时触发一个过程。
·Click next
·单击下一步
Recipe and smelting 配方与熔炼
This section is no longer part of the block setup you can now make recipe elements to configure the recipes and smelting.
此部分不再是方块设置的一部分,您现在可以制作配方元素来配置配方和熔炼。
·Select recipe and smelting recipe by clicking on the grid for crafting and smelting. If you want that block to generate in the world, click on world generation, checkbox Generate in the world and select levels of generation by moving slider next to chunk. OR you can use the recipe element to make shapeless recipes.
·通过点击创造和熔炼网格选择配方和熔炼配方。如果您要在世界中生成该方块,请单击“世界生成”,选中“在世界中生成”复选框,然后通过将滑块移到区块旁边来选择生成等级。或者您可以使用配方元素来生成无形状的配方。
·Click finish
·单击“完成”
Ore Generation 矿石生成
Block spawning/generation properties 矿石生成属性
·Dimensions to generate in: Select a dimension to enable ore generation.
·要生成的维度:选择维度以启用矿石生成。
·Blocks this ore can replace: Select what blocks your block will only spawn in if it's in that world(s)
·此矿石可以替换的方块:选择你的方块仅生成在什么方块中,如果在该世界中的话
·Restrict ore spawning per biome: Check this box if you want to restrict the ore to spawn only in a specific biome.
·按生物群系限制矿石生成:如果要限制矿石仅在特定生物群系中生成,请选中此框。
··Restriction biomes: Select what biomes you want the ore to generate in.
··限制生物群落:选择您希望矿石生成的生物群落。
·Frequency on chucks: Set the average about of ore veins to spawn per chunk.
·区块内的频率:设定生成在每个区块的平均矿脉数。
·Frequency on specific chunks: Set the average amount of block per ore veins.
·特定区块内的频率:设置每个矿脉的平均方块数量。
·Minimal height: The lowest point that the block can spawn at.
·最小高度:方块可以生成的最低点。
·Maximal height: The highest point that the block can spawn at.
·最大高度:方块可以生成的最高点。
·Click next to complete.
·单击“下一步”完成。
Test and editing 测试和编辑
·If you want to test your Block, Click Start Client towards the top middle of MCreator.
·如果要测试您的方块,请单击MCreator顶部中间的Start Client。
·Your mod becomes visible in "My workspace" when you open My workspace.
·当你打开“我的工作区”时,你的mod会在“我的工作区”中变得可见。
··If you need to edit your element in "My workspace" click on "Edit element".
··如果需要在“我的工作区”中编辑您的元素,请单击“编辑元素”。
Video tutorial 视频教程
If you prefer to watch the video, you can find the wiki page above summarized in a video:
如果您喜欢观看视频,您可以发现以上的wiki页面被总结在一个视频中:
[CAFDBEDDC9BEB3FD]