[Poll] Trash mod for default game

trukoil
Member
 
Posts: 145
Joined: Mon Oct 22, 2012 03:32

[Poll] Trash mod for default game

by trukoil » Thu Jan 24, 2013 21:46

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 can
http://forum.minetest.net/viewtopic.php?id=2765

Trashcan trash can
http://forum.minetest.net/viewtopic.php?id=4339

The 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.
I don't always sign a post
but when i do, i dig.
 

User avatar
kaeza
Member
 
Posts: 2141
Joined: Thu Oct 18, 2012 05:00
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza

by kaeza » Thu Jan 24, 2013 22:06

Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!

Check out my stuff! | Donations greatly appreciated! PayPal | BTC: 1DFZAa5VtNG7Levux4oP6BuUzr1e83pJK2
 

trukoil
Member
 
Posts: 145
Joined: Mon Oct 22, 2012 03:32

by trukoil » Thu Jan 24, 2013 22:28

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.
Last edited by trukoil on Thu Jan 24, 2013 22:30, edited 1 time in total.
I don't always sign a post
but when i do, i dig.
 

User avatar
Menche
Member
 
Posts: 994
Joined: Sat Jul 02, 2011 00:43

by Menche » Thu Jan 24, 2013 22:49

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.
An innocent kitten dies every time you top-post.
I am on the Voxelands Forums more often than here.
Try Voxelands (forked from Minetest 0.3) by darkrose
 

User avatar
nomohakon
Member
 
Posts: 207
Joined: Fri Aug 10, 2012 16:34
IRC: nomohakon
In-game: nomohakon

by nomohakon » Thu Jan 24, 2013 22:51

None of the above, more like trash from creative, but in block.
"To learn who rules over you, simply find out who you are not allowed to criticize." - Voltaire
"Knowledge, like air, is vital to life. Like air, no one should be denied it." - Alan Moore, V for Vendetta
- - -
"To never die... and to conquer all, that is winning." ―Illyria
 

4aiman
Member
 
Posts: 1208
Joined: Mon Jul 30, 2012 05:47

by 4aiman » Fri Jan 25, 2013 11:52

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.
Last edited by 4aiman on Fri Jan 25, 2013 11:52, edited 1 time in total.
 

User avatar
PilzAdam
Member
 
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam

by PilzAdam » Fri Jan 25, 2013 14:15

There is a trash field in the creative mode.
There is also the /pulverize command.
 

User avatar
0gb.us
Member
 
Posts: 841
Joined: Sun Sep 16, 2012 01:55

by 0gb.us » Sun Jan 27, 2013 01:17

/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.
Last edited by 0gb.us on Sun Jan 27, 2013 01:18, edited 1 time in total.
 

MEGASPARK
Member
 
Posts: 60
Joined: Mon Dec 17, 2012 02:34

by MEGASPARK » Sun Jan 27, 2013 07:33

i vote for trashcantrashcan
I Live When I Dig
 

User avatar
jojoa1997
Member
 
Posts: 2890
Joined: Thu Dec 13, 2012 05:11

by jojoa1997 » Sun Jan 27, 2013 13:08

if we do have a trashcan then just maake the trash box go in survival also
Coding;
1X coding
3X debugging
12X tweaking to be just right
 

User avatar
0gb.us
Member
 
Posts: 841
Joined: Sun Sep 16, 2012 01:55

by 0gb.us » Mon Jan 28, 2013 05:13

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.
 

trukoil
Member
 
Posts: 145
Joined: Mon Oct 22, 2012 03:32

by trukoil » Mon Jan 28, 2013 10:16

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.
I don't always sign a post
but when i do, i dig.
 

User avatar
xavier108
Member
 
Posts: 227
Joined: Sat Nov 24, 2012 06:05
IRC: Ezlif

by xavier108 » Sat Feb 02, 2013 02:21

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
Ezlif :D
 

prestidigitator
Member
 
Posts: 632
Joined: Thu Feb 21, 2013 23:54

by prestidigitator » Fri Feb 22, 2013 01:41

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....
 

prestidigitator
Member
 
Posts: 632
Joined: Thu Feb 21, 2013 23:54

by prestidigitator » Fri Feb 22, 2013 08:44

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....
 

prestidigitator
Member
 
Posts: 632
Joined: Thu Feb 21, 2013 23:54

by prestidigitator » Fri Feb 22, 2013 09:12

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
Last edited by prestidigitator on Fri Feb 22, 2013 22:00, edited 1 time in total.
 


Return to Minetest Features

Who is online

Users browsing this forum: No registered users and 3 guests

cron