Page 1 of 1

[MOD] Stack Slabs [1.0] [stackslabs]

PostPosted: Sat Jun 25, 2016 00:39
by TumeniNodes
This WIP 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
https://forum.minetest.net/viewtopic.php?f=9&t=15248

This mod adds stackable top slabs to Minetest.

*Depends = default

*Licence for the code = Minetest Game mod: stairs
=========================

License of source code:
-----------------------
Copyright (C) 2011-2012 Kahrl <kahrl@gmx.net>
Copyright (C) 2011-2012 celeron55, Perttu Ahola <celeron55@gmail.com>

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

http://www.gnu.org/licenses/lgpl-2.1.html

*Licence for default textures = is under the license provided in Minetest default mod.

If there is something you would like to see added to this mod, i.e. support for other mods textures, or anything like that..., or if you have any issues with it, questions, ideas, or just like it..., please let me know.

Image

Image
Lots of new building options using the screwdriver : )

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

download = https://github.com/TumeniNodes/stackslabs/archive/master.zip

Install = rename file from "stackslabs-master", to only "stackslabs" and move into your mods folder. Be sure to enable the mod.
Enjoy

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

PostPosted: Sat Jun 25, 2016 10:12
by Onyx
Great! I'll try it soon.
Very good job, keep it up!

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

PostPosted: Sat Jun 25, 2016 14:14
by Don
Cool idea!

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

PostPosted: Sat Jun 25, 2016 16:10
by TumeniNodes
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.

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

PostPosted: Sun Jun 26, 2016 00:57
by TumeniNodes
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.
https://forum.minetest.net/viewtopic.php?f=47&t=15015#p222699
Thank you blert2112.

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

PostPosted: Sun Jun 26, 2016 01:07
by sofar
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.

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

PostPosted: Sun Jun 26, 2016 01:10
by TumeniNodes
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.

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

PostPosted: Sun Jun 26, 2016 01:24
by sofar
Well, for one, you can't place anything above the two slabs.

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

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

PostPosted: Sun Jun 26, 2016 01:29
by TumeniNodes
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.

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

PostPosted: Fri Jul 15, 2016 03:38
by TumeniNodes
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?

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

PostPosted: Sun Jul 24, 2016 18:26
by Don
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.

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

PostPosted: Sun Jul 24, 2016 18:30
by Thomas-S
This is another reason why we need meta-set nodedef ;)

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

PostPosted: Sun Jul 24, 2016 20:00
by TumeniNodes
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

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

PostPosted: Sun Jul 24, 2016 22:01
by pithy
For Minetest Game it is 420 slab combos.
It's elementary my dear TumeniNodes.

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

PostPosted: Mon Jul 25, 2016 02:47
by TumeniNodes
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.

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

PostPosted: Fri Jul 29, 2016 02:01
by pithy
I used my time machine to register all of the nodes
Image
https://forum.minetest.net/viewtopic.php?f=9&t=15248

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

PostPosted: Fri Jul 29, 2016 07:37
by TumeniNodes
pithy wrote:I used my time machine to register all of the nodes
Image
https://forum.minetest.net/viewtopic.php?f=9&t=15248


That's awesome! :D
Doh... glass, I forgot glass...