Page 1 of 1
world generating nodes using blender created voxels

Posted:
Fri Jun 12, 2015 03:26
by metaspy
I have been playing a different voxel game, where the ore nodes are different from the normal block.
I wanted to mod Minetest to do the same.
Is there a way to have the world generator stick a blender created voxel in that location instead of the default voxel?
Re: world generating nodes using blender created voxels

Posted:
Fri Jun 12, 2015 04:42
by Nathan.S
Entirely yes, just create said mesh and then moddify the init.lua in the default mod to reflect the mesh rather than just drawing a node, alternately you could create a new mod and override the more nodes to display them as the meshes.
Re: world generating nodes using blender created voxels

Posted:
Fri Jun 12, 2015 05:57
by metaspy
Honestly, I am looking in the init.lua and I don't see any code for setting up a mesh instead of the normal node.
Should I be looking in Nodes.lua, or mapgen.lua?
Re: world generating nodes using blender created voxels

Posted:
Fri Jun 12, 2015 08:46
by srifqi
metaspy wrote:Honestly, I am looking in the init.lua and I don't see any code for setting up a mesh instead of the normal node.
Should I be looking in Nodes.lua, or mapgen.lua?
Until now, none of Minetest Vanilla's block (a.k.a. node) that uses mesh.
(Correct me if I'm wrong)
Re: world generating nodes using blender created voxels

Posted:
Fri Jun 12, 2015 12:27
by metaspy
If the game currently doesnt force a specific mesh for the default block, how would i go about implementing a custom mesh for a block?
Re: world generating nodes using blender created voxels

Posted:
Sat Jun 13, 2015 00:17
by Nathan.S
Like this.
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
minetest.override_item('default:dirt_with_grass', {
description = 'dirt with grass',
drawtype = 'mesh',
mesh = 'default:dirt_with_grass.obj',
Re: world generating nodes using blender created voxels

Posted:
Sat Jun 13, 2015 03:55
by metaspy
thank you sir!