[MOD] Stack Slabs [1.0] [stackslabs]

User avatar
TumeniNodes
Member
Posts: 2943
Joined: Fri Feb 26, 2016 19:49
GitHub: TumeniNodes
IRC: tumeninodes
In-game: TumeniNodes
Location: in the dark recesses of the mind
Contact:

[MOD] Stack Slabs [1.0] [stackslabs]

by TumeniNodes » Post

This mod will be developed no further.
I would like to recommend comboblock by pithy for those who like this idea, as it is a far better approach and, one can stack slabs atop one another all day :D
viewtopic.php?f=9&t=15248

This mod adds stackable top slabs to Minetest.

*Depends = default

*License
LGPLv2.1 for code,
CC-BY-SA 3.0 for media.
=========================

Image

Image
Lots of new building options using the screwdriver : )

source = https://github.com/TumeniNodes/stackslabs

download = https://github.com/TumeniNodes/stacksla ... master.zip

Install = rename file from "stackslabs-master", to only "stackslabs" and move into your mods folder. Be sure to enable the mod.
Enjoy
Attachments
lots of new options.png
lots of new options.png (134.11 KiB) Viewed 2652 times
screenshot_slabs2.png
screenshot_slabs2.png (300.57 KiB) Viewed 2652 times
Last edited by TumeniNodes on Wed Oct 03, 2018 04:20, edited 10 times in total.
A Wonderful World

User avatar
Onyx
Member
Posts: 132
Joined: Fri Sep 25, 2015 08:36
In-game: Onyx
Location: On your planet

Re: [MOD] Stack Slabs [1.0] [stackslabs]

by Onyx » Post

Great! I'll try it soon.
Very good job, keep it up!
"One chunk, two chunks, three chunks..."

User avatar
Don
Member
Posts: 1643
Joined: Sat May 17, 2014 18:40
GitHub: DonBatman
IRC: Batman
In-game: Batman

Re: [MOD] Stack Slabs [1.0] [stackslabs]

by Don » Post

Cool idea!
Many of my mods are now a part of Minetest-mods. A place where you know they are maintained!

A list of my mods can be found here

User avatar
TumeniNodes
Member
Posts: 2943
Joined: Fri Feb 26, 2016 19:49
GitHub: TumeniNodes
IRC: tumeninodes
In-game: TumeniNodes
Location: in the dark recesses of the mind
Contact:

Re: [MOD] Stack Slabs [1.0] [stackslabs]

by TumeniNodes » Post

Thank you both. I will be removing the bottom slabs today, as they are not needed.
When I did it last night, and then entered "stack" in the inv search, nothing came up so I thought something was wrong, and I put the bottom slabs back in.
I was actually mistaken, and should have entered "top", then I would have seen that the mod was still working fine :P
A simple, silly mistake of a tired person :D
I will also be adding support for other nodes from other mods, which are supported by the stairs mod. That is a step I have yet to do, so I will have to look at the stairs code to see how it is done.
Last edited by TumeniNodes on Mon Jun 27, 2016 04:20, edited 1 time in total.
A Wonderful World

User avatar
TumeniNodes
Member
Posts: 2943
Joined: Fri Feb 26, 2016 19:49
GitHub: TumeniNodes
IRC: tumeninodes
In-game: TumeniNodes
Location: in the dark recesses of the mind
Contact:

Re: [MOD] Stack Slabs [1.0] [stackslabs]

by TumeniNodes » Post

Updated.
This mod now only adds the top slabs.
blert2112 noticed I was calling the register function twice, which was causing the mod to become null after I removed the lines for the bottom nodes.
viewtopic.php?f=47&t=15015#p222699
Thank you blert2112.
A Wonderful World

sofar
Developer
Posts: 2146
Joined: Fri Jan 16, 2015 07:31
GitHub: sofar
IRC: sofar
In-game: sofar

Re: [MOD] Stack Slabs [1.0] [stackslabs]

by sofar » Post

You just made slabs that have a nodebox *outside* of the node's position.

That's likely going to violate all sorts of game engine assumptions, and break all over the place.

User avatar
TumeniNodes
Member
Posts: 2943
Joined: Fri Feb 26, 2016 19:49
GitHub: TumeniNodes
IRC: tumeninodes
In-game: TumeniNodes
Location: in the dark recesses of the mind
Contact:

