Open NetherEran opened 4 years ago
That's probably too strong of a word, mobkit merely doesn't support multiple simultaneous textures, it doesn't prevent non-mobkit entities using that.
I'll see what I can do.
minetest.register_entity("motorboat:boat", { initial_properties = { physical = true, collisionbox = {-0.6, -0.6, -0.6, 0.6, 1.2, 0.6}, --{-1,0,-1, 1,0.3,1}, selectionbox = {-1,0,-1, 1,1,1}, visual = "mesh", mesh = "hull.b3d", textures = {"motorboat_black.png", "motorboat_panel.png", "motorboat_glass.png", "motorboat_hull.png", "default_junglewood.png", "motorboat_painting.png"}, }, textures = {}, driver_name = nil, sound_handle = nil, buoyancy = 0.35, ...
you can circumvent it putting the multiple textures inside "initial_properties" and an empty one outside
In minetest entity models can have textures from multiple files by making the model consist of multiple objects in blender. That way each entree in the textures table becomes a texture for one object. (or more if there are more objects than entrees)
The problem is that mobkit picks one file out of the table randomly so the textures for these models become broken. It would be nice if there was a way to have random textures that doesn't break this.
With mobkit.actfunc commented out:
With mobkit.actfunc called:
Here's the mod the screenshots are from:
eg_goats.zip