Page 1 of 1

Nodes can not be placed on slabs

PostPosted: Fri Mar 03, 2017 17:44
by Sergey
Wooden plank and corresponding wooden slab nearby.
Sand can not be placed on slab.

Image

Re: Objects can not be placed on slabs

PostPosted: Fri Mar 03, 2017 17:57
by twoelk
that is how voxel games work.
one node in one position at a time.
the slab is occupying the whole 1*1m node with the upper half being air.
You are requesting for the sand to occupy the same positition as it cannot be half in the lower and half in the upper node. The node grid the map information is stored in is 1*1m, that is hardcoded into the engine.

This is the same reason why placing torches, papyrus or slabs underwater displaces a complete cube of water.
This is simply how most voxelbased games work.

Re: Objects can not be placed on slabs

PostPosted: Fri Mar 03, 2017 18:04
by Sergey
twoelk wrote:that is how voxel games work.
one node in one position at a time.
the slab is occupying the whole 1*1m node with the upper half being air.
You are requesting for the sand to occupy the same positition as it cannot be half in the lower and half in the upper node. The node grid the map information is stored in is 1*1m, that is hardcoded into the engine.

This is the same reason why placing torches, papyrus or slabs underwater displaces a complete cube of water.
This is simply how most voxelbased games work.

But nevertheless the player "feels" the half of cube. Being on slab, player is half meter higher, not 1 meter higher.

Re: Nodes can not be placed on slabs

PostPosted: Sat Mar 04, 2017 03:44
by Wuzzy
Your claim is not entirely true. You can actually place a slab on another slab (as long they are equal) to form a full block.
For everything else, this doesn't work as you want to. Technicaly, you CAN place blocks on top of the slab, but only on the voxel above the slab's voxel. Those are the rules.

But what do you want? How do you suggest to “fix” this?
Do you want the sand block to be half inside the voxel occupied by the wooden slab, and half in the voxel above it? Sorry, this would be breaking THE core rule of all voxel games like Minetest Game: Only one “thing” per voxel. This rule is very crucial to the gameplay. It's not going to changed.

Re: Nodes can not be placed on slabs

PostPosted: Sat Mar 04, 2017 06:01
by TumeniNodes
comboblock

stack slabs

I would recommend the first mod, pithy's

edit: woops, sorry the link for pithy's comboblocks is here

Re: Nodes can not be placed on slabs

PostPosted: Sat Mar 04, 2017 09:19
by sorcerykid
"Nodes can not be placed on slabs"

That awkward moment when slabs are nodes.

Re: Nodes can not be placed on slabs

PostPosted: Sat Mar 04, 2017 12:12
by christoferlevich
I was recently creating a 'realistic' model of a local building in Minetest and had a similar issue trying to duplicate a brick and cement pattern. If you are looking for a cosmetic effect and you'll use it for a large number of blocks, create a custom block with the texture representing the 'half slab half node. It isn't a perfect solution, and I wouldn't make a custom block for single use, but when using hundreds of '2/3 brick 1/3 cement blocks, creating a custom block works great for me. I have a 'mod' that's really nothing more than a generic container for a half dozen or so custom blocks I had to create. I hope this helps. (BTW - isn't the player character able to stand on a slap and be in 'two nodes' at once because it is an 'entity' or something like that?)

Re: Nodes can not be placed on slabs

PostPosted: Sat Mar 04, 2017 13:59
by Sergey
Wuzzy wrote:Do you want the sand block to be half inside the voxel occupied by the wooden slab, and half in the voxel above it?

Yes.

Re: Nodes can not be placed on slabs

PostPosted: Sat Mar 04, 2017 14:03
by Sergey
sorcerykid wrote:"Nodes can not be placed on slabs"

That awkward moment when slabs are nodes.

That is awkward indeed. I see air. I see emptiness. Why should I think of it as something solid? I see it and understand that it could be occupied with something I place there.
Slab is optical illusion.

Re: Nodes can not be placed on slabs

PostPosted: Sat Mar 04, 2017 14:20
by burli
Even a slab is a full node and you can't place nodes on "half" positions

Re: Nodes can not be placed on slabs

PostPosted: Sat Mar 04, 2017 14:29
by Sergey
burli wrote:Even a slab is a full node and you can't place nodes on "half" positions

Why can player be on "half" positions?

Image

Re: Nodes can not be placed on slabs

PostPosted: Sat Mar 04, 2017 14:55
by burli
Because players aren't nodes. Would look a bit odd if a player "jumps" from node position to node position

Re: Nodes can not be placed on slabs

PostPosted: Sat Mar 04, 2017 15:05
by sorcerykid
A player is an object not a node.

Think of 3D voxel engines like the old gaming consoles that used 2D tiles and sprites. You could not position tiles outside of the grid. Only sprites could be moved independently.

Image

Re: Nodes can not be placed on slabs

PostPosted: Sat Mar 04, 2017 16:45
by TumeniNodes
so there you go..., make a 1+1/2 object... which pretends to be a node ; )

If you use pithy's comboblocks, you can use the two slabs combo you want, then place a full node of the top slab atop it... (solved). Thank you for shopping with us, have a nice day :D