Re: [MOD] Stack Slabs [1.0] [stackslabs]

by TumeniNodes » Post

sofar wrote:You just made slabs that have a nodebox *outside* of the node's position.

That's likely going to violate all sorts of game engine assumptions, and break all over the place.
Well I sure hope not. That's why it will stay here for testing. I have had no problems yet. Just waiting on hearing any issues from other users.
I have other similar mods I have made but not shared yet, and I have had zero issues with them.
A Wonderful World

sofar
Developer
Posts: 2146
Joined: Fri Jan 16, 2015 07:31
GitHub: sofar
IRC: sofar
In-game: sofar

Re: [MOD] Stack Slabs [1.0] [stackslabs]

by sofar » Post

Well, for one, you can't place anything above the two slabs.

Plus rotation is going to go very ... strangely.

User avatar
TumeniNodes
Member
Posts: 2943
Joined: Fri Feb 26, 2016 19:49
GitHub: TumeniNodes
IRC: tumeninodes
In-game: TumeniNodes
Location: in the dark recesses of the mind
Contact:

Re: [MOD] Stack Slabs [1.0] [stackslabs]

by TumeniNodes » Post

sofar wrote:Well, for one, you can't place anything above the two slabs.

Plus rotation is going to go very ... strangely.
In the 2d image of the orig post, I show a stairs slab and top slab rotated to their sides, and then a block set atop them.
The only area a user cannot place another node is against the top of the top slab (whichever position it is in) so that is the only limitation.
So one could use these to say, make a structure with one material inside, and another outside, while still only using the space a single node would (they just can't place other nodes up against the outside) because that is the top of the top slab.
Besides, we are unable to place any nodes atop slabs in the first place, right along..., until now :D
But as I stated to the user who posted regarding wishing for this, it is a somewhat limited use. But they do add some unique new options
rotation is actually pretty cool with these nodes.
A Wonderful World

User avatar
TumeniNodes
Member
Posts: 2943
Joined: Fri Feb 26, 2016 19:49
GitHub: TumeniNodes
IRC: tumeninodes
In-game: TumeniNodes
Location: in the dark recesses of the mind
Contact:

Re: [MOD] Stack Slabs [1.0] [stackslabs]

by TumeniNodes » Post

If anyone is interested in helping, I am sure there has to be a way to make it so that when you place a slab of one material, and one of these top slabs of another material on top, that they switch into a full node entity, the same as when you place a slab atop another of the same material they turn into a full node?
I have been really locked onto this, it has been stuck in my head, and it drives me nuts trying to figure out how this might be achieved... : P
So, if anyone has any ideas, please pass them on?
A Wonderful World

User avatar
Don
Member
Posts: 1643
Joined: Sat May 17, 2014 18:40
GitHub: DonBatman
IRC: Batman
In-game: Batman

Re: [MOD] Stack Slabs [1.0] [stackslabs]

by Don » Post

TumeniNodes wrote:If anyone is interested in helping, I am sure there has to be a way to make it so that when you place a slab of one material, and one of these top slabs of another material on top, that they switch into a full node entity, the same as when you place a slab atop another of the same material they turn into a full node?
I have been really locked onto this, it has been stuck in my head, and it drives me nuts trying to figure out how this might be achieved... : P
So, if anyone has any ideas, please pass them on?
You would need to make a node for each variation. That would be a lot of nodes to register. But it could be done.
Many of my mods are now a part of Minetest-mods. A place where you know they are maintained!

A list of my mods can be found here

Thomas-S
Member
Posts: 115
Joined: Sun Sep 06, 2015 12:23
GitHub: Thomas--S
IRC: Thomas-S
In-game: Thomas-S
Location: Bavaria, Germany

Re: [MOD] Stack Slabs [1.0] [stackslabs]

by Thomas-S » Post

This is another reason why we need meta-set nodedef ;)

User avatar
TumeniNodes
Member
Posts: 2943
Joined: Fri Feb 26, 2016 19:49
GitHub: TumeniNodes
IRC: tumeninodes
In-game: TumeniNodes
Location: in the dark recesses of the mind
Contact:

Re: [MOD] Stack Slabs [1.0] [stackslabs]

by TumeniNodes » Post

