[Mod] Minecraft-Like Node drop
I made a drop of broken node in LUA changing the builtin.lua code.

Video: http://www.youtube.com/watch?v=qwSybmvqINo&feature=youtu.be
Q:How can i import this mod?
1.On builtin.lua,Search "minetest.node_dig" (without "",LOL)
2.Where:
3.Take:
4.Then Sostitute that with:
5.This could be the result
Q:Is there a stay-alone version?
Yes,get it there: http://www.mediafire.com/?hlsoc988x7f5qf4
Not so performable And it's bugged with nodes like stone and dirt with glass because they didn't give the same block,so he doesn't remove.I have no time for fix that,but if somebody wants to fix it's welcome.

Video: http://www.youtube.com/watch?v=qwSybmvqINo&feature=youtu.be
Q:How can i import this mod?
1.On builtin.lua,Search "minetest.node_dig" (without "",LOL)
2.Where:
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
-- Add dropped items
local _, dropped_item
for _, dropped_item in ipairs(drops) do
digger:get_inventory():add_item("main", dropped_item)
end
3.Take:
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)
4.Then Sostitute that with:
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);
5.This could be the 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
-- Add dropped items
local _, dropped_item
for _, dropped_item in ipairs(drops) do
--digger:get_inventory():add_item("main", dropped_item)
--Original Code's Backup
minetest.env:add_item(pos,dropped_item);
end
Q:Is there a stay-alone version?
Yes,get it there: http://www.mediafire.com/?hlsoc988x7f5qf4
Not so performable And it's bugged with nodes like stone and dirt with glass because they didn't give the same block,so he doesn't remove.I have no time for fix that,but if somebody wants to fix it's welcome.