Page 1 of 1
[Poll] Trash mod for default game

Posted:
Thu Jan 24, 2013 21:46
by trukoil
Hello everybody, do you think that a trash mod shoud be needed for the default game, so you can dump your unnecessary blocks?
Currently, there are two mods that do this:
Nyan trash canhttp://forum.minetest.net/viewtopic.php?id=2765Trashcan trash canhttp://forum.minetest.net/viewtopic.php?id=4339The two mod works in a different way, the first deletes the block you use to punch, the other i think you throw the item and click on the block.

Posted:
Thu Jan 24, 2013 22:06
by kaeza

Posted:
Thu Jan 24, 2013 22:28
by trukoil
Oh, didn't know that, but i can't edit the poll now.
But this poll it's made to see if a trash can mod wold be wanted or not, regarding of what mod to insert into default_game.

Posted:
Thu Jan 24, 2013 22:49
by Menche
A trashcan would make a bit more sense than the /pulverize command. Maybe /pulverize could be restricted to a certain priv and a trashcan added for use by normal players.

Posted:
Thu Jan 24, 2013 22:51
by nomohakon
None of the above, more like trash from creative, but in block.

Posted:
Fri Jan 25, 2013 11:52
by 4aiman
nomohakon wrote:None of the above, more like trash from creative, but in block.
Too much movements.
Lava is the best way to get rid of an item (but not implemented even in Lua AFAIK). The real trash can should be emptied from time to time. And where to?
So burn all the trash to ash with a furnace or by dropping that into the hot lava.

Posted:
Fri Jan 25, 2013 14:15
by PilzAdam
There is a trash field in the creative mode.
There is also the /pulverize command.

Posted:
Sun Jan 27, 2013 01:17
by 0gb.us
/pulverize is bad enough. We don't need a trash can too. Unless, perhaps, the trash can REPLACES /pulverize.
EDIT:
4aiman wrote:[Lava is the best way to get rid of an item (but not implemented even in Lua AFAIK).
I'm actually glad lava doesn't destroy items.

Posted:
Sun Jan 27, 2013 07:33
by MEGASPARK
i vote for trashcantrashcan

Posted:
Sun Jan 27, 2013 13:08
by jojoa1997
if we do have a trashcan then just maake the trash box go in survival also

Posted:
Mon Jan 28, 2013 05:13
by 0gb.us
jojoa1997 wrote:if we do have a trashcan then just maake the trash box go in survival also
Now that's an idea. It would be a lot quicker to use than a trash can node.

Posted:
Mon Jan 28, 2013 10:16
by trukoil
jojoa1997 wrote:if we do have a trashcan then just maake the trash box go in survival also
0gb.us wrote:Now that's an idea. It would be a lot quicker to use than a trash can node.
The idea is to have a trashcan in the survival game. But good idea to have a trash box in the inventory in survival mode.

Posted:
Sat Feb 02, 2013 02:21
by xavier108
I would like to so I can just use that instead of the command /pulverize.Also It can help clearing unnecesary items.Plus pulverize is bad.So i voted yes

Posted:
Fri Feb 22, 2013 01:41
by prestidigitator
How about a mod that creates a detached inventory (like creative), and the way it works is that if you add something to the topmost slot, it shifts everything down and pulverizes anything that used to be in the bottom slot? You could pull anything that hasn't been pulverized out of a trash slot at any time.
Shouldn't be too bad to do using the detached inventory and formspec API methods....

Posted:
Fri Feb 22, 2013 08:44
by prestidigitator
Oh. No. Sorry. Detached wouldn't work for that because I think it would be shared between players, right? Well, perhaps that's a good recycling program? Heh. Well, if you didn't want that I think you could just create a detached inventory with ONE space that destroys whatever is put into it....

Posted:
Fri Feb 22, 2013 09:12
by prestidigitator
This seems to do it:
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)
EDIT: Added "Trash" label. Of course, it would be nicer to include a trashcan image instead (or in addition), but that's harder to post here on the forum.
EDIT: WTFPL