make bathroom taps use the new particles code

also make shower tray turn off taps above it, if any
minor tweak to particles function to add Y velocity
added more detailed collision boxes to the sinks to accommodate particles
This commit is contained in:
Vanessa Ezekowitz
2015-05-10 22:08:34 -04:00
parent 12f5ac9d02
commit 9c9e525cd7
3 changed files with 58 additions and 7 deletions

View File

@ -69,6 +69,19 @@ homedecor.register("kitchen_cabinet_with_sink", {
inventory = {
size=16,
},
node_box = {
type = "fixed",
fixed = {
{ -8/16, -8/16, -8/16, 8/16, 6/16, 8/16 },
{ -8/16, 6/16, -8/16, -6/16, 8/16, 8/16 },
{ 6/16, 6/16, -8/16, 8/16, 8/16, 8/16 },
{ -8/16, 6/16, -8/16, 8/16, 8/16, -6/16 },
{ -8/16, 6/16, 6/16, 8/16, 8/16, 8/16 },
}
},
on_destruct = function(pos)
homedecor.stop_particle_spawner({x=pos.x, y=pos.y+1, z=pos.z})
end
})
local cp_cbox = {