Hi best normal photography no minecraft monster today and teach you how to add a fence gate to the game now what I have done today is I’ve provided every single bit of code of them in my blocks for you to download the runes for this is it Wasn’t as straightforward as a 40 was when I created this so I’m just gonna uncommon out my registering and matlock you can download some models and not a lot quite simple models to be fair and let’s take a look at the actual class so here this is the exact same code from The fence gate class except for there’s a couple of changes and I’ll show you this I head over to the forge source and the net minecraft block and if you find where it says block fence gate right here you’ll notice that you’ll notice that it automatically puts our material And the material color so it will make our fence gate wooden we don’t want a wooden fence gate so what I did was I’ve changed it so the iron material and the material color that is the only change but we have to have the whole code out for it to work So yes this is available in the description and I’ll guide you through it so we’ve got some property bulls here so it’s just a normal property which these are handled now what we have here is a bounding box a bounding box is basically like a collision box on a Block so like you’ll know a ladder it’s got a small bounding box so it’s like when you look at a block it’s a little lines that go outside that’s that’s the bounding box and these are the default ones for the different states and rotations it’s just a different block State with rotation can it place get the bounding box is it opaque is for keeve is it possible yes it is if it’s open that’s the new the get state for placement is a new on block placed so you’ll notice if you’re on one point ten point two this will be an unblocked Place I recommend just get the code out of here and then just change the material and set your hardness and your resistance and the registry name get met from state is quite easy to understand and create shin after block so what I’m going to do and in fact going to run the Game okay so the game is loaded up so if he had inside of our test world we should be able to see the tin fence gate already prepared hopefully let’s just bring it up this is the tin fence from last times so if we just go inside as a Creative tab you see they’ve got a fence gate which places correctly opens and closes now it does make the wood sound you probably could override that but yeah that is a tin fence so thank you all for watching little like konai subscribe I am out Video Information
This video, titled ‘Minecraft Modding Tutorial | Custom Fence Gate (1.10.2,1.11.2)’, was uploaded by CJMinecraft on 2017-02-02 17:30:00. It has garnered 629 views and 13 likes. The duration of the video is 00:03:48 or 228 seconds.
Today we add our own fence gate to the game!
Files – https://goo.gl/4U8bB7
Please support me if you can – https://www.patreon.com/cjminecraft Discord – https://discord.gg/ZvhUKkd
Don’t forget to like, comment and subscribe!
Music by Ninety9Lives Elektronomia – Imagination Video Link: http://99l.tv/Imagination Channel: http://99l.tv/Subscribe Album Download Link: http://99l.tv/GoldenGun
Links: ►GitHub – https://goo.gl/c4JlXe ►My Website – http://cjminecraft.theclever.me/ ►Modding Tutorial Playlist – https://goo.gl/bq6sgx ►Facebook – https://www.facebook.com/CJMinecraft01/ ►Google Plus – https://goo.gl/3n1umj ►SoundCloud – https://soundcloud.com/speed2-pc/ ►MCAmino – http://goo.gl/LzwZ9W ►Votable – http://www.votable.com/CJMinecraft
For modding help or if you want to contact me, email me at [email protected]
My Schedule: Monday or Thursday: ►Modding Tutorial