Page 1 of 1

[Mod] Trash Can [trashcan]

PostPosted: Sat Jan 05, 2013 15:41
by Hybrid Dog
Image



This mod allows players to remove objects.
Only drop them onto this trashcan and punch it.
Sound and texture made by Ragnarok
Download: zip, tar.gz
Depends: default
License: WTFPL
github: trashcan

Crafting:
Image

Block:
Image

PostPosted: Sun Jan 06, 2013 01:24
by Rancon
Hybrid Dog wrote:With this mod you can delete objects.
Only place them on this block and punch the trashcan.
Download: trashcan [13.01]
Depends: default
License: WTFPL
Image
Image

I like this!

PostPosted: Sun Jan 06, 2013 01:46
by GloopMaster
Should use a lava bucket in the recipe

PostPosted: Sat Jan 19, 2013 00:49
by Ragnarok
@Hybrid Dog
I slightly modified your mod - everything is WTFPL:

http://speedy.sh/DFsty/trashcan.zip

I hope it will be useful =)

PostPosted: Fri Feb 22, 2013 22:01
by prestidigitator
I just posted this to a trash can feature discussion thread. It might be nice to include it as an option in your mod, and use your inventory trash can texture as a label. It gives an inventory-based trash can slot.

WTFPL
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
local trashInv = minetest.create_detached_inventory(
                    "trash",
                    {
                       on_put = function(inv, toList, toIndex, stack, player)
                          inv:set_stack(toList, toIndex, ItemStack(nil))
                       end
                    })
trashInv:set_size("main", 1)

minetest.register_on_joinplayer(
   function(player)
      player:set_inventory_formspec(
         "size[10,7.5]"..
         "list[current_player;main;0,3.5;8,4;]"..
         "list[current_player;craft;3,0;3,3;]"..
         "list[current_player;craftpreview;7,1;1,1;]"..
         "label[9,3.5;Trash]"..
         "list[detached:trash;main;9,4.5;1,1;]"
         )
   end)

PostPosted: Mon Mar 25, 2013 13:41
by Zedm0n
Will this go back in my inventory when I am done with or does it stay in the world? If it stays in the world it kinda defeats the purpose of not litterrng.


Zedm0n

PostPosted: Tue Apr 02, 2013 23:55
by 12Me21

PostPosted: Tue Apr 02, 2013 23:57
by Likwid H-Craft
12Me21 wrote:I made it round:
http://ompldr.org/vaHl6ZA/trashcan.zip

Wow nice :)

And it goes great for my, map I making I will not say it called or what it is.

Since you made it round I guess I have to make it have a door like trapdoor to fit, on the top to make it like open/close.

PostPosted: Thu Jun 20, 2013 13:43
by Evergreen
Goshdangit Hybrid dog, I just made a trash can mod not knowing this mod's existence. Still good anyway. :P Although I hope to differ from this mod in a couple ways; by adding multiple trash cans.

PostPosted: Thu Jun 20, 2013 13:58
by Evergreen
One of them is out of date and was made quite a while ago. The other one doesn't have a very good texture/model, so I guess it's mine versus yours. :P

PostPosted: Thu Dec 17, 2015 17:37
by Mossmanikin
Hybrid Dog wrote:there are at least 4 trashcan mods now


I'd say the ability to choose from different versions is a good thing.

The textures of this one are nice.

Re: [closed] Trash Can [trashcan]

PostPosted: Thu Dec 17, 2015 17:39
by Hybrid Dog
Updated: that unused sound file is removed and Readme.txt is updated