Custom Door Template
Custom Door Template - Mods - .
The two new door varieties (azurewood and gold) are intended as examples, to use as a template for designing varieties of your own.
While you're also welcome to use any or all of the original files in this pack in your own uploads, you probably don't want to keep the placeholder crafting recipe with light blue wool :D
The custom doors from this pack implement all the features of a vanilla Minecraft door:
- Waterloggable
- Form double doors when placed in a pair
- Hinges attach to adjacent solid blocks
- Redstone operable
- Drops as item when mined or destroyed by explosion, or when block underneath is destroyed
- Can mix and match variants in pairs
- Players/entities can enter when door is open and are blocked when door is closed
- Wooden variety can be used as furnace fuel
Notes for developers:
Most of the features are implemented in main.js, and it's designed so you should be able to add as many custom door variants as you want without having to modify this file at all.
In order for the script to work with your own door types, your block .json files will have to follow the same naming scheme of "customdoors:" + (your variant's name) + "_door_top" and "customdoors:" + (your variant's name) + "_door_bottom," and for their drops to work, you'll also need an item named "customdoors:" + (your variant's name) + "_door_item."
If any of your door variants' names contain the substring "wood," they will use the wooden door opening and closing sound effects. Otherwise, they'll use the copper door sounds.
The specific combinations of block states in each permutation are important!
Your doors will have to use the same combinations in order to work with main.js. If you're new to addon development, I'd recommend duplicating one of the existing files in this pack to use as a starting point. Then you'll only have to change the block identifier and any other components (mining time, texture, etc.) you want to be different.
/_ld/0/46_customdoors.mcaddon
26.0 Kb
: 64