Page 1 of 1

Is it possible to change the shape of the blocks in game?

PostPosted: Sun Sep 23, 2018 19:16
by TheReaperKing
I was wondering if it is possible to alter or change the shape of blocks in game to create angles. Also potentially changing the size of the cube.

Also I am curious if you can "stretch out" a texture across multiple blocks, especially if the blocks are indestructible.

I'm really interested in what in game editing functionality is possible in general.

Thank you for your time!
-Mike

Re: Is it possible to change the shape of the blocks in game

PostPosted: Sun Sep 23, 2018 20:46
by duane
TheReaperKing wrote:I was wondering if it is possible to alter or change the shape of blocks in game to create angles. Also potentially changing the size of the cube.

Also I am curious if you can "stretch out" a texture across multiple blocks, especially if the blocks are indestructible.


Take a look at the lua documentation and the existing mods. Several of these things have already been done by devious methods. However, you have to remember that the cubic block with a standard texture was chosen because it's easiest. Any changes you make are going to be more resource intensive -- in some cases, a lot more.

Re: Is it possible to change the shape of the blocks in game

PostPosted: Tue Sep 25, 2018 21:53
by TheReaperKing
Thank you Duane!! I was hoping that someday in game editing like this would be possible.
https://www.youtube.com/watch?v=BA1jRuwLZ6Q&t=212s

Seems like it would be very costly though which is a problem. WorldEdit does seem to come pretty close. I appreciate the feedback!

Re: Is it possible to change the shape of the blocks in game

PostPosted: Thu Sep 27, 2018 00:45
by paramat
What do you mean by 'angles'? Nodes can be any shape already. Maybe you mean alter the geometry of the underlying 3D grid of cubes?
The size of the basic cubic node is set by a parameter in the engine called 'BS' heh, not settable in Lua.
If you want to alter the size of cubes the only way is to use a bigger or smaller player.

A new feature called 'global textures' can create large textures covering multiple nodes.
https://github.com/minetest/minetest/blob/4a2a11262b0821d0bcddd25161f5eb8b172b23fd/doc/lua_api.txt#L5672

Re: Is it possible to change the shape of the blocks in game

PostPosted: Thu Sep 27, 2018 12:15
by Pyrollo
paramat wrote:A new feature called 'global textures' can create large textures covering multiple nodes.
https://github.com/minetest/minetest/blob/4a2a11262b0821d0bcddd25161f5eb8b172b23fd/doc/lua_api.txt#L5672


Very nice ! Many new possibilities will be offered with that :)

Re: Is it possible to change the shape of the blocks in game

PostPosted: Fri Sep 28, 2018 17:33
by TheReaperKing
Thank you for the great response Paramat!

Yes I meant "alter the geometry of the underlying 3D grid of cubes" while in game. With the nodes being able to be any shape, I imagine you can't change the shape in game. I'd think the best solution is prefabs. Is it possible to change the texture of a block or shape while in game?

That is awesome to hear about the global textures!

Thank you again and I hope you have the best day of all time!
-Mike

Re: Is it possible to change the shape of the blocks in game

PostPosted: Sat Oct 06, 2018 23:39
by paramat
The definition of a node can't be changed in-game, all you can do is replace a node with a similar one which has the desired alteration.