Page 1 of 1

Help with Modding

PostPosted: Tue Jan 13, 2015 19:04
by macabre222
Hello and sorry if this question was already asked.
I followed the instructions that a previous user had posted and put on the wiki, I was able to make what I think is a nice looking lantern in blender. I couldnt find any guides on adding non animal 3d models to minetest via mod. and the guide that tells you how to make your own items doesnt mention 3d models either. So I am at a loss. I have the file in both blend and .x formats, I get an error about not having facing when trying to convert to b3d, but thats another thing.
ah sorry for rambling.

How do I add 3d non entity items to a mod?.

Re: Help with Modding

PostPosted: Tue Jan 13, 2015 19:19
by ExeterDad
Meshnodes.

Re: Help with Modding

PostPosted: Wed Jan 14, 2015 07:25
by kaeza
Using meshes as nodes (meshnodes) are a new feature added in 0.4.11, and documentation in the wiki is probably not updated.

I recommend checking the slope_test mod, as it's a simple enough example of using meshnodes.

EDIT: My own sunflower mod is also a simple example.

Re: Help with Modding

PostPosted: Wed Jan 14, 2015 23:10
by Nathan.S
You just have to define the mesh object in your node. This sample is from a video series I'm doing on my youtube channel. This specific video isn't uploaded quite yet though.

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.register_node('new_mod:suzanne', {
   description = 'Monkey Head',
   drawtype = 'mesh',
   mesh = 'suzanne.obj',
   tiles = {'default_cobble.png'},
   inventory_image = 'new_mod_suzanne.png',
   groups = {oddly_breakable_by_hand=2},
   paramtype = 'light',
   paramtype2 = 'facedir',
   selection_box = {
      type = 'fixed',
      fixed = {-.5, -.5, -.3, .5, .15, .4}, -- Right, Bottom, Back, Left, Top, Front
      },
   collision_box = {
      type = 'fixed',
      fixed = {-.5, -.5, -.3, .5, .15, .4}, -- Right, Bottom, Back, Left, Top, Front
      },
})

Re: Help with Modding

PostPosted: Sat Jan 17, 2015 01:00
by Nathan.S
Okay, two videos are uploaded, you can watch them at the following links.
https://www.youtube.com/watch?v=KfH8-OJ56ok
and
https://www.youtube.com/watch?v=YDN-6lc0t2A