Don wrote:
TumeniNodes wrote:If anyone is interested in helping, I am sure there has to be a way to make it so that when you place a slab of one material, and one of these top slabs of another material on top, that they switch into a full node entity, the same as when you place a slab atop another of the same material they turn into a full node?
I have been really locked onto this, it has been stuck in my head, and it drives me nuts trying to figure out how this might be achieved... : P
So, if anyone has any ideas, please pass them on?
You would need to make a node for each variation. That would be a lot of nodes to register. But it could be done.
Which is the only option I was able to come up with as well, with the same downside. That's why I chose not to do it. I'm not great at maths but I'm sure someone around here would be able to determine quickly just how many nodes it would require... My guess is A LOT. :D
A Wonderful World

User avatar
pithy
Member
Posts: 251
Joined: Wed Apr 13, 2016 17:34
GitHub: pithydon

Re: [MOD] Stack Slabs [1.0] [stackslabs]

by pithy » Post

For Minetest Game it is 420 slab combos.
It's elementary my dear TumeniNodes.

User avatar
TumeniNodes
Member
Posts: 2943
Joined: Fri Feb 26, 2016 19:49
GitHub: TumeniNodes
IRC: tumeninodes
In-game: TumeniNodes
Location: in the dark recesses of the mind
Contact:

Re: [MOD] Stack Slabs [1.0] [stackslabs]

by TumeniNodes » Post

pithy wrote:For Minetest Game it is 420 slab combos.
It's elementary my dear TumeniNodes.
Then it is as I presumed... A LOT...
Even if I produced one per day, I'd still come up short at the end of one year :P
At any rate, they're still fun because... they do that which should not be done.
Actually, I should have a quick look over to add any textures I may have missed, then send it up for release tomorrow.
A Wonderful World

User avatar
pithy
Member
Posts: 251
Joined: Wed Apr 13, 2016 17:34
GitHub: pithydon

Re: [MOD] Stack Slabs [1.0] [stackslabs]

by pithy » Post

I used my time machine to register all of the nodes
Image
viewtopic.php?f=9&t=15248

User avatar
TumeniNodes
Member
Posts: 2943
Joined: Fri Feb 26, 2016 19:49
GitHub: TumeniNodes
IRC: tumeninodes
In-game: TumeniNodes
Location: in the dark recesses of the mind
Contact:

Re: [MOD] Stack Slabs [1.0] [stackslabs]

by TumeniNodes » Post

pithy wrote:I used my time machine to register all of the nodes
Image
viewtopic.php?f=9&t=15248
That's awesome! :D
Doh... glass, I forgot glass...
A Wonderful World

User avatar
StarNinjas
Member
Posts: 411
Joined: Wed Mar 14, 2018 00:32
GitHub: starninjas
IRC: StarNinjas
In-game: J1
Location: Terrarca
Contact:

Re: [MOD] Stack Slabs [1.0] [stackslabs]

by StarNinjas » Post

+1 Awesome this should be added to minetest sub-game. can you make this work with my Xblox mod:
viewtopic.php?f=9&t=19816
Don't go to bed tonight, without knowing what would happen if you died. https://thegospelfilm.org/

User avatar
TumeniNodes
Member
Posts: 2943
Joined: Fri Feb 26, 2016 19:49
GitHub: TumeniNodes
IRC: tumeninodes
In-game: TumeniNodes
Location: in the dark recesses of the mind
Contact:

Re: [MOD] Stack Slabs [1.0] [stackslabs]

by TumeniNodes » Post

StarNinjas wrote:+1 Awesome this should be added to minetest sub-game.
No, it really shouldn't... But I am glad you like it
StarNinjas wrote:can you make this work with my Xblox mod
Sorry, I honestly never had planned to do any more with this. It was literally thrown together due to another member asking if there was anything like it, and to show it could be done (but in a very hacked way)
It has limitations.
In my original post this is explained with another option/mod by pithy, which uses another approach and reduces the limitations but, I am not sure the other mod is still available
A Wonderful World

User avatar
StarNinjas
Member
Posts: 411
Joined: Wed Mar 14, 2018 00:32
GitHub: starninjas
IRC: StarNinjas
In-game: J1
Location: Terrarca
Contact:

Re: [MOD] Stack Slabs [1.0] [stackslabs]

by StarNinjas » Post

