Help with Modding

Post Reply
macabre222
New member
Posts: 8
Joined: Sun Dec 28, 2014 12:42
IRC: Macabre222

Help with Modding

by macabre222 » Post

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: 1717
Joined: Sun Jun 01, 2014 20:00
In-game: ExeterDad
Location: New Hampshire U.S.A

Re: Help with Modding

by ExeterDad » Post

Meshnodes.

User avatar
kaeza
Moderator
Posts: 2162
Joined: Thu Oct 18, 2012 05:00
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza
Location: Montevideo, Uruguay
Contact:

Re: Help with Modding

by kaeza » Post

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

User avatar
Nathan.S
Member
Posts: 1065
Joined: Wed Sep 24, 2014 17:47
GitHub: NathanSalapat
IRC: NathanS21
In-game: NathanS21
Location: Bigsby Texas
Contact:

Re: Help with Modding

by Nathan.S » Post

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.

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, and brand new Minetest Modding Course

User avatar
Nathan.S
Member
Posts: 1065
Joined: Wed Sep 24, 2014 17:47
GitHub: NathanSalapat
IRC: NathanS21
In-game: NathanS21
Location: Bigsby Texas
Contact:

Re: Help with Modding

by Nathan.S » Post

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, and brand new Minetest Modding Course

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest