Page 1 of 1

[Mod] xDoors² [1] [xdoors2]

PostPosted: Sat Aug 11, 2012 11:20
by xyz
This mod is designed to replace (again) default doors. Unlike xDoors those doors consist of 2 nodes and have correct texture. They're also much smarter: place one door near another (like on picture, firstly you place left one, then right one) and it'll rotate to create "double doors".

Image

Code license: WTFPL
Texture license: same as default doors textures (CC BY-SA 3.0)
Dependencies: default

Changelog:
  • 1 — initial release

Notice: You should remove default "doors" mod, "doorsplus", "xdoors", etc. to make this mod work correctly.

Download

PostPosted: Sat Aug 11, 2012 14:31
by Cooper
Cool.This should be in default game

PostPosted: Sun Aug 12, 2012 00:38
by mrtux
Nice mod! + 1000
Finally I can make double doors on my house and other buildings on my server :)

PostPosted: Mon Aug 13, 2012 00:56
by aFoxNamedMorris
Are these 3D like the old mod? I'd like to see both rolled into one, if possible.

PostPosted: Mon Aug 13, 2012 06:07
by jin_xi
i'd make the selection box for both nodes two nodes high to give better look, ando only allow this type of selection on barn doors.

PostPosted: Mon Aug 13, 2012 09:30
by xyz
aFoxNamedMorris wrote:Are these 3D like the old mod? I'd like to see both rolled into one, if possible.

Yes, that's (not complectly) rewrite of xdoors mod. It's just better so you should use this one.

PostPosted: Mon Aug 13, 2012 20:29
by aFoxNamedMorris
Awesome! n.n Thanks a ton. This is very fun.

PostPosted: Tue Aug 14, 2012 00:16
by cornernote
You should make your door textures the same filename as the default images so that my texturepack overwrites the xdoors2 images. Not the sides/top/bottom ... just the front/back:

door_wood_a.png
door_wood_a_r.png
door_wood_b.png
door_wood_b_r.png

PostPosted: Thu Aug 16, 2012 04:29
by Blackthorne
It's nice, but it seems that you can only go THROUGH one of the doors, unless there's something essential I'm missing here. It also is just a little hard to place the doors unless I click on the very edge of the first door I placed. Otherwise they really don't flip. Nice mod, though.

PostPosted: Thu Aug 16, 2012 10:27
by xyz
Blackthorne wrote:It's nice, but it seems that you can only go THROUGH one of the doors, unless there's something essential I'm missing here. It also is just a little hard to place the doors unless I click on the very edge of the first door I placed. Otherwise they really don't flip. Nice mod, though.

That's strange because I can easily go through line between two doors (if I understood you correctly). Also there is no need to place double doors in such manner, just do like this: 1 2.

PostPosted: Thu Aug 16, 2012 17:46
by Blackthorne
xyz wrote:
Blackthorne wrote:It's nice, but it seems that you can only go THROUGH one of the doors, unless there's something essential I'm missing here. It also is just a little hard to place the doors unless I click on the very edge of the first door I placed. Otherwise they really don't flip. Nice mod, though.

That's strange because I can easily go through line between two doors (if I understood you correctly). Also there is no need to place double doors in such manner, just do like this: 1 2.

I did precisely that, but they didn't flip. Perhaps it's because I'm on the latest STABLE. Not the latest dev.

EDIT: Case in point.
Image
Image

PostPosted: Thu Aug 16, 2012 20:57
by xyz
Blackthorne wrote:I did precisely that, but they didn't flip. Perhaps it's because I'm on the latest STABLE. Not the latest dev.

It seems you're using default "doors" mod. You should remove it because its recipe conflicts with mine.

PostPosted: Wed Sep 19, 2012 19:46
by jordan4ibanez
these should be in default_game

PostPosted: Wed Sep 19, 2012 22:49
by cornernote
jordan4ibanez wrote:these should be in default_game


yep, they are a great replacement for doors

PostPosted: Thu Sep 20, 2012 10:08
by PilzAdam
jordan4ibanez wrote:these should be in default_game

+1

PostPosted: Thu Oct 04, 2012 23:41
by lord_james
These doors are cool but I don't like placing a door while I'm pointing the side of a block. I tweaked the code. Now, a door only is placed if you point ON a block:

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
minetest.register_node("xdoors2:door", {
    description = "Wooden Door",
    node_placement_prediction = "",
    inventory_image = 'xdoors2_door.png',
    wield_image = 'xdoors2_door.png',
    stack_max = 1,
    on_place = function(itemstack, placer, pointed_thing)
        local above = pointed_thing.above
        local under = pointed_thing.under
        local vectorabun = above.y - under.y

        -- there should be 2 empty nodes
        if minetest.env:get_node({x = above.x, y = above.y + 1, z = above.z}).name ~= "air" or vectorabun ~= 1 then
            return itemstack
        end
        -- ETC, ETC
)


I hope you like this improvement for your proyect

PostPosted: Sun Oct 07, 2012 09:47
by Jordach
ATTENTION:

https://github.com/Jordach/xDoors2

This is my fork that allows "any" texture, rather than the forced cross on the door window, enjoy texture pack makers.

PostPosted: Sun Oct 07, 2012 12:55
by Nightfighter
This should be cool+2