Overview

Kieran Martin

Author:

Date Updated:

In this tutorial, I will be showing you how to make a custom fence and a fence gate that works just like a regular fence. Leads can connect to the gate and entities will recognize the gate and fence...

About

The procedures, textures, workspace, models, and more can be found in the zip file provided in the download. Very little work is needed to set up the procedures, and just requires local variables to be made beforehand and some small configuration for what block states to add to the current block location when it is added or updated. I have left notes on the things that you may need to know for setting up your fence. I also have provided the block bench models for easy access to figuring out the block rotation for the block states.

Latest Tutorial

Minecraft 1.14.4 | MCreator 2020.2

More Tutorials

Older Videos

Download

Latest Download
Minecraft 1.14.4 | MCreator 2020.2

Wiki

Before You Start

You will need to download the files from the tutorial, here you will find the models, textures, procedures, and workspace.


Before Importing Procedures

Make sure you set up your "group" local variable and your "update" local variable for every procedure before you import the procedure so that the local variable settings import with the imported procedure settings. The group local variable needs to be set up first followed by the update local variable.


Group Variable Names

For the group, tag names are best to name them generic names so other mods can connect to your blocks. I have listed some examples below.


soilFences

Used for "fences, walls, and gates."

For "dirt, grass, sand, gravel, etc."

foliageFences

Used for "fences, walls, and gates."

For "leaves, hedges, flowers, bushes, etc."

woodFences

Used for "fences, walls, and gates."

For "planks, logs, picket, etc."

stoneFences

Used for "fences, walls, and gates."

For "cobblestone, sandstone, stone, netherrack, endstone, etc."

metalFences

Used for "fences, walls, and gates."

For "iron, gold, diamond, chain, barbwire, etc."


Update Variable Names

For the update, tag names are best to name them generic names so other mods can connect to your blocks. I have listed some examples below.


soilFencesUpdate

Used for "fences, walls, and gates."

For "dirt, grass, sand, gravel, etc."

foliageFencesUpdate

Used for "fences, walls, and gates."

For "leaves, hedges, flowers, bushes, etc."

woodFencesUpdate

Used for "fences, walls, and gates."

For "planks, logs, picket, etc."

stoneFencesUpdate

Used for "fences, walls, and gates."

For "cobblestone, sandstone, stone, netherrack, endstone, etc."

metalFencesUpdate

Used for "fences, walls, and gates."

For "iron, gold, diamond, chain, barbwire, etc."


Update Ticks

All fence blocks except for fence gates need update ticks set to 1 tick. This is for the update procedure that will check to see if the block has the "update tag" then recheck the connections if it's true.


Fence Gate Redstone

Don't use fence gate Redstone connection, for some reason, there was an issue with having the fence gate work properly if there was a link for Redstone connections so its best to not use Redstone to trigger the gate to open or close.


Block Entity

All fences and fence gate blocks need to have the Block Entity enabled to be able to use NBT tags. Make sure that you enable this setting on all your fences and fence gates.

How to make a Custom Fence

© Copyrights: 2018 - 2020 | All rights reserved