Go to file
An0n3m0us 379dfb4aab Set ts trapdoors to new model 2021-11-09 19:19:13 +00:00
models Optimize doors and fix mirroring 2021-11-09 19:11:03 +00:00
textures Now a standalone mod without overwriting doors mod 2019-09-27 22:38:51 +01:00
.doors.gif Add different texture for each side of trapdoors 2019-06-02 16:49:04 +01:00
README.md Update README 2019-09-28 18:14:43 +01:00
init.lua Optimize doors and fix mirroring 2021-11-09 19:11:03 +00:00
license.txt First commit 2019-05-30 02:52:23 +01:00
mod.conf Add support for ts_doors 2019-09-28 09:15:10 +01:00
ts_doors.lua Set ts trapdoors to new model 2021-11-09 19:19:13 +00:00

README.md

Minetest DoorsPlus mod

IMG

A Minetest mod that improves the default doors mod and other doors mods.

Additions

New door model

Default door and trapdoor models with a nicer model.

Doesn't work with some texturepacks that override doors and trapdoors.

Credit to benrob0329 and DS-Minetest for optimizing the door model.

Trapdoor front and back texture

The trapdoors can have a different back and front texture using:

doors.register_trapdoor("trapdoor", {
	...
+	tile_front = "doors_trapdoor.png",
	tile_side = "doors_trapdoor_side.png",
+	tile_back = "doors_trapdoor_back.png"
	...
}

Installation

Download it here: https://github.com/An0n3m0us/doorsplus/archive/master.zip

Extract it into a folder called "doorsplus" then follow the guide below to install it:

https://dev.minetest.net/Installing_Mods

Custom models

Door

For the doorsplus model, use "door_new". To add a custom model, use the filename but without the a or b prefix at the end.

doors.register("door_wood", {
	description = S("Wooden Door"),
+	model = "door_new",
	tiles = {"doors_door_wood.png"},
	inventory_image = "doors_item_wood.png",
	groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
	recipe = {
		{"group:wood", "group:wood"},
		{"group:wood", "group:wood"},
		{"group:wood", "group:wood"},
	}
})

Trapdoor

For the doorsplus model, use "trapdoor_new".

doors.register_trapdoor("trapdoor", {
	description = S("Wooden Trapdoor"),
+	model = "trapdoor_new",
	inventory_image = "doors_trapdoor.png",
	wield_image = "doors_trapdoor.png",
	tile_front = "doors_trapdoor.png",
	tile_side = "doors_trapdoor_side.png",
	tile_back = "doors_trapdoor_back.png",
	groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2, door = 1},
})

To create a custom model, follow the template below:

doors.register_trapdoor("trapdoor", {
	description = S("Wooden Trapdoor"),
	inventory_image = "doors_trapdoor.png",
	wield_image = "doors_trapdoor.png",
	tile_front = "doors_trapdoor.png",
	tile_side = "doors_trapdoor_side.png",
	tile_back = "doors_trapdoor_back.png",
	groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2, door = 1},
+	closed = {
+	    type = "fixed",
+	    fixed = {
+               {-0.5, -0.5, -0.5, 0.5, -6/16, -5/16},
+               {-0.5, -0.5, 5/16, 0.5, -6/16, 0.5},
+               {-0.5, -0.5, -5/16, -5/16, -6/16, 5/16},
+               {5/16, -0.5, -5/16, 0.5, -6/16, 5/16},
+               {-5/16, -0.5, -2/16, 5/16, -6/16, 2/16},
+               {-2/16, -0.5, -5/16, 2/16, -6/16, 6/16}
+	    }
+	},
+	opened = {
+	    type = "fixed",
+	    fixed = {
+               {-0.5, -0.5, 6/16, -5/16, 0.5, 0.5},
+               {5/16, -0.5, 6/16, 0.5, 0.5, 0.5},
+               {-5/16, 5/16, 6/16, 5/16, 0.5, 0.5},
+               {-5/16, -0.5, 6/16, 5/16, -5/16, 0.5},
+               {-2/16, -6/16, 6/16, 2/16, 5/16, 0.5},
+               {-5/16, -2/16, 6/16, 5/16, 2/16, 0.5}
+	    }
+	}
})