fluid trash can

This commit is contained in:
Evert Prants 2019-01-27 13:09:34 +02:00
parent f43fb329c7
commit e08fb1e112
No known key found for this signature in database
GPG Key ID: 1688DA83D222D0B5
4 changed files with 296 additions and 0 deletions

@ -18,3 +18,13 @@ minetest.register_craft({
{"default:stone", "default:stone", "default:stone"}, {"default:stone", "default:stone", "default:stone"},
} }
}) })
-- Trash
minetest.register_craft({
output = "fluid_transfer:fluid_trash",
recipe = {
{"default:cobble", "default:cobble", "default:cobble"},
{"default:stone", "bucket:bucket_empty", "default:stone"},
{"default:stone", "fluid_transfer:fluid_duct", "default:stone"},
}
})

@ -0,0 +1,260 @@
# Blender v2.79 (sub 6) OBJ File: ''
# www.blender.org
o Cube
v -0.316979 -0.500000 0.316979
v -0.376150 0.300000 0.376150
v -0.316979 -0.500000 -0.316979
v -0.376150 0.300000 -0.376150
v 0.316979 -0.500000 0.316979
v 0.376150 0.300000 0.376150
v 0.316979 -0.500000 -0.316979
v 0.376150 0.300000 -0.376150
v -0.449371 0.290267 0.449371
v -0.449371 0.290267 -0.449371
v 0.449371 0.290267 -0.449371
v 0.449371 0.290267 0.449371
v -0.449371 0.409733 0.449371
v -0.449371 0.409733 -0.449371
v 0.449371 0.409733 -0.449371
v 0.449371 0.409733 0.449371
v -0.211595 0.409445 0.026604
v -0.211595 0.475526 0.026604
v -0.211595 0.409445 -0.026604
v -0.211595 0.475526 -0.026604
v 0.211595 0.409445 0.026604
v 0.211595 0.475526 0.026604
v 0.211595 0.409445 -0.026604
v 0.211595 0.475526 -0.026604
v 0.288011 -0.211200 0.211200
v 0.288011 0.211200 0.211200
v 0.288011 -0.211200 -0.211200
v 0.288011 0.211200 -0.211200
v 0.500001 -0.211200 0.211200
v 0.500001 0.211200 0.211200
v 0.500001 -0.211200 -0.211200
v 0.500001 0.211200 -0.211200
v -0.288009 0.211200 0.211200
v -0.288009 -0.211200 0.211200
v -0.288009 0.211200 -0.211200
v -0.288009 -0.211200 -0.211200
v -0.499999 0.211200 0.211200
v -0.499999 -0.211200 0.211200
v -0.499999 0.211200 -0.211200
v -0.499999 -0.211200 -0.211200
v 0.211201 -0.211200 -0.288010
v 0.211201 0.211200 -0.288010
v -0.211199 -0.211200 -0.288010
v -0.211199 0.211200 -0.288010
v 0.211201 -0.211200 -0.500000
v 0.211201 0.211200 -0.500000
v -0.211199 -0.211200 -0.500000
v -0.211199 0.211200 -0.500000
v 0.211201 0.211200 0.288010
v 0.211201 -0.211200 0.288010
v -0.211199 0.211200 0.288010
v -0.211199 -0.211200 0.288010
v 0.211201 0.211200 0.500000
v 0.211201 -0.211200 0.500000
v -0.211199 0.211200 0.500000
v -0.211199 -0.211200 0.500000
vt 0.582082 0.566971
vt 0.603718 0.850456
vt 0.328633 0.850456
vt 0.350269 0.566971
vt 0.328633 0.283485
vt 0.603718 0.283485
vt 0.582082 0.566971
vt 0.625354 0.283485
vt 0.603718 0.000000
vt 0.878803 0.000000
vt 0.857167 0.283485
vt 0.350269 0.283485
vt 0.328633 0.000000
vt 0.603718 0.000000
vt 0.582082 0.283485
vt 0.603718 0.283485
vt 0.835530 0.283485
vt 0.835530 0.507945
vt 0.603718 0.507945
vt 0.301859 0.292285
vt 0.301859 0.025925
vt 0.328633 0.000000
vt 0.328633 0.318210
vt 0.026774 0.292285
vt 0.000000 0.318210
vt 0.000000 0.636419
vt 0.000000 0.318210
vt 0.328633 0.318210
vt 0.328633 0.636419
vt 0.922484 0.000000
vt 0.922484 0.318210
vt 0.878803 0.318210
vt 0.878803 0.000000
vt 0.845522 0.826155
vt 0.845522 0.507945
vt 0.889202 0.507945
vt 0.889202 0.826155
vt 0.801841 0.826155
vt 0.801841 0.507945
vt 0.845522 0.507945
vt 0.845522 0.826155
vt 0.758161 0.826155
vt 0.758161 0.507945
vt 0.801841 0.507945
vt 0.801841 0.826155
vt 0.026774 0.025925
vt 0.000000 0.000000
vt 0.308885 0.683210
vt 0.308885 0.659814
vt 0.328341 0.659814
vt 0.328341 0.683210
vt 0.705396 0.807056
vt 0.729557 0.807056
vt 0.729558 0.956891
vt 0.705396 0.956891
vt 0.328341 0.636419
vt 0.328341 0.659814
vt 0.308885 0.659814
vt 0.308885 0.636419
vt 0.681234 0.807056
vt 0.705396 0.807056
vt 0.705396 0.956891
vt 0.681234 0.956891
vt 0.986174 0.507945
vt 0.986174 0.657780
vt 0.966719 0.657780
vt 0.966719 0.507945
vt 0.328633 1.000000
vt 0.328633 0.850456
vt 0.406149 0.850456
vt 0.406149 1.000000
vt 0.913047 0.507934
vt 0.913047 0.358390
vt 0.990563 0.358390
vt 0.990563 0.507934
vt 0.154443 0.636419
vt 0.308885 0.636419
vt 0.308885 0.785975
vt 0.154443 0.785975
vt 0.922484 0.149544
vt 0.922484 0.000000
vt 1.000000 0.000000
vt 1.000000 0.149544
vt 0.232549 0.785975
vt 0.310065 0.785975
vt 0.310065 0.935530
vt 0.232549 0.935530
vt 0.966719 0.807056
vt 0.889202 0.807056
vt 0.889202 0.657501
vt 0.966719 0.657501
vt 0.000000 0.636419
vt 0.154443 0.636419
vt 0.154443 0.785975
vt 0.000000 0.785975
vt 0.966719 0.807056
vt 0.966719 0.956600
vt 0.889202 0.956600
vt 0.889202 0.807056
vt 0.913047 0.507945
vt 0.835531 0.507945
vt 0.835530 0.358390
vt 0.913047 0.358390
vt 0.155032 0.785975
vt 0.232549 0.785975
vt 0.232549 0.935530
vt 0.155032 0.935530
vt 0.483665 1.000000
vt 0.483665 0.850456
vt 0.561182 0.850456
vt 0.561182 1.000000
vt 0.758161 0.975699
vt 0.758161 0.826155
vt 0.835677 0.826155
vt 0.835677 0.975699
vt 0.603718 0.657501
vt 0.758161 0.657501
vt 0.758161 0.807056
vt 0.603718 0.807056
vt 0.483665 0.850456
vt 0.483665 1.000000
vt 0.406149 1.000000
vt 0.406149 0.850456
vt 0.077516 0.785975
vt 0.155032 0.785975
vt 0.155032 0.935530
vt 0.077516 0.935530
vt 0.889202 0.507945
vt 0.966719 0.507945
vt 0.966719 0.657501
vt 0.889202 0.657501
vt 0.758161 0.657501
vt 0.603718 0.657501
vt 0.603718 0.507945
vt 0.758161 0.507945
vt 0.922484 0.299088
vt 0.922484 0.149544
vt 1.000000 0.149544
vt 1.000000 0.299088
vt 0.077516 0.935530
vt 0.000000 0.935530
vt 0.000000 0.785975
vt 0.077516 0.785975
vt 0.681234 0.956612
vt 0.603718 0.956612
vt 0.603718 0.807056
vt 0.681234 0.807056
vn -0.9973 -0.0738 0.0000
vn 0.0000 -0.0738 -0.9973
vn 0.9973 -0.0738 0.0000
vn 0.0000 -0.0738 0.9973
vn 0.0000 -1.0000 0.0000
vn 0.0000 -0.9913 -0.1318
vn 0.1318 -0.9913 0.0000
vn 0.0000 1.0000 0.0000
vn -1.0000 0.0000 0.0000
vn 0.0000 0.0000 1.0000
vn 0.0000 0.0000 -1.0000
vn 1.0000 0.0000 0.0000
vn 0.0000 -0.9913 0.1318
vn -0.1318 -0.9913 0.0000
s off
f 1/1/1 2/2/1 4/3/1 3/4/1
f 3/4/2 4/5/2 8/6/2 7/7/2
f 7/8/3 8/9/3 6/10/3 5/11/3
f 5/12/4 6/13/4 2/14/4 1/15/4
f 3/16/5 7/17/5 5/18/5 1/19/5
f 2/20/6 6/21/6 12/22/6 9/23/6
f 4/24/7 2/20/7 9/23/7 10/25/7
f 13/26/8 16/27/8 15/28/8 14/29/8
f 10/30/9 9/31/9 13/32/9 14/33/9
f 9/34/10 12/35/10 16/36/10 13/37/10
f 11/38/11 10/39/11 14/40/11 15/41/11
f 12/42/12 11/43/12 15/44/12 16/45/12
f 8/46/13 4/24/13 10/25/13 11/47/13
f 6/21/14 8/46/14 11/47/14 12/22/14
f 17/48/9 18/49/9 20/50/9 19/51/9
f 19/52/11 20/53/11 24/54/11 23/55/11
f 23/56/12 24/57/12 22/58/12 21/59/12
f 21/60/10 22/61/10 18/62/10 17/63/10
f 24/64/8 20/65/8 18/66/8 22/67/8
f 35/68/11 36/69/11 40/70/11 39/71/11
f 27/72/11 28/73/11 32/74/11 31/75/11
f 31/76/12 32/77/12 30/78/12 29/79/12
f 29/80/10 30/81/10 26/82/10 25/83/10
f 27/84/5 31/85/5 29/86/5 25/87/5
f 32/88/8 28/89/8 26/90/8 30/91/8
f 39/92/9 40/93/9 38/94/9 37/95/9
f 37/96/10 38/97/10 34/98/10 33/99/10
f 35/100/8 39/101/8 37/102/8 33/103/8
f 40/104/5 36/105/5 34/106/5 38/107/5
f 51/108/9 52/109/9 56/110/9 55/111/9
f 43/112/9 44/113/9 48/114/9 47/115/9
f 47/116/11 48/117/11 46/118/11 45/119/11
f 45/120/12 46/121/12 42/122/12 41/123/12
f 43/124/5 47/125/5 45/126/5 41/127/5
f 48/128/8 44/129/8 42/130/8 46/131/8
f 55/132/10 56/133/10 54/134/10 53/135/10
f 53/136/12 54/137/12 50/138/12 49/139/12
f 51/140/8 55/141/8 53/142/8 49/143/8
f 56/144/5 52/145/5 50/146/5 54/147/5

@ -21,3 +21,29 @@ fluid_lib.register_transfer_node("fluid_transfer:fluid_duct", {
groups = {oddly_breakable_by_hand = 1, cracky = 1} groups = {oddly_breakable_by_hand = 1, cracky = 1}
}) })
minetest.register_node("fluid_transfer:fluid_trash", {
description = "Fluid Trash Can",
drawtype = "mesh",
mesh = "fluid_transfer_trash.obj",
tiles = {"fluid_transfer_trash.png"},
groups = {oddly_breakable_by_hand = 1, cracky = 1, fluid_container = 1},
node_io_can_put_liquid = function (pos, node, side)
return true
end,
node_io_accepts_millibuckets = function(pos, node, side) return true end,
node_io_put_liquid = function(pos, node, side, putter, liquid, millibuckets)
return 0
end,
node_io_room_for_liquid = function(pos, node, side, liquid, millibuckets)
return millibuckets
end,
node_io_get_liquid_size = function (pos, node, side)
return 1
end,
node_io_get_liquid_name = function(pos, node, side, index)
return ""
end,
node_io_get_liquid_stack = function(pos, node, side, index)
return ItemStack(nil)
end,
})

Binary file not shown.

After

Width:  |  Height:  |  Size: 619 B