Help with Modding

macabre222
New member
 
Posts: 7
Joined: Sun Dec 28, 2014 12:42
IRC: Macabre222

Help with Modding

by macabre222 » Tue Jan 13, 2015 19:04

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?.
 

User avatar
ExeterDad
Member
 
Posts: 1121
Joined: Sun Jun 01, 2014 20:00
In-game: ExeterDad

Re: Help with Modding

by ExeterDad » Tue Jan 13, 2015 19:19

Meshnodes.
٩(̾●̮̮̃̾•̃̾)۶

Kibbie and I have a beautiful public server now! HOMETOWN
 

User avatar
kaeza
Member
 
Posts: 2141
Joined: Thu Oct 18, 2012 05:00
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza

Re: Help with Modding

by kaeza » Wed Jan 14, 2015 07:25

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.
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!

Check out my stuff! | Donations greatly appreciated! PayPal | BTC: 1DFZAa5VtNG7Levux4oP6BuUzr1e83pJK2
 

User avatar
Nathan.S
Member
 
Posts: 679
Joined: Wed Sep 24, 2014 17:47
GitHub: NathanSalapat
IRC: NathanS21
In-game: NathanS21

Re: Help with Modding

by Nathan.S » Wed Jan 14, 2015 23:10

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
      },
})
I record Minetest videos, Mod reviews, Modding tutorials, and Lets plays.
Check out my website.
 

User avatar
Nathan.S
Member
 
Posts: 679
Joined: Wed Sep 24, 2014 17:47
GitHub: NathanSalapat
IRC: NathanS21
In-game: NathanS21

Re: Help with Modding

by Nathan.S » Sat Jan 17, 2015 01:00

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
I record Minetest videos, Mod reviews, Modding tutorials, and Lets plays.
Check out my website.
 


Return to Modding Discussion

Who is online

Users browsing this forum: No registered users and 2 guests

cron