Doors with meshes

Post Reply
User avatar
Harland
New member
Posts: 4
Joined: Sun May 23, 2021 20:01
GitHub: Harland
In-game: Harland
Location: Germany
Contact:

Doors with meshes

by Harland » Post

Hello,
I am making a mod which is adding doors into MINETEST. One can register doors quite easily e.g. like this:

Code: Select all

doors.register ("third_class_door", {
		description = "Third Class Door",
		tiles = {{ name = "third_class_door.png", backface_culling = true }},
		inventory_image = "third_class_door_inv.png",
		groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
		sounds = default.node_sound_wood_defaults(),
})
The drawtype will be automatically set to "mesh" by the game-engine and "mesh" will be automatically set to "doors_a" (or "doors_b") The game-engine´s mod therefore is called "doors" and can be found here: C:\minetest-5.0.1\games\minetest_game\mods\doors

Does anybody know how I can locally use another drawtype or at least another mesh for my doors?
Thx for reading till here. Hope you can help me :)

User avatar
sirrobzeroone
Member
Posts: 593
Joined: Mon Jul 16, 2018 07:56
GitHub: sirrobzeroone
Contact:

Re: Doors with meshes

by sirrobzeroone » Post

Depending on what you need to do have a look at doors redux -

viewtopic.php?t=24459

As to using a different mesh you would need to create a new obj file and texture then specify that in your reg but at that point im not sure base doors functionality will work and you will probably be creating a new mod - check out mesh nodes here

https://rubenwardy.com/minetest_modding ... mesh-nodes

If you want sliding rather than swinging doors check out scifi nodes im pretty sure i tested this recently and the doirs wirked under 5.3 or 5.4

viewtopic.php?t=11751

I hope something there helps

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests