[MOD]New doors like in minecraft

User avatar
Stefan97
New member
 
Posts: 2
Joined: Tue Feb 21, 2012 21:55

[MOD]New doors like in minecraft

by Stefan97 » Tue Feb 21, 2012 22:50

Last edited by Stefan97 on Wed Feb 22, 2012 08:57, edited 1 time in total.
 

bwog
Member
 
Posts: 283
Joined: Wed Nov 30, 2011 14:09

by bwog » Tue Feb 21, 2012 22:50

You need to upload the images somewhere, we can't read files on your computer.
 

User avatar
IPushButton2653
Member
 
Posts: 666
Joined: Wed Nov 16, 2011 22:47

by IPushButton2653 » Tue Feb 21, 2012 23:29

I can test. My computer is about to die of oldness anyway. Needing a new one soon.
 

User avatar
sdzen
Member
 
Posts: 1170
Joined: Fri Aug 05, 2011 22:33

by sdzen » Tue Feb 21, 2012 23:36

Image
[h]Zen S.D.[/h] The next generation of tranquility!
malheureusement mon français n'est pas bon :<
Owner of the Zelo's
In game name: MuadTralk, spdtainted, sdzen, sd zen, sdzeno
 

User avatar
IPushButton2653
Member
 
Posts: 666
Joined: Wed Nov 16, 2011 22:47

by IPushButton2653 » Tue Feb 21, 2012 23:41

IT WORKS!!!!!!!!! I CAN'T WALK THROUGH IT!!!!!!!! AND I CAN SEE IT!!!!!!! OMG I LOVE THIS GUY (no homo)
 

Utilisatrice
Member
 
Posts: 103
Joined: Thu Feb 16, 2012 18:04

by Utilisatrice » Tue Feb 21, 2012 23:43

Hi,

Amazing, i test in first and it work, thank's !

The door works 100%. Fix.

Need a Bed now x).
 

User avatar
sdzen
Member
 
Posts: 1170
Joined: Fri Aug 05, 2011 22:33

by sdzen » Tue Feb 21, 2012 23:43

this has made my top ten finally someone did it right and with out a painful patch set that comes with it
[h]Zen S.D.[/h] The next generation of tranquility!
malheureusement mon français n'est pas bon :<
Owner of the Zelo's
In game name: MuadTralk, spdtainted, sdzen, sd zen, sdzeno
 

User avatar
JoseMing
Member
 
Posts: 107
Joined: Tue Feb 21, 2012 00:01

by JoseMing » Tue Feb 21, 2012 23:43

i installed that door and is very cool +5
Nothing is impossible, Only you need you mind to create... and Sorry for my Bad English :D
Add me on remobo as JoseGarcia
 

User avatar
IPushButton2653
Member
 
Posts: 666
Joined: Wed Nov 16, 2011 22:47

by IPushButton2653 » Tue Feb 21, 2012 23:45

Only one small problem.(for me anyway) The face direction seems off. Like you have to place the door from inside. And me growing up on MC makes this seem odd. But it's an easy fix
 

User avatar
sdzen
Member
 
Posts: 1170
Joined: Fri Aug 05, 2011 22:33

by sdzen » Tue Feb 21, 2012 23:47

