I'll be streaming December 8th, mark your calendars today!
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},
      },
})

Add new comment