Skip to main content

I will be streaming Sometime around the first weekend of July.

Also watch on these platforms:

Ever since the release of Minetest 0.4.11 we've been able to use custom meshes in Minetest. People argue pros and cons for them, but rather than talk about if we should use them, lets just look at how we can use them. You'll notice that a mesh can be many sizes, so it is often necessary to set a collision and selection box.

Example Code:

minetest.register_node('drinks:juice_press', {
   description = 'Juice Press',
   drawtype = 'mesh',
   mesh = 'drinks_press.obj',
   tiles = {name='drinks_press.png'},
   groups = {choppy=2, dig_immediate=2,},
   paramtype = 'light',
   paramtype2 = 'facedir',
   selection_box = {
      type = 'fixed',
      fixed = {-.5, -.5, -.5, .5, .5, .5},
      },
   collision_box = {
      type = 'fixed',
      fixed = {-.5, -.5, -.5, .5, .5, .5},
      },
})