Skip to content

Latest commit

 

History

History

palm_tree_blocks_and_features

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
page_type author description ms.author ms.date products
sample
mammerla
A basic progressive example of using custom block features within Minecraft.
01/31/2024
minecraft

Minecraft Sample Block + Custom Features Project

This sample demonstrates how to create a new tree type that is distributed throughout the overworld. First, a sample feature shows how to use 6 different blocks to assemble a palm tree. For a video on this, see https://www.youtube.com/watch?v=bCU8UxIZ-U4. Then, we're going to create a set of structures that package together different variants of a palm tree, and use Features to distribute them within a particular feature.

Prerequisites

Install Node.js tools, if you haven't already

We're going to use the package manager npm to get more tools to make the process of building our project easier.

Visit https://nodejs.org/.

Download the version with "LTS" next to the number and install it. (LTS stands for Long Term Support, if you're curious.) In the Node.js Windows installer, accept the installation defaults. You do not need to install any additional tools for Native compilation.

Install Visual Studio Code, if you haven't already

Visit the Visual Studio Code website and install Visual Studio Code.

Getting Started

  1. To make your own environment look like the example, create a folder on your C:\ drive and call it projects. Create a subfolder called custom_blocks.

  2. Put the extracted contents of the custom_blocks folder into custom_blocks.

  3. Open a Windows Terminal or PowerShell window and change the working directory to your custom_blocks folder:

    cd c:\projects\palm_tree_blocks_and_features\
  4. Use npm to install our tools:

    npm i
  5. When that's done, enter:

    npm run local-deploy
  6. Use this shortcut command to open the project in Visual Studio Code:

    code .

It might also ask you to install the Minecraft Debugger and Blockception's Visual Studio Code plugin, which are plugins to Visual Studio Code that can help with Minecraft development. Go ahead and do that, if you haven't already.

Summary

This sample demonstrates how you can build broader , and how you can leverage custom block features and components.

Manifest