Jump to content

Recommended Posts

Posted (edited)

I've been working on updating my mod to 1.14, and for some reason my custom fence posts won't connect to each other, however they will connect to my custom fence gates. I have no idea why it's not working.

 

Here's the code I use for the fence gate/post:

PIER_FENCE = new FenceBlock(Block.Properties.create(Material.WOOD, Blocks.OAK_PLANKS.getMaterialColor(null, null, null)).hardnessAndResistance(2.0f, 5.0f));
PIER_FENCE_GATE = new FenceGateBlock(Block.Properties.create(Material.WOOD, Blocks.OAK_PLANKS.getMaterialColor(null, null, null)));

I'm not sure, but it might be because the fence post (PIER_FENCE), isn't in the "fences" Block Tag?

Any help would be useful :)

 

SOLVED:

Fixed this by adding a minecraft/tags/blocks/fences.json file to the data folder, and adding the block id to that file

Edited by peter1745
  • Like 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.