Dropping mined blocks to ground

lkjoel
Member
 
Posts: 778
Joined: Wed Feb 29, 2012 19:27

Dropping mined blocks to ground

by lkjoel » Sun Mar 18, 2012 21:08

I'm working on a patch that will drop mined blocks to the ground instead of automatically getting them in your inventory. As a side effect of this, whenever you walk on a Q'd item or tool, you will automatically get it (instead of having to click on it).
My mods: The Nether | Doctor Who (WIP)

I have quit minetest ... again. I am heavily unimpressed by both the game and the community.
 

User avatar
sfan5
Member
 
Posts: 3636
Joined: Wed Aug 24, 2011 09:44
GitHub: sfan5
IRC: sfan5

by sfan5 » Mon Mar 19, 2012 06:25

+5
Mods: Mesecons | WorldEdit | Nuke
Minetest builds for Windows (32-bit & 64-bit)
 

User avatar
jordan4ibanez
Member
 
Posts: 1865
Joined: Tue Sep 27, 2011 18:44
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez

by jordan4ibanez » Mon Mar 19, 2012 12:00

THANK YOU! i've been begging everyone to make this :D will you make them into entities instead of those weird "dropped items" ??
Last edited by jordan4ibanez on Mon Mar 19, 2012 12:00, edited 1 time in total.
If you can think it, you can make it.
 

Utilisatrice
Member
 
Posts: 103
Joined: Thu Feb 16, 2012 18:04

by Utilisatrice » Mon Mar 19, 2012 13:20

Great idea !
 

User avatar
sfan5
Member
 
Posts: 3636
Joined: Wed Aug 24, 2011 09:44
GitHub: sfan5
IRC: sfan5

by sfan5 » Mon Mar 19, 2012 13:33

+1 again :D
Mods: Mesecons | WorldEdit | Nuke
Minetest builds for Windows (32-bit & 64-bit)
 

User avatar
Death Dealer
Member
 
Posts: 1379
Joined: Wed Feb 15, 2012 18:46

by Death Dealer » Mon Mar 19, 2012 14:10

dunamite mining:D for real
Keep calm and code python^_^
 

lkjoel
Member
 
Posts: 778
Joined: Wed Feb 29, 2012 19:27

by lkjoel » Mon Mar 19, 2012 16:54

jordan4ibanez wrote:THANK YOU! i've been begging everyone to make this :D will you make them into entities instead of those weird "dropped items" ??

Entities? How would I do that?
My mods: The Nether | Doctor Who (WIP)

I have quit minetest ... again. I am heavily unimpressed by both the game and the community.
 

randomproof
Member
 
Posts: 214
Joined: Thu Nov 17, 2011 06:31

by randomproof » Tue Mar 20, 2012 20:01

lkjoel wrote:
jordan4ibanez wrote:THANK YOU! i've been begging everyone to make this :D will you make them into entities instead of those weird "dropped items" ??

Entities? How would I do that?

Those "dropped items" are entities. I think you mean LUAentities, but to do what with them? I guess you could use the on_step function to look for a player standing on the entity and automatically add it to the player's inventory as they walk over them. Or have them destroy themselves if they fall into lava (or the like).
 

lkjoel
Member
 
Posts: 778
Joined: Wed Feb 29, 2012 19:27

by lkjoel » Fri Mar 23, 2012 17:36

ok thanks
My mods: The Nether | Doctor Who (WIP)

I have quit minetest ... again. I am heavily unimpressed by both the game and the community.
 

lkjoel
Member
 
Posts: 778
Joined: Wed Feb 29, 2012 19:27

by lkjoel » Sun Mar 25, 2012 00:21

Very simple patch (for now). The speed of dropping is so slow, and you cannot walk over it to pick it up, but it works.
Patch builtin.lua with this:
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
348c348,349
<                       digger:get_inventory():add_item("main", dropped_item)
---
>                       -- digger:get_inventory():add_item("main", dropped_item)
>                       minetest.item_drop(dropped_item, digger, pos)
My mods: The Nether | Doctor Who (WIP)

I have quit minetest ... again. I am heavily unimpressed by both the game and the community.
 

User avatar
LorenzoVulcan
Member
 
Posts: 437
Joined: Mon Mar 12, 2012 06:46

by LorenzoVulcan » Sun Apr 01, 2012 07:59

I've already made this,Without automatic take.
Developer of the BlockForge 2# Project!
Official thread: http://minetest.net/forum/viewtopic.php?pid=54290#p54290
 

User avatar
neko259
Member
 
Posts: 769
Joined: Sun Jun 19, 2011 06:51

by neko259 » Sun Apr 01, 2012 08:45

What is this for? Just to make 'like in minecraft'? Getting blocks to the inventory is more comfortable.
Bitcoin donations: 18r66dJmUjwTmWRTFnorpGMzs8d4B8jzbw
 

