Add green Trash Can

This commit is contained in:
kilbith 2015-03-29 13:23:18 +02:00
parent f580f26124
commit 58f64d265f
8 changed files with 1035 additions and 16 deletions

View File

@ -3084,6 +3084,15 @@ minetest.register_craft({
}, },
}) })
minetest.register_craft({
output = "homedecor:trash_can_green",
recipe = {
{ "homedecor:plastic_sheeting", "", "homedecor:plastic_sheeting" },
{ "homedecor:plastic_sheeting", "dye:green", "homedecor:plastic_sheeting" },
{ "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" }
},
})
if (minetest.get_modpath("technic") and minetest.get_modpath("dye") and minetest.get_modpath("bees")) then if (minetest.get_modpath("technic") and minetest.get_modpath("dye") and minetest.get_modpath("bees")) then
technic.register_separating_recipe({ input = {"bees:wax 1"}, output = {"homedecor:oil_extract 2","dye:yellow 1"} }) technic.register_separating_recipe({ input = {"bees:wax 1"}, output = {"homedecor:oil_extract 2","dye:yellow 1"} })
end end

View File

@ -149,6 +149,7 @@ dofile(homedecor.modpath.."/climate-control.lua")
dofile(homedecor.modpath.."/cobweb.lua") dofile(homedecor.modpath.."/cobweb.lua")
dofile(homedecor.modpath.."/books.lua") dofile(homedecor.modpath.."/books.lua")
dofile(homedecor.modpath.."/exterior.lua") dofile(homedecor.modpath.."/exterior.lua")
dofile(homedecor.modpath.."/trash_cans.lua")
dofile(homedecor.modpath.."/handlers/locked.lua") dofile(homedecor.modpath.."/handlers/locked.lua")

View File

