Прочитать на английском Изменить

Поделиться через


Getting Started with the Minecraft Block Wizard

The Minecraft Block Wizard is a plugin for Blockbench. It allows you to add a custom block to Minecraft without any coding experience or knowledge of the addon system. It does this by generating an addon on your computer, which you can add to your world.

After you have created a custom block with the Wizard, you can use Blockbench to design a custom 3D model for it.

The plugin works similarly to the Minecraft Entity Wizard, which you can use to create custom entities.

Demonstration: How to Make a Custom Block

This video shows how to make a custom block with Minecraft Block Wizard.


In this tutorial, you will learn the following:

  • How to add the Minecraft Block Wizard plugin to Blockbench.
  • Understand the steps to create a custom block with the Wizard.
  • Export the block for use within Minecraft: Bedrock Edition.

Requirements

To get started, you need the following:

  • An installation of Blockbench
  • Minecraft Bedrock Edition
  • A Windows computer (or an Android device)

Важно!

Blockbench is provided by external, third-party contributors and is not a Mojang/Microsoft offering.

Getting Started

The first step is to install the Block Wizard plugin.

  1. In Blockbench, go to File > Plugins..., switch to the Available tab, and enter "Minecraft Block Wizard" into the search bar.
  2. Find the Block Wizard plugin and select Install.
  3. Close the Plugins dialog.
  4. After it has installed, you will find the Minecraft Block Wizard in the left sidebar of your start screen. Select it, then press Create a Block!

Minecraft Block Wizard showing where to get started.

Next time you want to use it, you can open the Block Wizard from the menu via Tools > Minecraft Block Wizard.

Meta Data

On the first page of the Block Wizard, you can enter the meta data for the block. This includes the name, ID, and creative inventory category. The name and ID fields are required.

  • Name: The name of your block will be displayed in the inventory and in other places in the interface.

Minecraft Block Wizard showcasing where Creators can set the Name and Identifier for their new block.

  • Identifier: The ID of the block will be used internally, for example in commands. The identifier needs to start with a namespace, which is a short identifier of your or your project. This is useful to distinguish your own block from blocks with the same purpose, but from another addon, if you are using multiple addons in your world. All blocks that Minecraft comes with by default have the namespace minecraft:. That namespace is reserved for vanilla blocks. Your ID may look like this: my_addon:my_block.

  • Creative Category: Select the tab of the creative inventory that your block will appear in. You can also select a sub-group to add your block to one of the foldable groups within an inventory tab. If you select None, your block will not appear in the creative inventory and you will only be able to get it by using commands.

Preset

On this page, you can select a preset to base your block on. The preset will pre-configure all your options to be like a specific Minecraft block, but you can also change all options individually later.

Minecraft Block Wizard showing where Creators can choose a preset block to as a starting point for their block.

Properties

On this page you can set the basic properties of your block.

Minecraft Block Wizard showing where Creators can set their block properties.

  • Mineable: Enable this to allow players to mine the block in survival mode. When enabled, you can also set the destroy time, which is the time it takes to destroy the block, in seconds. Right next to that, you can see a little animation that previews how fast the block can be mined. Different mining speeds for different tools such as pick axes are not available at the moment.

  • Explodable: When enabled, the block can be destroyed by explosions. You can also define the explosion resistance. The higher you set the resistance, the closer the block can be to an explosion without getting destroyed.

  • Friction: The friction value determines how much the players feet will stick to the ground when walking on the custom block. Lower friction values will make the block slippery, like ice. The default value of 0.6 will feel normal. Higher friction values will reduce the walk speed on the block.

  • Flammable: When enabled, the block can catch fire and burn.

    • Fire Catch Chance: The chance that the block will catch on fire when it's next to an open fire. For reference, the value for normal wood is 5. Higher chances will make the block catch on fire faster.

    • Fire Destroy Chance: The chance that fire on the block will destroy the block itself. For reference, the value for normal wood is 20. Higher values increase the likelihood of the block being destroyed by fire. If you set the value to 0, the fire on the block will burn forever.

Design

On this page, you can change multiple properties related to the design and sound of the block.