User avatar
LorenzoVulcan
Member
 
Posts: 437
Joined: Mon Mar 12, 2012 06:46

by LorenzoVulcan » Sun Apr 01, 2012 08:50

neko259 wrote:What is this for? Just to make 'like in minecraft'? Getting blocks to the inventory is more comfortable.

This can prevent many stacks of useless blocks like cobble stone.
Developer of the BlockForge 2# Project!
Official thread: http://minetest.net/forum/viewtopic.php?pid=54290#p54290
 

User avatar
Death Dealer
Member
 
Posts: 1379
Joined: Wed Feb 15, 2012 18:46

by Death Dealer » Sun Apr 01, 2012 17:36

This would work well with a level/attribute system like a block has so much chance to drop more than one block per node based on your level. I hope there some progress being made with this:D
Keep calm and code python^_^
 

User avatar
JoseMing
Member
 
Posts: 107
Joined: Tue Feb 21, 2012 00:01

by JoseMing » Sun Apr 01, 2012 19:11

good idea +2
Nothing is impossible, Only you need you mind to create... and Sorry for my Bad English :D
Add me on remobo as JoseGarcia
 

User avatar
neko259
Member
 
Posts: 769
Joined: Sun Jun 19, 2011 06:51

by neko259 » Sun Apr 01, 2012 19:26

LorenzoVulcan wrote:
neko259 wrote:What is this for? Just to make 'like in minecraft'? Getting blocks to the inventory is more comfortable.

This can prevent many stacks of useless blocks like cobble stone.

And make useless hundreds of entities lying on the ground and causing lags.
Bitcoin donations: 18r66dJmUjwTmWRTFnorpGMzs8d4B8jzbw
 

User avatar
JoseMing
Member
 
Posts: 107
Joined: Tue Feb 21, 2012 00:01

by JoseMing » Sun Apr 01, 2012 19:34

lkjoel wrote:Very simple patch (for now). The speed of dropping is so slow, and you cannot walk over it to pick it up, but it works.
Patch builtin.lua with this:
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
348c348,349
<                       digger:get_inventory():add_item("main", dropped_item)
---
>                       -- digger:get_inventory():add_item("main", dropped_item)
>                       minetest.item_drop(dropped_item, digger, pos)

how you put that?
Nothing is impossible, Only you need you mind to create... and Sorry for my Bad English :D
Add me on remobo as JoseGarcia
 

lkjoel
Member
 
Posts: 778
Joined: Wed Feb 29, 2012 19:27

by lkjoel » Mon Apr 02, 2012 02:33

Actually, I do NOT use this, and the walking over to pick up is hard for me (I'm working on the modding app, so I'm probably not going to do this). Anyways, to patch it, you can either use the patch utility, or you can just look for lines 348 and 349, and replace what is shown (< is to delete, and > is to add). The line numbers might differ slightly, but it should be around that.
My mods: The Nether | Doctor Who (WIP)

I have quit minetest ... again. I am heavily unimpressed by both the game and the community.
 

lkjoel
Member
 
Posts: 778
Joined: Wed Feb 29, 2012 19:27

by lkjoel » Mon Apr 02, 2012 02:41

btw, I was talking about patching builtin.lua (minetestdatadir/builtin/builtin.lua), just in case you didn't know which file to patch ;)
My mods: The Nether | Doctor Who (WIP)

I have quit minetest ... again. I am heavily unimpressed by both the game and the community.
 

lkjoel
Member
 
Posts: 778
Joined: Wed Feb 29, 2012 19:27

by lkjoel » Mon Apr 02, 2012 16:02

Actually, ignore what I said about not being able to finish it. Thanks celeron55 for this: https://github.com/celeron55/minetest/commit/f0e7da8a63d858f3b511872cf41cde0eaff6585d
My mods: The Nether | Doctor Who (WIP)

I have quit minetest ... again. I am heavily unimpressed by both the game and the community.
 

User avatar
Death Dealer
Member
 
Posts: 1379
Joined: Wed Feb 15, 2012 18:46

by Death Dealer » Mon Apr 02, 2012 16:04

how exactly do i use this stuff?
Keep calm and code python^_^
 

User avatar
Calinou
Member
 
Posts: 3124
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou

by Calinou » Mon Apr 02, 2012 16:44

You'll have to compile the git version, or wait for the next windows version if you can't compile it.
 

User avatar
Death Dealer
Member
 
Posts: 1379
Joined: Wed Feb 15, 2012 18:46

by Death Dealer » Mon Apr 02, 2012 16:50

Calinou wrote:You'll have to compile the git version, or wait for the next windows version if you can't compile it.

ok thanks.
Keep calm and code python^_^
 


Return to Minetest Engine

Who is online

Users browsing this forum: No registered users and 8 guests

cron