TumeniNodes wrote:
StarNinjas wrote:+1 Awesome this should be added to minetest sub-game.
No, it really shouldn't... But I am glad you like it
StarNinjas wrote:can you make this work with my Xblox mod
Sorry, I honestly never had planned to do any more with this. It was literally thrown together due to another member asking if there was anything like it, and to show it could be done (but in a very hacked way)
It has limitations.
In my original post this is explained with another option/mod by pithy, which uses another approach and reduces the limitations but, I am not sure the other mod is still available
Ok no problem
Don't go to bed tonight, without knowing what would happen if you died. https://thegospelfilm.org/

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

Re: [MOD] Stack Slabs [1.0] [stackslabs]

by sirrobzeroone » Post

I found an old archived copy of Comboblock on Git and forked the repository and spent a fair bit of time getting my head around how it worked and more importantly what stopped it from working in current Minetest 5 builds. I havent touched Lua for 9 months now and wanted to wake up the old brainbox.

I think i now have it working again at least for Minetest 5.2, I also added in snow and ice slabs, some comments as much as I could about how it works or how I think it works :) . Not sure how many others might want this but I figure TumeniNodes thread is the best place to put this update.

Git link for those who might want it, Pithy has archived his version.

https://github.com/sirrobzeroone/comboblock

User avatar
pampogokiraly
Member
Posts: 293
Joined: Wed Jan 08, 2020 22:21
In-game: i_love_mesecon

Re: [MOD] Stack Slabs [1.0] [stackslabs]

by pampogokiraly » Post

sirrobzeroone wrote:
Wed May 06, 2020 09:45
I found an old archived copy of Comboblock on Git and forked the repository and spent a fair bit of time getting my head around how it worked and more importantly what stopped it from working in current Minetest 5 builds. I havent touched Lua for 9 months now and wanted to wake up the old brainbox.

I think i now have it working again at least for Minetest 5.2, I also added in snow and ice slabs, some comments as much as I could about how it works or how I think it works :) . Not sure how many others might want this but I figure TumeniNodes thread is the best place to put this update.

Git link for those who might want it, Pithy has archived his version.

https://github.com/sirrobzeroone/comboblock
You are, my absolute hero! I only found one problem with this, it's really hard to build.. i dont know.. like walls out of slabs because they always just merge into a single block even if i hold down shift (sneak....). So i think you should remove the feature that makes a full block out of two slabs from the same type!
Overall: Thank you!
All praise the Bacon God! The one and only god in MineTest

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

Re: [MOD] Stack Slabs [1.0] [stackslabs]

by sirrobzeroone » Post

I have a fix for the 2 slabs of the same type becoming 1 block. I'm like yourself prefer my slabs to stay slabs not magically become blocks...tossing up if i make it an option in the menu screen.

Im also trying to fix the placement bug so you can place slabs at the top on the side of a block again and they dont get sucked to the bottom on placement. That took me some reading through the stairs mod but I understand how that code works now, just need to find an elegant way to re-use/use it :).

I'm also auto-indexing all slabs in the group "slab" now so that any other mods that create slabs can be more easily supported. I just wish there was a way to specify in the depends file to load a mod last as it would be handy to have comboblock load last, i need to use some google-fu on this as there might be(edit that took like 5 seconds and Rubenwardy to the rescue in this thread - viewtopic.php?f=47&t=22007 So ill work on this as well.

thanks for the feedback and glad someone else is finding it useful :)
Last edited by sirrobzeroone on Wed May 13, 2020 01:17, edited 1 time in total.

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

Re: [MOD] Stack Slabs [1.0] [stackslabs]

by sirrobzeroone » Post

Pressed quote not edit....sorry

User avatar
pampogokiraly
Member
Posts: 293
Joined: Wed Jan 08, 2020 22:21
In-game: i_love_mesecon

Re: [MOD] Stack Slabs [1.0] [stackslabs]

by pampogokiraly » Post

sirrobzeroone wrote:and glad someone else is finding it useful :)
I'we been waiting for this mod like years... I hope those bugs are going to get fixed really quickly, and i also suggest making an own topic for this mod because our talking here is a little bit off-topic.

Thank you again :D

Edit: I also found that the slabs dont keep their rotation (left click with the screwdriver)... I suppose this is a bug too :/
All praise the Bacon God! The one and only god in MineTest

Post Reply

Who is online

Users browsing this forum: Dmax_05 and 28 guests