i didnt notice but now that you point it out i will be haunted by the small little detail!!!! :(
[h]Zen S.D.[/h] The next generation of tranquility!
malheureusement mon français n'est pas bon :<
Owner of the Zelo's
In game name: MuadTralk, spdtainted, sdzen, sd zen, sdzeno
 

User avatar
JoseMing
Member
 
Posts: 107
Joined: Tue Feb 21, 2012 00:01

by JoseMing » Tue Feb 21, 2012 23:48

yeah IpushButton have right, but the door is very cool (Y)
Nothing is impossible, Only you need you mind to create... and Sorry for my Bad English :D
Add me on remobo as JoseGarcia
 

User avatar
IPushButton2653
Member
 
Posts: 666
Joined: Wed Nov 16, 2011 22:47

by IPushButton2653 » Tue Feb 21, 2012 23:49

I'm sorry, I'm OCD when it comes to the small details >.<
But I plan on fixing it for my own sake and including in my mod pack.
 

User avatar
sdzen
Member
 
Posts: 1170
Joined: Fri Aug 05, 2011 22:33

by sdzen » Tue Feb 21, 2012 23:50

hmmmmmmmm
[h]Zen S.D.[/h] The next generation of tranquility!
malheureusement mon français n'est pas bon :<
Owner of the Zelo's
In game name: MuadTralk, spdtainted, sdzen, sd zen, sdzeno
 

User avatar
IPushButton2653
Member
 
Posts: 666
Joined: Wed Nov 16, 2011 22:47

by IPushButton2653 » Tue Feb 21, 2012 23:52

It's too complicated, but I am fixing textures to match my TP and adding to my mod pack. Thanks @Stefan97!
 

User avatar
Jordach
Member
 
Posts: 4412
Joined: Mon Oct 03, 2011 17:58
GitHub: Jordach
IRC: Jordach
In-game: Jordach

by Jordach » Fri Feb 24, 2012 16:00

@stefan, can I use this in my mc for mt texture pack to become part of it?

If so then thank you!

EDIT: Was this (also) made by ZLovesPancakes? Folder name: zlpdoors

EDIT2: Sdzen was that on rays server?

EDIT3: THIS WAS MADE MADE BY ZLOVES PANCAKES, I SAW THAT IN MY CONSOLE.
Last edited by Jordach on Fri Feb 24, 2012 18:02, edited 1 time in total.

( ͡° ͜ʖ ͡°) ( ͡o ͜ʖ ͡o) [$ ( ͡° ͜ʖ ͡°) $] ( ͡$ ͜ʖ ͡$) ヽ༼ຈل͜ຈ༽ノ



My image and media server is back online and is functioning as normal.
 

Temperest
Member
 
Posts: 651
Joined: Tue Nov 15, 2011 23:13
GitHub: Uberi

by Temperest » Sat Feb 25, 2012 23:32

I've added Mesecons actuation:

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
--------------------------------------------------------------------------------
--    Doors
--------------------------------------------------------------------------------
--    This mod adds 'minecraftlike' doors to the game
--
--    (c) 2011 Fernando Zapata
--    Code licensed under GNU GPLv3
--    Content licensed under CC BY-SA 3.0
--
--    2012-01-08    11:03:57
--------------------------------------------------------------------------------

local WALLMX = 3
local WALLMZ = 5
local WALLPX = 2
local WALLPZ = 4

--------------------------------------------------------------------------------

minetest.register_node( 'zlpdoors:door', {
    description         = 'Door',
    drawtype            = 'signlike',
    tile_images         = { 'door_door.png' },
    inventory_image     = 'door_door.png',
    wield_image         = 'door_door.png',
    paramtype2          = 'wallmounted',
    selection_box       = { type = 'wallmounted' },
    material            = minetest.digprop_constanttime(1.0),
})

minetest.register_craft( {
    output              = 'zlpdoors:door',
    recipe = {
        { 'default:wood', 'default:wood' },
        { 'default:wood', 'default:wood' },
        { 'default:wood', 'default:wood' },
    },
})

minetest.register_craft({
    type = 'fuel',
    recipe = 'zlpdoors:door',
    burntime = 30,
})

minetest.register_node( 'zlpdoors:door_a_c', {
    Description         = 'Top Closed Door',
    drawtype            = 'signlike',
    tile_images         = { 'door_door_a.png' },
    inventory_image     = 'door_door_a.png',
    paramtype           = 'light',
    paramtype2          = 'wallmounted',
    walkable            = true,
    selection_box       = { type = "wallmounted", },
    material            = minetest.digprop_constanttime(1.0),
    legacy_wallmounted  = true,
    drop                = 'zlpdoors:door',
})

minetest.register_node( 'zlpdoors:door_b_c', {
    Description         = 'Bottom Closed Door',
    drawtype            = 'signlike',
    tile_images         = { 'door_door_b.png' },
    inventory_image     = 'door_door_b.png',
    paramtype           = 'light',
    paramtype2          = 'wallmounted',
    walkable            = true,
    selection_box       = { type = "wallmounted", },
    material            = minetest.digprop_constanttime(1.0),
    legacy_wallmounted  = true,
    drop                = 'zlpdoors:door',
})

minetest.register_node( 'zlpdoors:door_a_o', {
    Description         = 'Top Open Door',
    drawtype            = 'signlike',
    tile_images         = { 'door_door_a_r.png' },
    inventory_image     = 'door_door_a_r.png',
    paramtype           = 'light',
    paramtype2          = 'wallmounted',
    walkable            = false,
    selection_box       = { type = "wallmounted", },
    material            = minetest.digprop_constanttime(1.0),
    legacy_wallmounted  = true,
    drop                = 'zlpdoors:door',
})

minetest.register_node( 'zlpdoors:door_b_o', {
    Description         = 'Bottom Open Door',
    drawtype            = 'signlike',
    tile_images         = { 'door_door_b_r.png' },
    inventory_image     = 'door_door_b_r.png',
    paramtype           = 'light',
    paramtype2          = 'wallmounted',
    walkable            = false,
    selection_box       = { type = "wallmounted", },
    material            = minetest.digprop_constanttime(1.0),
    legacy_wallmounted  = true,
    drop                = 'zlpdoors:door',
})

--------------------------------------------------------------------------------

local round = function( n )
    if n >= 0 then
        return math.floor( n + 0.5 )
    else
        return math.ceil( n - 0.5 )
    end
end

local on_door_placed = function( pos, node, placer )
    if node.name ~= 'zlpdoors:door' then return end

    upos = { x = pos.x, y = pos.y - 1, z = pos.z }
    apos = { x = pos.x, y = pos.y + 1, z = pos.z }
    und = minetest.env:get_node( upos )
    abv = minetest.env:get_node( apos )

    dir = placer:get_look_dir()

    if     round( dir.x ) == 1  then
        newparam = WALLPX
    elseif round( dir.x ) == -1 then
        newparam = WALLMX
    elseif round( dir.z ) == 1  then
        newparam = WALLPZ
    elseif round( dir.z ) == -1 then
        newparam = WALLMZ
    end

    if und.name == 'air' then
        minetest.env:add_node( pos,  { name = 'zlpdoors:door_a_c', param2 = newparam } )
        minetest.env:add_node( upos, { name = 'zlpdoors:door_b_c', param2 = newparam } )
    elseif abv.name == 'air' then
        minetest.env:add_node( pos,  { name = 'zlpdoors:door_b_c', param2 = newparam } )
        minetest.env:add_node( apos, { name = 'zlpdoors:door_a_c', param2 = newparam } )
    else
        minetest.env:remove_node( pos )
        placer:get_inventory():add_item( "main", 'zlpdoors:door' )
        minetest.chat_send_player( placer:get_player_name(), 'not enough space' )
    end
end

local on_door_punched = function( pos, node, puncher )
    if string.find( node.name, 'zlpdoors:door' ) == nil then return end

    upos = { x = pos.x, y = pos.y - 1, z = pos.z }
    apos = { x = pos.x, y = pos.y + 1, z = pos.z }

    if string.find( node.name, '_c', -2 ) ~= nil then
        if     node.param2 == WALLPX then
            newparam = WALLMZ
        elseif node.param2 == WALLMZ then
            newparam = WALLMX
        elseif node.param2 == WALLMX then
            newparam = WALLPZ
        elseif node.param2 == WALLPZ then
            newparam = WALLPX
        end
    elseif string.find( node.name, '_o', -2 ) ~= nil then
        if     node.param2 == WALLMZ then
            newparam = WALLPX
        elseif node.param2 == WALLMX then
            newparam = WALLMZ
        elseif node.param2 == WALLPZ then
            newparam = WALLMX
        elseif node.param2 == WALLPX then
            newparam = WALLPZ
        end
    end

    if ( node.name == 'zlpdoors:door_a_c' ) then
        minetest.env:add_node( pos,  { name = 'zlpdoors:door_a_o', param2 = newparam } )
        minetest.env:add_node( upos, { name = 'zlpdoors:door_b_o', param2 = newparam } )

    elseif ( node.name == 'zlpdoors:door_b_c' ) then
        minetest.env:add_node( pos,  { name = 'zlpdoors:door_b_o', param2 = newparam } )
        minetest.env:add_node( apos, { name = 'zlpdoors:door_a_o', param2 = newparam } )

    elseif ( node.name == 'zlpdoors:door_a_o' ) then
        minetest.env:add_node( pos,  { name = 'zlpdoors:door_a_c', param2 = newparam } )
        minetest.env:add_node( upos, { name = 'zlpdoors:door_b_c', param2 = newparam } )

    elseif ( node.name == 'zlpdoors:door_b_o' ) then
        minetest.env:add_node( pos,  { name = 'zlpdoors:door_b_c', param2 = newparam } )
        minetest.env:add_node( apos, { name = 'zlpdoors:door_a_c', param2 = newparam } )

    end
end

local on_door_digged = function( pos, node, digger )
    upos = { x = pos.x, y = pos.y - 1, z = pos.z }
    apos = { x = pos.x, y = pos.y + 1, z = pos.z }

    if ( node.name == 'zlpdoors:door_a_c' ) or ( node.name == 'zlpdoors:door_a_o' ) then
        minetest.env:remove_node( upos )
    elseif ( node.name == 'zlpdoors:door_b_c' ) or ( node.name == 'zlpdoors:door_b_o' ) then
        minetest.env:remove_node( apos )
    end
end

--------------------------------------------------------------------------------

minetest.register_on_placenode( on_door_placed )
minetest.register_on_punchnode( on_door_punched )
minetest.register_on_dignode( on_door_digged )

--------------------------------------------------------------------------------

-- Mesecon Stuff:
mesecon:register_on_signal_on(on_door_punched)
mesecon:register_on_signal_off(on_door_punched)

print( ' ++ loaded : Doors by ZLovesPancakes' )


Now any mesecon signal will trigger the opening/closing of the door.

NOTE: add "jeija" to the entries in depends.txt.
WorldEdit 1.0 released

The Mesecons Laboratory - the art of Mesecons circuitry
Latest article: Mesecons Basics.
 

User avatar
jordan4ibanez
Member
 
Posts: 1865
Joined: Tue Sep 27, 2011 18:44
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez

by jordan4ibanez » Tue Feb 28, 2012 14:42

bump
If you can think it, you can make it.
 

User avatar
RAPHAEL
Member
 
Posts: 627
Joined: Tue Nov 01, 2011 09:09

by RAPHAEL » Tue Feb 28, 2012 15:52

I decided to do a metal version of the doors: zlpdoorsmetal

Download: http://www.mediafire.com/?w874nz9jcgadd77
"Before you speak, ask yourself: Is it kind, is it true, is it necessary, does it improve upon the silence?"
My mods: http://goo.gl/n4kpn
(Currently Various, Industrial, Fakeblocks, Jail, MoarCraft, Christmas, Replicator, minetest dev installer for linux, bash mod installer, windows mod installer)
 

User avatar
sfan5
Member
 
Posts: 3636
Joined: Wed Aug 24, 2011 09:44
GitHub: sfan5
IRC: sfan5

by sfan5 » Tue Feb 28, 2012 19:17

sdzen wrote:Image

Thats something with WorldEdit
Mods: Mesecons | WorldEdit | Nuke
Minetest builds for Windows (32-bit & 64-bit)
 

User avatar
sdzen
Member
 
Posts: 1170
Joined: Fri Aug 05, 2011 22:33

by sdzen » Tue Feb 28, 2012 21:41

are you speaking of my screenshot because that happens more oft then not
[h]Zen S.D.[/h] The next generation of tranquility!
malheureusement mon français n'est pas bon :<
Owner of the Zelo's
In game name: MuadTralk, spdtainted, sdzen, sd zen, sdzeno
 

User avatar
IPushButton2653
Member
 
Posts: 666
Joined: Wed Nov 16, 2011 22:47

by IPushButton2653 » Wed Feb 29, 2012 23:01

This will be a major asset to me in the future
 

User avatar
IPushButton2653
Member
 
Posts: 666
Joined: Wed Nov 16, 2011 22:47

by IPushButton2653 » Wed Feb 29, 2012 23:08

Iron doors didn't work. It placed a "ghost" of it on the node above it. But upon removal of the ghost and door, one door lead to two doors
 

User avatar
RAPHAEL
Member
 
Posts: 627
Joined: Tue Nov 01, 2011 09:09

by RAPHAEL » Thu Mar 01, 2012 04:10

IPushButton2653 wrote:Iron doors didn't work. It placed a "ghost" of it on the node above it. But upon removal of the ghost and door, one door lead to two doors

Could you explain some more? It works for me and has on 3 different minetest installs.
"Before you speak, ask yourself: Is it kind, is it true, is it necessary, does it improve upon the silence?"
My mods: http://goo.gl/n4kpn
(Currently Various, Industrial, Fakeblocks, Jail, MoarCraft, Christmas, Replicator, minetest dev installer for linux, bash mod installer, windows mod installer)
 

User avatar
mali_nexa
Member
 
Posts: 32
Joined: Sat Jan 14, 2012 17:59

by mali_nexa » Sun Mar 25, 2012 07:58

I reviewed your "Door mod" and my "Minecraft texture pack" (when i get 20 subs download link will be uploaded) .

Here's The link: http://www.youtube.com/watch?v=HGuhzc_nVyI

Subscribe if you like it!!!

EDIT DAMMIT; dont forget to watch: http://www.youtube.com/watch?v=ShOrZpGKBBw&feature=context&context=C41e9f48VDvjVQa1PpcFOxuWjBYXcSVvQHneNO8XLlTKEA-0dLdc0=

Tutorial for n00bs!!!
Last edited by mali_nexa on Sun Mar 25, 2012 08:04, edited 1 time in total.
The Mighty Serb
 

User avatar
jordan4ibanez
Member
 
Posts: 1865
Joined: Tue Sep 27, 2011 18:44
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez

by jordan4ibanez » Sun Mar 25, 2012 20:35

mali_nexa wrote:I reviewed your "Door mod" and my "Minecraft texture pack" (when i get 20 subs download link will be uploaded) .

Here's The link: http://www.youtube.com/watch?v=HGuhzc_nVyI

Subscribe if you like it!!!

EDIT DAMMIT; dont forget to watch: http://www.youtube.com/watch?v=ShOrZpGKBBw&feature=context&context=C41e9f48VDvjVQa1PpcFOxuWjBYXcSVvQHneNO8XLlTKEA-0dLdc0=

Tutorial for n00bs!!!

why would you make people sub to you for an upload?
If you can think it, you can make it.
 

User avatar
bgsmithjr
Member
 
Posts: 436
Joined: Thu Mar 08, 2012 23:21

by bgsmithjr » Mon Mar 26, 2012 00:03

Why would you review a mod? Just review minetest.
 

User avatar
RabbiBob
Member
 
Posts: 335
Joined: Sat Jan 28, 2012 22:40

by RabbiBob » Mon Mar 26, 2012 00:25

How does one remove a door?
 

User avatar
bgsmithjr
Member
 
Posts: 436
Joined: Thu Mar 08, 2012 23:21

by bgsmithjr » Mon Mar 26, 2012 01:14

It depends on which version you are using. Point at the hinges when you punch.
 

User avatar
jordan4ibanez
Member
 
Posts: 1865
Joined: Tue Sep 27, 2011 18:44
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez

by jordan4ibanez » Wed Mar 28, 2012 13:38

Please, can a moderator slap a gpl license on this and move it to mod releases? ( or could the mod creator do it? )
If you can think it, you can make it.
 

User avatar
Death Dealer
Member
 
Posts: 1379
Joined: Wed Feb 15, 2012 18:46

by Death Dealer » Wed Mar 28, 2012 13:39

jordan4ibanez wrote:Please, can a moderator slap a gpl license on this and move it to mod releases? ( or could the mod creator do it? )

the mod has been dropped by the creater for now.
Keep calm and code python^_^
 

Next

Return to WIP Mods

Who is online

Users browsing this forum: No registered users and 16 guests

cron