[Patch] Node dropping on the terrain [0.4.3]

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

[Patch] Node dropping on the terrain [0.4.3]

by LorenzoVulcan » Fri Nov 30, 2012 20:11

This is an updated version of the Minecraft-like Node drop: http://minetest.net/forum/viewtopic.php?id=1342

Stand-alone Mod version: http://hidemyass.com/files/MEBBR/

1.Open builtin>item.lua
2.Search out 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
function minetest.handle_node_drops(pos, drops, digger)
    -- Add dropped items to object's inventory
    if digger:get_inventory() then
        local _, dropped_item
        for _, dropped_item in ipairs(drops) do
            digger:get_inventory():add_item("main", dropped_item)
        end
    end
end


Delete:
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
            digger:get_inventory():add_item("main", dropped_item)

And write:
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
            minetest.env:add_item(pos,dropped_item)


Final result:
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
function minetest.handle_node_drops(pos, drops, digger)
    -- Add dropped items to object's inventory
    if digger:get_inventory() then
        local _, dropped_item
        for _, dropped_item in ipairs(drops) do
            minetest.env:add_item(pos,dropped_item)
        end
    end
end


Demo video (Deprecated build): http://www.youtube.com/watch?v=qwSybmvqINo&feature=youtu.be

Enjoy!
Last edited by LorenzoVulcan on Sat Dec 01, 2012 12:14, edited 1 time in total.
Developer of the BlockForge 2# Project!
Official thread: http://minetest.net/forum/viewtopic.php?pid=54290#p54290
 

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

by PilzAdam » Fri Nov 30, 2012 20:42

 

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

by LorenzoVulcan » Fri Nov 30, 2012 21:07


I made the original patch before that.
Developer of the BlockForge 2# Project!
Official thread: http://minetest.net/forum/viewtopic.php?pid=54290#p54290
 

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

by PilzAdam » Fri Nov 30, 2012 21:08

LorenzoVulcan wrote:

I made the original patch before that.

This is not a competition :-P
 

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

by LorenzoVulcan » Fri Nov 30, 2012 21:10

PilzAdam wrote:
LorenzoVulcan wrote:

I made the original patch before that.

This is not a competition :-P

I know,but why you linked your thread?
Developer of the BlockForge 2# Project!
Official thread: http://minetest.net/forum/viewtopic.php?pid=54290#p54290
 

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

by PilzAdam » Fri Nov 30, 2012 21:23

LorenzoVulcan wrote:
PilzAdam wrote:
LorenzoVulcan wrote:I made the original patch before that.

This is not a competition :-P

I know,but why you linked your thread?

Maybe some users want picking up of items too.
 

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

by LorenzoVulcan » Sat Dec 01, 2012 12:15

Added stand-alone version.
Developer of the BlockForge 2# Project!
Official thread: http://minetest.net/forum/viewtopic.php?pid=54290#p54290
 

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

by jordan4ibanez » Sat Dec 01, 2012 20:26

I WROTE THE ORIGUNUL VERSION, just kidding, what exactly does this do?
If you can think it, you can make it.
 


Return to WIP Mods

Who is online

Users browsing this forum: No registered users and 8 guests

cron