@ -318,22 +318,6 @@ homedecor.register("pool_table", {
minetest.register_alias("homedecor:pool_table_2", "air") minetest.register_alias("homedecor:pool_table_2", "air")
local trash_cbox = {
type = "fixed",
fixed = { -0.25, -0.5, -0.25, 0.25, 0.125, 0.25 }
}
homedecor.register("trash_can", {
drawtype = "mesh",
mesh = "homedecor_trash_can.obj",
tiles = { "homedecor_trash_can.png" },
inventory_image = "homedecor_trash_can_inv.png",
description = "Trash Can",
groups = {snappy=3},
selection_box = trash_cbox,
collision_box = trash_cbox,
})
homedecor.register("coatrack_wallmount", { homedecor.register("coatrack_wallmount", {
tiles = { "forniture_wood.png" }, tiles = { "forniture_wood.png" },
inventory_image = "homedecor_coatrack_wallmount_inv.png", inventory_image = "homedecor_coatrack_wallmount_inv.png",

View File

@ -0,0 +1,662 @@
# Blender v2.69 (sub 0) OBJ File: ''
# www.blender.org
mtllib homedecor_trash_green.mtl
o poubelle_Poubelle_Cylinder.214
v -0.124387 -0.499107 0.262526
v -0.208403 -0.499106 0.201957
v -0.266637 -0.499106 0.116305
v -0.292063 -0.499106 0.015900
v -0.281616 -0.499106 -0.087145
v -0.236556 -0.499106 -0.180402
v -0.162318 -0.499106 -0.252624
v -0.067854 -0.499106 -0.295100
v 0.035439 -0.499105 -0.302705
v 0.135105 -0.499105 -0.274523
v 0.219121 -0.499105 -0.213954
v 0.277355 -0.499105 -0.128301
v 0.302781 -0.499105 -0.027898
v 0.292335 -0.499105 0.075148
v 0.247275 -0.499105 0.168405
v 0.173036 -0.499106 0.240627
v 0.078573 -0.499106 0.283103
v -0.024721 -0.499107 0.290709
v -0.147565 0.203898 0.310496
v -0.246590 0.203899 0.239106
v -0.315226 0.203899 0.138154
v -0.345195 0.203899 0.019813
v -0.332882 0.203899 -0.101640
v -0.279773 0.203899 -0.211556
v -0.192272 0.203900 -0.296680
v -0.080934 0.203900 -0.346744
v 0.040812 0.203900 -0.355708
v 0.158281 0.203900 -0.322492
v 0.257306 0.203899 -0.251102
v 0.325943 0.203899 -0.150150
v 0.355912 0.203899 -0.031810
v 0.343599 0.203899 0.089643
v 0.290489 0.203899 0.199560
v 0.202989 0.203899 0.284684
v 0.091651 0.203898 0.334747
v -0.030095 0.203898 0.343712
v -0.032947 0.218496 0.371843
v -0.159866 0.218496 0.335955
v 0.098592 0.218496 0.362157
v 0.218886 0.218497 0.308067
v 0.313425 0.218497 0.216096
v 0.370807 0.218497 0.097336
v 0.384110 0.218498 -0.033886
v 0.351730 0.218498 -0.161745
v 0.277573 0.218498 -0.270819
v 0.170583 0.218498 -0.347951
v 0.043664 0.218498 -0.383839
v -0.087876 0.218498 -0.374153
v -0.208169 0.218498 -0.320063
v -0.302709 0.218498 -0.228092
v -0.360090 0.218498 -0.109333
v -0.373393 0.218497 0.021889
v -0.341014 0.218497 0.149749
v -0.266857 0.218497 0.258822
v -0.166289 0.193365 0.349248
v -0.277439 0.193366 0.269117
v -0.354479 0.193366 0.155803
v -0.388117 0.193366 0.022974
v -0.374296 0.193366 -0.113350
v -0.314684 0.193366 -0.236726
v -0.216470 0.193367 -0.332272
v -0.091500 0.193367 -0.388465
v 0.045153 0.193367 -0.398526
v 0.177005 0.193367 -0.361244
v 0.288155 0.193366 -0.281114
v 0.365195 0.193366 -0.167800
v 0.398834 0.193366 -0.034970
v 0.385013 0.193366 0.101352
v 0.325401 0.193366 0.224728
v 0.227187 0.193365 0.320276
v 0.102217 0.193365 0.376468
v -0.034436 0.193365 0.386531
v -0.034436 0.258097 0.386531
v -0.166289 0.258097 0.349248
v 0.102217 0.258097 0.376468
v 0.227187 0.258097 0.320276
v 0.325401 0.258098 0.224728
v 0.385013 0.258098 0.101352
v 0.398834 0.258099 -0.034970
v 0.365195 0.258099 -0.167800
v 0.288155 0.258099 -0.281113
v 0.177005 0.258099 -0.361244
v 0.045153 0.258099 -0.398526
v -0.091500 0.258099 -0.388465
v -0.216470 0.258099 -0.332272
v -0.314684 0.258099 -0.236726
v -0.374296 0.258099 -0.113350
v -0.388117 0.258098 0.022974
v -0.354479 0.258098 0.155803
v -0.277439 0.258098 0.269117
v -0.143761 0.258098 0.302623
v -0.240322 0.258098 0.233009
v -0.307251 0.258098 0.134567
v -0.336475 0.258098 0.019171
v -0.324468 0.258099 -0.099260
v -0.272679 0.258099 -0.206443
v -0.187356 0.258099 -0.289449
v -0.078788 0.258099 -0.338267
v 0.039930 0.258099 -0.347009
v 0.154477 0.258099 -0.314619
v 0.251039 0.258099 -0.245005
v 0.317968 0.258099 -0.146564
v 0.347191 0.258099 -0.031168
v 0.335184 0.258098 0.087264
v 0.283396 0.258098 0.194446
v 0.198072 0.258098 0.277453
v 0.089504 0.258097 0.326270
v -0.029213 0.258097 0.335012
v -0.027136 0.313812 0.314521
v -0.134800 0.313813 0.284077
v 0.084448 0.313813 0.306305
v 0.186492 0.313813 0.260421
v 0.266689 0.313813 0.182402
v 0.315365 0.313813 0.081660
v 0.326650 0.313813 -0.029655
v 0.299183 0.313814 -0.138117
v 0.236276 0.313814 -0.230643
v 0.037852 0.313814 -0.326518
v 0.145517 0.313814 -0.296074
v -0.073731 0.313814 -0.318301
v -0.175775 0.313814 -0.272417
v -0.255972 0.313814 -0.194398
v -0.304649 0.313814 -0.093656
v -0.315934 0.313813 0.017659
v -0.288467 0.313813 0.126120
v -0.225559 0.313813 0.218647
v 0.175770 0.313814 -0.274264
v 0.206023 0.313814 -0.252454
v -0.165053 0.313813 0.262267
v -0.195306 0.313813 0.240457
v -0.041361 0.313813 0.090693
v -0.071614 0.313813 0.068884
v -0.077327 0.313813 0.108861
v 0.052078 0.313814 -0.102690
v 0.082331 0.313814 -0.080880
v 0.088043 0.313814 -0.120857
v 0.082331 0.355065 -0.080880
v 0.052078 0.355065 -0.102690
v -0.071614 0.355065 0.068884
v -0.041361 0.355065 0.090693
v -0.071614 0.386203 0.068884
v -0.041361 0.386203 0.090693
v 0.082331 0.386204 -0.080880
v 0.052078 0.386204 -0.102690
v -0.066504 0.313813 0.109679
v -0.081632 0.313813 0.098776
v 0.077220 0.313814 -0.121676
v 0.092348 0.313814 -0.110774
v 0.077220 0.355065 -0.121676
v 0.088043 0.355065 -0.120857
v 0.092348 0.355065 -0.110774
v -0.066504 0.355065 0.109679
v -0.077327 0.355065 0.108861
v -0.081632 0.355065 0.098776
v -0.081632 0.386203 0.098776
v -0.077327 0.386203 0.108861
v -0.066504 0.386203 0.109679
v 0.092348 0.386204 -0.110774
v 0.088043 0.386204 -0.120857
v 0.077220 0.386204 -0.121676
vt 0.322026 0.460840
vt 0.000000 0.456784
vt 0.000901 0.404004
vt 0.322790 0.416061
vt 0.002594 0.360586
vt 0.324227 0.379223
vt 0.679238 0.652419
vt 1.000000 0.641530
vt 0.999384 0.693984
vt 0.678715 0.696924
vt 0.999169 0.749768
vt 0.678534 0.744253
vt 0.999383 0.802154
vt 0.678715 0.788699
vt 1.000000 0.844824
vt 0.679238 0.824902
vt 0.003418 0.625780
vt 0.324227 0.606633
vt 0.323404 0.648576
vt 0.002720 0.661366
vt 0.322966 0.700570
vt 0.002349 0.705479
vt 0.322966 0.756341
vt 0.002349 0.752798
vt 0.323404 0.809164
vt 0.002721 0.797615
vt 0.324227 0.852668
vt 0.003419 0.834525
vt 0.678534 0.832143
vt 0.356771 0.847924
vt 0.355537 0.800514
vt 0.677486 0.791919
vt 0.355108 0.745908
vt 0.677123 0.745589
vt 0.355537 0.690693
vt 0.677486 0.698743
vt 0.356771 0.641530
vt 0.678534 0.657031
vt 0.324227 0.587979
vt 0.002594 0.606633
vt 0.000901 0.564600
vt 0.322790 0.552316
vt 0.000000 0.512558
vt 0.322026 0.508162
vt 0.386913 0.093233
vt 0.367833 0.145653
vt 0.355108 0.143410
vt 0.375723 0.086772
vt 0.367833 0.201438
vt 0.355108 0.203682
vt 0.386912 0.253859
vt 0.375722 0.260319
vt 0.422770 0.296593
vt 0.414464 0.306490
vt 0.471081 0.324485
vt 0.466662 0.336627
vt 0.526018 0.334173
vt 0.526018 0.347093
vt 0.580956 0.324486
vt 0.585375 0.336627
vt 0.629267 0.296593
vt 0.637572 0.306491
vt 0.665125 0.253860
vt 0.676314 0.260321
vt 0.684204 0.201440
vt 0.696929 0.203683
vt 0.684205 0.145655
vt 0.696929 0.143411
vt 0.665125 0.093234
vt 0.676315 0.086774
vt 0.629267 0.050500
vt 0.637573 0.040602
vt 0.580957 0.022608
vt 0.585376 0.010466
vt 0.526020 0.012920
vt 0.526020 0.000000
vt 0.471082 0.022607
vt 0.466663 0.010466
vt 0.422771 0.050499
vt 0.414466 0.040601
vt 0.913966 0.571184
vt 0.913493 0.514111
vt 0.924822 0.515132
vt 0.925313 0.574423
vt 0.914856 0.618186
vt 0.926237 0.623253
vt 0.898822 0.179171
vt 0.900155 0.230396
vt 0.888454 0.234876
vt 0.887068 0.181661
vt 0.898359 0.120173
vt 0.886587 0.120369
vt 0.898822 0.060517
vt 0.887068 0.058394
vt 0.900155 0.007398
vt 0.888454 0.003211
vt 0.884757 0.296439
vt 0.886587 0.341853
vt 0.874911 0.347093
vt 0.873010 0.299914
vt 0.883784 0.240210
vt 0.871998 0.241499
vt 0.883784 0.179949
vt 0.871998 0.178896
vt 0.884757 0.122925
vt 0.873009 0.119654
vt 0.886587 0.076014
vt 0.874910 0.070920
vt 0.900386 0.066681
vt 0.901052 0.010008
vt 0.912420 0.006690
vt 0.911728 0.065566
vt 0.900155 0.126953
vt 0.911487 0.128180
vt 0.900386 0.183554
vt 0.911728 0.186981
vt 0.901052 0.229656
vt 0.912420 0.234876
vt 0.913966 0.397678
vt 0.914855 0.352360
vt 0.926237 0.347093
vt 0.925313 0.394172
vt 0.913493 0.453853
vt 0.924822 0.452531
vt 0.726477 0.178896
vt 0.726477 0.241499
vt 0.696929 0.241472
vt 0.696929 0.178869
vt 0.727488 0.299914
vt 0.697941 0.299887
vt 0.729389 0.347093
vt 0.699841 0.347066
vt 0.791796 0.115427
vt 0.790410 0.170611
vt 0.760858 0.170570
vt 0.762244 0.115386
vt 0.789929 0.232586
vt 0.760378 0.232545
vt 0.790410 0.293877
vt 0.760858 0.293836
vt 0.791796 0.347093
vt 0.762244 0.347052
vt 0.730804 0.347093
vt 0.729880 0.298263
vt 0.759453 0.298248
vt 0.760378 0.347078
vt 0.729389 0.238972
vt 0.758962 0.238957
vt 0.729389 0.176372
vt 0.758962 0.176357
vt 0.729881 0.118012
vt 0.759453 0.117998
vt 0.730805 0.070933
vt 0.760378 0.070919
vt 0.325159 0.588772
vt 0.324467 0.540878
vt 0.354041 0.540992
vt 0.354733 0.588887
vt 0.324227 0.482077
vt 0.353801 0.482191
vt 0.324468 0.419462
vt 0.354041 0.419577
vt 0.325159 0.360586
vt 0.354733 0.360700
vt 0.729389 0.070919
vt 0.727488 0.119654
vt 0.697940 0.119627
vt 0.699841 0.070892
vt 0.021416 0.270440
vt 0.000000 0.211601
vt 0.023304 0.207492
vt 0.041909 0.258608
vt 0.061665 0.318406
vt 0.076875 0.300279
vt 0.115891 0.349713
vt 0.123985 0.327478
vt 0.177555 0.360586
vt 0.177555 0.336923
vt 0.239219 0.349713
vt 0.231126 0.327477
vt 0.293445 0.318405
vt 0.278235 0.300278
vt 0.333693 0.270439
vt 0.313200 0.258608
vt 0.355108 0.211599
vt 0.331806 0.207491
vt 0.355108 0.148985
vt 0.331805 0.153094
vt 0.333692 0.090146
vt 0.313200 0.101977
vt 0.293444 0.042180
vt 0.278234 0.060307
vt 0.239218 0.010872
vt 0.231125 0.033108
vt 0.177554 0.000000
vt 0.177554 0.023663
vt 0.115890 0.010873
vt 0.123984 0.033109
vt 0.061664 0.042181
vt 0.076874 0.060308
vt 0.021416 0.090147
vt 0.041909 0.101979
vt 0.000000 0.148986
vt 0.023304 0.153095
vt 0.870689 0.200955
vt 0.870235 0.255341
vt 0.845258 0.253295
vt 0.845685 0.202178
vt 0.870690 0.306093
vt 0.845685 0.300999
vt 0.871998 0.347093
vt 0.846915 0.339535
vt 0.845258 0.145833
vt 0.844054 0.193774
vt 0.819011 0.196678
vt 0.820142 0.151617
vt 0.843637 0.247614
vt 0.818618 0.247283
vt 0.844054 0.300862
vt 0.819011 0.297331
vt 0.845258 0.347093
vt 0.820142 0.340784
vt 0.793026 0.347093
vt 0.792223 0.304672
vt 0.817863 0.300131
vt 0.818618 0.340004
vt 0.791796 0.253162
vt 0.791796 0.198778
vt 0.817462 0.200601
vt 0.817462 0.251717
vt 0.792223 0.148078
vt 0.817863 0.152948
vt 0.793026 0.107178
vt 0.818618 0.114506
vt 0.329147 0.828858
vt 0.328387 0.787252
vt 0.354018 0.782532
vt 0.354733 0.821638
vt 0.327982 0.736170
vt 0.353638 0.734519
vt 0.327982 0.681773
vt 0.353637 0.683391
vt 0.328386 0.630622
vt 0.354018 0.635314
vt 0.329147 0.588887
vt 0.354733 0.596087
vt 0.696929 0.000000
vt 0.713054 0.000261
vt 0.713054 0.019090
vt 0.696929 0.018829
vt 0.696929 0.037821
vt 0.713067 0.037695
vt 0.713067 0.056541
vt 0.696929 0.056667
vt 0.713067 0.070766
vt 0.696929 0.070892
vt 0.713054 0.033304
vt 0.696929 0.033043
vt 0.905513 0.337154
vt 0.905432 0.253532
vt 0.919657 0.253697
vt 0.919738 0.337320
vt 0.852032 0.129487
vt 0.852032 0.032832
vt 0.869074 0.032832
vt 0.869074 0.129487
vt 0.832832 0.127450
vt 0.818618 0.127633
vt 0.818770 0.035802
vt 0.832984 0.035619
vt 0.777420 0.115386
vt 0.760378 0.115386
vt 0.760378 0.018732
vt 0.777420 0.018731
vt 0.817596 0.267855
vt 0.817729 0.283993
vt 0.466523 0.635611
vt 0.449739 0.632652
vt 0.405460 0.607088
vt 0.372596 0.567921
vt 0.355108 0.519876
vt 0.355108 0.468748
vt 0.372595 0.420702
vt 0.405460 0.381536
vt 0.449738 0.355972
vt 0.500090 0.347093
vt 0.516874 0.350053
vt 0.533657 0.353012
vt 0.550441 0.355971
vt 0.594720 0.381535
vt 0.627585 0.420702
vt 0.645072 0.468747
vt 0.645072 0.519875
vt 0.627585 0.567920
vt 0.594720 0.607087
vt 0.550442 0.632651
vt 0.500091 0.641530
vt 0.483306 0.638571
vt 0.713067 0.037796
vt 0.717905 0.037821
vt 0.717905 0.056666
vt 0.713067 0.056641
vt 0.886785 0.346708
vt 0.886668 0.336935
vt 0.905629 0.346927
vt 0.851663 0.127207
vt 0.851838 0.141611
vt 0.833008 0.141854
vt 0.852032 0.145407
vt 0.833201 0.145649
vt 0.717895 0.033253
vt 0.713054 0.014474
vt 0.717895 0.014423
vt 0.852032 0.023630
vt 0.851815 0.035376
vt 0.833201 0.023872
vt 0.886587 0.253312
vt 0.886681 0.239266
vt 0.905526 0.239486
vt 0.886785 0.234876
vt 0.905630 0.235096
vt 0.919751 0.239652
vt 0.919855 0.235261
vt 0.717895 0.000210
vt 0.818987 0.024056
vt 0.818793 0.142037
vt 0.818987 0.145833
vt 0.717905 0.070892
vt 0.713067 0.070867
vt 0.919855 0.347093
vt 0.864800 0.143245
vt 0.860509 0.145833
vt 0.856278 0.143244
vt 0.856307 0.019074
vt 0.860597 0.016487
vt 0.864828 0.019076
vt 0.825894 0.611436
vt 0.779282 0.619655
vt 0.732672 0.611436
vt 0.691683 0.587772
vt 0.661260 0.551514
vt 0.645072 0.507039
vt 0.645072 0.459709
vt 0.661259 0.415234
vt 0.691683 0.378976
vt 0.732671 0.355312
vt 0.779282 0.347093
vt 0.825893 0.355312
vt 0.866882 0.378977
vt 0.897305 0.415233
vt 0.913493 0.459709
vt 0.913493 0.507039
vt 0.897305 0.551514
vt 0.866883 0.587771
vt 0.846095 0.186057
vt 0.846505 0.169935
vt 0.846915 0.153813
vt 0.871998 0.149498
usemtl Poubelle
s off
f 1/1 19/2 20/3 2/4
f 2/4 20/3 21/5 3/6
f 3/7 21/8 22/9 4/10
f 4/10 22/9 23/11 5/12
f 5/12 23/11 24/13 6/14
f 6/14 24/13 25/15 7/16
f 7/17 25/18 26/19 8/20
f 8/20 26/19 27/21 9/22
f 9/22 27/21 28/23 10/24
f 10/24 28/23 29/25 11/26
f 11/26 29/25 30/27 12/28
f 12/29 30/30 31/31 13/32
f 13/32 31/31 32/33 14/34
f 14/34 32/33 33/35 15/36
f 15/36 33/35 34/37 16/38
f 16/39 34/40 35/41 17/42
f 17/42 35/41 36/43 18/44
f 19/2 1/1 18/44 36/43
f 19/45 36/46 37/47 38/48
f 36/46 35/49 39/50 37/47
f 35/49 34/51 40/52 39/50
f 34/51 33/53 41/54 40/52
f 33/53 32/55 42/56 41/54
f 32/55 31/57 43/58 42/56
f 31/57 30/59 44/60 43/58
f 30/59 29/61 45/62 44/60
f 29/61 28/63 46/64 45/62
f 28/63 27/65 47/66 46/64
f 27/65 26/67 48/68 47/66
f 26/67 25/69 49/70 48/68
f 25/69 24/71 50/72 49/70
f 24/71 23/73 51/74 50/72
f 23/73 22/75 52/76 51/74
f 22/75 21/77 53/78 52/76
f 21/77 20/79 54/80 53/78
f 20/79 19/45 38/48 54/80
f 54/81 38/82 55/83 56/84
f 53/85 54/81 56/84 57/86
f 52/87 53/88 57/89 58/90
f 51/91 52/87 58/90 59/92
f 50/93 51/91 59/92 60/94
f 49/95 50/93 60/94 61/96
f 48/97 49/98 61/99 62/100
f 47/101 48/97 62/100 63/102
f 46/103 47/101 63/102 64/104
f 45/105 46/103 64/104 65/106
f 44/107 45/105 65/106 66/108
f 43/109 44/110 66/111 67/112
f 42/113 43/109 67/112 68/114
f 41/115 42/113 68/114 69/116
f 40/117 41/115 69/116 70/118
f 39/119 40/120 70/121 71/122
f 37/123 39/119 71/122 72/124
f 38/82 37/123 72/124 55/83
f 55/125 72/126 73/127 74/128
f 72/126 71/129 75/130 73/127
f 71/129 70/131 76/132 75/130
f 70/133 69/134 77/135 76/136
f 69/134 68/137 78/138 77/135
f 68/137 67/139 79/140 78/138
f 67/139 66/141 80/142 79/140
f 66/143 65/144 81/145 80/146
f 65/144 64/147 82/148 81/145
f 64/147 63/149 83/150 82/148
f 63/149 62/151 84/152 83/150
f 62/151 61/153 85/154 84/152
f 61/155 60/156 86/157 85/158
f 60/156 59/159 87/160 86/157
f 59/159 58/161 88/162 87/160
f 58/161 57/163 89/164 88/162
f 57/165 56/166 90/167 89/168
f 56/166 55/125 74/128 90/167
f 90/169 74/170 91/171 92/172
f 89/173 90/169 92/172 93/174
f 88/175 89/173 93/174 94/176
f 87/177 88/175 94/176 95/178
f 86/179 87/177 95/178 96/180
f 85/181 86/179 96/180 97/182
f 84/183 85/181 97/182 98/184
f 83/185 84/183 98/184 99/186
f 82/187 83/185 99/186 100/188
f 81/189 82/187 100/188 101/190
f 80/191 81/189 101/190 102/192
f 79/193 80/191 102/192 103/194
f 78/195 79/193 103/194 104/196
f 77/197 78/195 104/196 105/198
f 76/199 77/197 105/198 106/200
f 75/201 76/199 106/200 107/202
f 73/203 75/201 107/202 108/204
f 74/170 73/203 108/204 91/171
f 91/205 108/206 109/207 110/208
f 108/206 107/209 111/210 109/207
f 107/209 106/211 112/212 111/210
f 106/213 105/214 113/215 112/216
f 105/214 104/217 114/218 113/215
f 104/217 103/219 115/220 114/218
f 103/219 102/221 116/222 115/220
f 102/223 101/224 117/225 116/226
f 100/227 99/228 118/229 119/230
f 99/228 98/231 120/232 118/229
f 98/231 97/233 121/234 120/232
f 97/235 96/236 122/237 121/238
f 96/236 95/239 123/240 122/237
f 95/239 94/241 124/242 123/240
f 94/241 93/243 125/244 124/242
f 93/243 92/245 126/246 125/244
f 134/247 135/248 137/249 138/250
f 131/251 132/252 139/253 140/254
f 140/254 139/253 141/255 142/256
f 138/250 137/249 143/257 144/258
f 138/259 139/260 141/261 144/262
f 142/263 143/264 144/265 141/266
f 137/267 143/268 142/269 140/270
f 138/271 137/272 140/273 139/274
f 127/275 128/276 117/225 101/224 100/227 119/230
f 127/277 119/278 118/279 120/280 121/281 122/282 123/283 124/284 125/285 126/286 130/287 129/288 110/289 109/290 111/291 112/292 113/293 114/294 115/295 116/296 117/297 128/298
f 136/299 147/300 149/301 150/302
f 147/303 134/304 138/259 149/305
f 135/306 148/307 151/308 137/267
f 148/307 136/309 150/310 151/308
f 133/311 145/257 152/312 153/313
f 145/314 131/315 140/270 152/316
f 132/317 146/318 154/319 139/260
f 146/318 133/320 153/321 154/319
f 139/260 154/319 155/322 141/261
f 154/319 153/321 156/323 155/322
f 153/313 152/312 157/248 156/324
f 152/316 140/270 142/269 157/325
f 137/267 151/308 158/326 143/268
f 151/308 150/310 159/327 158/326
f 150/302 149/301 160/328 159/329
f 149/305 138/259 144/262 160/330
f 155/331 156/332 157/333
f 141/266 155/331 157/333 142/263
f 158/334 159/335 160/336
f 143/264 158/334 160/336 144/265
f 18/337 1/338 2/339 3/340 4/341 5/342 6/343 7/344 8/345 9/346 10/347 11/348 12/349 13/350 14/351 15/352 16/353 17/354
f 129/355 130/356 126/357 92/358 91/205 110/208

View File

@ -0,0 +1,275 @@
# Blender v2.69 (sub 0) OBJ File: ''
# www.blender.org
mtllib homedecor_trash_can_green_open.mtl
o poubelle_Poubelle_Cylinder.214
v -0.124387 -0.499107 0.262526
v -0.147565 0.203898 0.310496
v -0.246590 0.203899 0.239106
v -0.208403 -0.499106 0.201957
v -0.315226 0.203899 0.138154
v -0.266637 -0.499106 0.116305
v -0.345195 0.203899 0.019813
v -0.292063 -0.499106 0.015900
v -0.332882 0.203899 -0.101640
v -0.281616 -0.499106 -0.087145
v -0.279773 0.203899 -0.211556
v -0.236556 -0.499106 -0.180402
v -0.192272 0.203900 -0.296680
v -0.162318 -0.499106 -0.252624
v -0.080934 0.203900 -0.346744
v -0.067854 -0.499106 -0.295100
v 0.040812 0.203900 -0.355708
v 0.035439 -0.499105 -0.302705
v 0.158281 0.203900 -0.322492
v 0.135105 -0.499105 -0.274523
v 0.257306 0.203899 -0.251102
v 0.219121 -0.499105 -0.213954
v 0.325943 0.203899 -0.150150
v 0.277355 -0.499105 -0.128301
v 0.355912 0.203899 -0.031810
v 0.302781 -0.499105 -0.027898
v 0.343599 0.203899 0.089643
v 0.292335 -0.499105 0.075148
v 0.290489 0.203899 0.199560
v 0.247275 -0.499105 0.168405
v 0.202989 0.203899 0.284684
v 0.173036 -0.499106 0.240627
v 0.091651 0.203898 0.334747
v 0.078573 -0.499106 0.283103
v -0.030095 0.203898 0.343712
v -0.024721 -0.499107 0.290709
v -0.032947 0.218496 0.371843
v -0.159866 0.218496 0.335955
v 0.098592 0.218496 0.362157
v 0.218886 0.218497 0.308067
v 0.313425 0.218497 0.216096
v 0.370807 0.218497 0.097336
v 0.384110 0.218498 -0.033886
v 0.351730 0.218498 -0.161745
v 0.277573 0.218498 -0.270819
v 0.170583 0.218498 -0.347951
v 0.043664 0.218498 -0.383839
v -0.087876 0.218498 -0.374153
v -0.208169 0.218498 -0.320063
v -0.302709 0.218498 -0.228092
v -0.360090 0.218498 -0.109333
v -0.373393 0.218497 0.021889
v -0.341014 0.218497 0.149749
v -0.266857 0.218497 0.258822
v -0.166289 0.193365 0.349248
v -0.277439 0.193366 0.269117
v -0.354479 0.193366 0.155803
v -0.388117 0.193366 0.022974
v -0.374296 0.193366 -0.113350
v -0.314684 0.193366 -0.236726
v -0.216470 0.193367 -0.332272
v -0.091500 0.193367 -0.388465
v 0.045153 0.193367 -0.398526
v 0.177005 0.193367 -0.361244
v 0.288155 0.193366 -0.281114
v 0.365195 0.193366 -0.167800
v 0.398834 0.193366 -0.034970
v 0.385013 0.193366 0.101352
v 0.325401 0.193366 0.224728
v 0.227187 0.193365 0.320276
v 0.102217 0.193365 0.376468
v -0.034436 0.193365 0.386531
vt 0.322026 0.460840
vt 0.000000 0.456784
vt 0.000901 0.404004
vt 0.322790 0.416061
vt 0.002594 0.360586
vt 0.324227 0.379223
vt 0.679238 0.652419
vt 1.000000 0.641530
vt 0.999384 0.693984
vt 0.678715 0.696924
vt 0.999169 0.749768
vt 0.678534 0.744253
vt 0.999383 0.802154
vt 0.678715 0.788699
vt 1.000000 0.844824
vt 0.679238 0.824902
vt 0.003418 0.625780
vt 0.324227 0.606633
vt 0.323404 0.648576
vt 0.002720 0.661366
vt 0.322966 0.700570
vt 0.002349 0.705479
vt 0.322966 0.756341
vt 0.002349 0.752798
vt 0.323404 0.809164
vt 0.002721 0.797615
vt 0.324227 0.852668
vt 0.003419 0.834525
vt 0.678534 0.832143
vt 0.356771 0.847924
vt 0.355537 0.800514
vt 0.677486 0.791919
vt 0.355108 0.745908
vt 0.677123 0.745589
vt 0.355537 0.690693
vt 0.677486 0.698743
vt 0.356771 0.641530
vt 0.678534 0.657031
vt 0.324227 0.587979
vt 0.002594 0.606633
vt 0.000901 0.564600
vt 0.322790 0.552316
vt 0.000000 0.512558
vt 0.322026 0.508162
vt 0.386913 0.093233
vt 0.367833 0.145653
vt 0.355108 0.143410
vt 0.375723 0.086772
vt 0.367833 0.201438
vt 0.355108 0.203682
vt 0.386912 0.253859
vt 0.375722 0.260319
vt 0.422770 0.296593
vt 0.414464 0.306490
vt 0.471081 0.324485
vt 0.466662 0.336627
vt 0.526018 0.334173
vt 0.526018 0.347093
vt 0.580956 0.324486
vt 0.585375 0.336627
vt 0.629267 0.296593
vt 0.637572 0.306491
vt 0.665125 0.253860
vt 0.676314 0.260321
vt 0.684204 0.201440
vt 0.696929 0.203683
vt 0.684205 0.145655
vt 0.696929 0.143411
vt 0.665125 0.093234
vt 0.676315 0.086774
vt 0.629267 0.050500
vt 0.637573 0.040602
vt 0.580957 0.022608
vt 0.585376 0.010466
vt 0.526020 0.012920
vt 0.526020 0.000000
vt 0.471082 0.022607
vt 0.466663 0.010466
vt 0.422771 0.050499
vt 0.414466 0.040601
vt 0.913966 0.571184
vt 0.913493 0.514111
vt 0.924822 0.515132
vt 0.925313 0.574423
vt 0.914856 0.618186
vt 0.926237 0.623253
vt 0.898822 0.179171
vt 0.900155 0.230396
vt 0.888454 0.234876
vt 0.887068 0.181661
vt 0.898359 0.120173
vt 0.886587 0.120369
vt 0.898822 0.060517
vt 0.887068 0.058394
vt 0.900155 0.007398
vt 0.888454 0.003211
vt 0.884757 0.296439
vt 0.886587 0.341853
vt 0.874911 0.347093
vt 0.873010 0.299914
vt 0.883784 0.240210
vt 0.871998 0.241499
vt 0.883784 0.179949
vt 0.871998 0.178896
vt 0.884757 0.122925
vt 0.873009 0.119654
vt 0.886587 0.076014
vt 0.874910 0.070920
vt 0.900386 0.066681
vt 0.901052 0.010008
vt 0.912420 0.006690
vt 0.911728 0.065566
vt 0.900155 0.126953
vt 0.911487 0.128180
vt 0.900386 0.183554
vt 0.911728 0.186981
vt 0.901052 0.229656
vt 0.912420 0.234876
vt 0.913966 0.397678
vt 0.914855 0.352360
vt 0.926237 0.347093
vt 0.925313 0.394172
vt 0.913493 0.453853
vt 0.924822 0.452531
vt 0.779282 0.347093
vt 0.825893 0.355312
vt 0.866882 0.378977
vt 0.897305 0.415233
vt 0.913493 0.459709
vt 0.913493 0.507039
vt 0.897305 0.551514
vt 0.866883 0.587771
vt 0.825894 0.611436
vt 0.779282 0.619655
vt 0.732672 0.611436
vt 0.691683 0.587772
vt 0.661260 0.551514
vt 0.645072 0.507039
vt 0.645072 0.459709
vt 0.661259 0.415234
vt 0.691683 0.378976
vt 0.732671 0.355312
usemtl Poubelle
s off
f 1/1 2/2 3/3 4/4
f 4/4 3/3 5/5 6/6
f 6/7 5/8 7/9 8/10
f 8/10 7/9 9/11 10/12
f 10/12 9/11 11/13 12/14
f 12/14 11/13 13/15 14/16
f 14/17 13/18 15/19 16/20
f 16/20 15/19 17/21 18/22
f 18/22 17/21 19/23 20/24
f 20/24 19/23 21/25 22/26
f 22/26 21/25 23/27 24/28
f 24/29 23/30 25/31 26/32
f 26/32 25/31 27/33 28/34
f 28/34 27/33 29/35 30/36
f 30/36 29/35 31/37 32/38
f 32/39 31/40 33/41 34/42
f 34/42 33/41 35/43 36/44
f 2/2 1/1 36/44 35/43
f 2/45 35/46 37/47 38/48
f 35/46 33/49 39/50 37/47
f 33/49 31/51 40/52 39/50
f 31/51 29/53 41/54 40/52
f 29/53 27/55 42/56 41/54
f 27/55 25/57 43/58 42/56
f 25/57 23/59 44/60 43/58
f 23/59 21/61 45/62 44/60
f 21/61 19/63 46/64 45/62
f 19/63 17/65 47/66 46/64
f 17/65 15/67 48/68 47/66
f 15/67 13/69 49/70 48/68
f 13/69 11/71 50/72 49/70
f 11/71 9/73 51/74 50/72
f 9/73 7/75 52/76 51/74
f 7/75 5/77 53/78 52/76
f 5/77 3/79 54/80 53/78
f 3/79 2/45 38/48 54/80
f 54/81 38/82 55/83 56/84
f 53/85 54/81 56/84 57/86
f 52/87 53/88 57/89 58/90
f 51/91 52/87 58/90 59/92
f 50/93 51/91 59/92 60/94
f 49/95 50/93 60/94 61/96
f 48/97 49/98 61/99 62/100
f 47/101 48/97 62/100 63/102
f 46/103 47/101 63/102 64/104
f 45/105 46/103 64/104 65/106
f 44/107 45/105 65/106 66/108
f 43/109 44/110 66/111 67/112
f 42/113 43/109 67/112 68/114
f 41/115 42/113 68/114 69/116
f 40/117 41/115 69/116 70/118
f 39/119 40/120 70/121 71/122
f 37/123 39/119 71/122 72/124
f 38/82 37/123 72/124 55/83
f 20/125 22/126 24/127 26/128 28/129 30/130 32/131 34/132 36/133 1/134 4/135 6/136 8/137 10/138 12/139 14/140 16/141 18/142

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

88
homedecor/trash_cans.lua Normal file
View File

@ -0,0 +1,88 @@
local S = homedecor.gettext
local tg_cbox = {
type = "fixed",
fixed = { -0.35, -0.5, -0.35, 0.35, 0.4, 0.35 }
}
homedecor.register("trash_can_green", {
drawtype = "mesh",
mesh = "homedecor_trash_can_green.obj",
tiles = { "homedecor_pool_table_baize.png" },
inventory_image = "homedecor_trash_can_green_inv.png",
description = "Trash Can (green)",
groups = {snappy=3},
selection_box = tg_cbox,
collision_box = tg_cbox,
on_punch = function(pos, node, puncher, pointed_thing)
minetest.set_node(pos, {name = "homedecor:trash_can_green_open", param2 = node.param2})
end
})
homedecor.register("trash_can_green_open", {
drawtype = "mesh",
mesh = "homedecor_trash_can_green_open.obj",
tiles = { "homedecor_pool_table_baize.png" },
groups = {snappy=3, not_in_creative_inventory=1},
selection_box = tg_cbox,
collision_box = tg_cbox,
on_punch = function(pos, node, puncher, pointed_thing)
minetest.set_node(pos, {name = "homedecor:trash_can_green", param2 = node.param2})
end,
on_construct = function(pos)
local meta = minetest.get_meta(pos)
meta:set_string("formspec",
"size[8,9]".. default.gui_bg .. default.gui_bg_img .. default.gui_slots ..
"button[2.5,3.8;3,1;empty;Empty Trash]"..
"list[current_name;main;2.5,0.5;3,3;]"..
"list[current_player;main;0,5;8,4;]")
meta:set_string("infotext", "Trash Can")
local inv = meta:get_inventory()
inv:set_size("main", 8*4)
end,
can_dig = function(pos,player)
local meta = minetest.get_meta(pos)
local inv = meta:get_inventory()
return inv:is_empty("main")
end,
on_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
minetest.log("action", S("%s moves stuff in %s at %s"):format(
player:get_player_name(), name, minetest.pos_to_string(pos)
))
end,
on_metadata_inventory_put = function(pos, listname, index, stack, player)
minetest.log("action", S("%s moves stuff in %s at %s"):format(
player:get_player_name(), name, minetest.pos_to_string(pos)
))
end,
on_metadata_inventory_take = function(pos, listname, index, stack, player)
minetest.log("action", S("%s takes stuff in %s at %s"):format(
player:get_player_name(), name, minetest.pos_to_string(pos)
))
end,
on_receive_fields = function(pos, formname, fields, sender)
if fields.empty then
local meta = minetest.get_meta(pos)
local inv = meta:get_inventory()
inv:set_list("main", {})
minetest.sound_play("homedecor_trash_all", {to_player=sender:get_player_name(), gain = 1.0})
end
end,
})
local trash_cbox = {
type = "fixed",
fixed = { -0.25, -0.5, -0.25, 0.25, 0.125, 0.25 }
}
homedecor.register("trash_can", {
drawtype = "mesh",
mesh = "homedecor_trash_can.obj",
tiles = { "homedecor_trash_can.png" },
inventory_image = "homedecor_trash_can_inv.png",
description = "Trash Can (small)",
groups = {snappy=3},
selection_box = trash_cbox,
collision_box = trash_cbox,
})