Minecraft Block Wizard showing where Creators can set the design properties.

  • Use current model: This option appears when you already have a bedrock block model currently opened in Blockbench. You can enable the checkbox to export the current model, instead of using the model of the preset block that you selected.

  • Light Emission: Use this slider to turn your block into a light source. The brightest possible value is 15, which is the equivalent of glow stone.

  • Light Dampening: Set how much the block dampens the light that passes through it. A mostly transparent block like a button would have a value of 0, a solid block like stone would have a value of 15 and block all light from coming through. Blocks that let some light through, such as leaves, would be somewhere in between.

  • Transparency: With this option you can select the material for the block, which will determine how transparent textures are rendered in Minecraft:

    • Allow Transparency (Alpha Test): This option lets you use either fully opaque or fully transparent pixels. The option is great for models like plants.
    • Allow Translucency (Blend): This option lets you use fully transparent, fully opaque, or partially transparent pixels. Partially transparent pixels can be good for see-through materials like water or slime. However, the material has a slightly larger impact on performance and can in some cases cause unexpected visual glitches, so it is best to only use this option when necessary.
    • No Transparency (Opaque): With this option, the texture will be rendered as opaque. Transparent pixels will look black instead. This option is good for models with solid elements, like rocks and chairs.
  • Map Color: Pick the color that your block will have when displayed on a map in Minecraft. This is the map that can be crafted from paper and a compass.

  • Sound: Select the sound preset for your block. This will affect all sounds that can be produced when interacting with the block, including the sounds for placing, walking over, or mining the block. For most blocks it should be enough to select a preset of a vanilla block. If you have experience with sound design, you can also implement your own sounds later on.

Export

You have now entered all the information that is necessary to create the block. The Export page allows you to select an export method to create a resource and behavior pack to load the block into your world.

In the Blockbench desktop app, there are up to three methods available to save your pack;

  • Export Packs: Select this option if you just want to create a new pack with your custom block on your computer.
  • Integrate into Pack: If you have an existing addon that you are working on your computer, you can select this option and then select your addon from the list below to integrate your new custom block into this existing pack.
  • Export as MCAddon: This option will generate a .mcaddon file and save it to your computer. You can simply open this file to load your addon into Minecraft, or you can share this file with friends. If you select this option, you will not be able to directly edit your model in Blockbench after exporting the addon.

Совет

In the web app, the only option available to export your pack is: MCAddon.

Depending on the export option you selected, you may need to enter some information about the Add-On that the wizard is about to create.

  • Pack Name: Enter the name of your pack. This name will be used both for the generated file, as well as for the name in the pack menu in Minecraft.

  • Pack Icon: The pack icon is optional. You can upload an image as an icon to represent your pack in the pack menu. The image should be a PNG file, the recommended resolution is 64 by 64 pixels.

Installing the pack

To enable your packs for the first time, you need to add the behavior pack to your Minecraft world. Open the world settings and locate the Behavior Packs section. Find your new pack and activate it. Activating the behavior pack will also automatically activate the connected resource pack. This means that you now have the full addon installed into your world.

Совет

You can view a detailed step-by-step walkthrough on how to enable tutorial in the Behavior Pack tutorial.

Enter the world and locate the custom block in your creative inventory. Alternatively, if you didn't choose to add your block to a creative inventory tab, you can get it using the /setblock and /give commands.

Примечание

Alternatively, if you have exported your addon as a .mcaddon file, you can open this file in order to automatically add the packs into Minecraft.

Modifying your block

Model Editing

Because you are already in Blockbench, you can continue to use the program to edit the model and texture. To do that, press the Edit Model button in the bottom right.

Внимание!

This option is not available if you have exported your addon as an .mcaddon file.

Minecraft Block Wizard showing where Creators can edit the model.

You can learn how to create a model in this tutorial playlist: ArtsByKev Blockbench Tutorials

More information on Blockbench can be found on the Blockbench Wiki.

Size Restrictions

Unlike entity models, block models are restricted to a certain size.

The model can be up to 30 pixels long, wide, and tall. A regular Minecraft block would measure 16 by 16 by 16 pixels. From that center block, you can expand by 14 pixels on each of the 3 axes. The 14 pixels can either be all towards one side or split evenly between the two sides (7 on each), or anything in between.

Blockbench will automatically restrict you from placing cubes outside of these size restrictions. The restrictions in Blockbench can be disabled in the settings (Deactivate Size Limit) if you prefer to model without them. But make sure to re-enable the restrictions before exporting, otherwise Minecraft won't load the model.

Texture

Block preset models are generated with a simple texture, that is applied to all 6 sides of the element. Drawing on one side will also affect the other sides. When you start to design a more complex model, you will quickly find that the texture is no longer enough for the model.

  1. To solve this, press Ctrl + A to select all elements of your model, then press the Create Texture button at the top of the Textures panel in the left sidebar.
  2. Confirm the dialog to generate a texture. You can switch to Paint mode by clicking "Paint" in the top right corner of the program, and then use the paint tools to texture your model.
  3. After you add new elements, you can automatically include them in your texture by clicking Append Elements to Template in the Textures panel.
  4. When saving your new texture, don't forget to overwrite the old texture file in your resource pack so that Minecraft knows where to look for it.

What's Next?

Want to learn more about building with Blockbench? The Blockbench Wiki has step by step guides and reference documentation for modeling, texturing, and animating any custom creation you can imagine.

The Blockbench Quick Start guide can help lead you to the specific document that you're looking for and is a great way to discover relevant external guides and videos.