SegFault22 wrote:why limit stacks to 64? That's too Minecraft-like and slow.
Its because its a mod from my game MiniTest wich copies Minecraft like features. I will change it in this mod.
SegFault22 wrote:why limit stacks to 64? That's too Minecraft-like and slow.
13:31:34: ERROR[main]: ServerError: LuaError: error: .../.minetest/mods/minetest/item_drop/init.lua:92: attempt to index a nil value
local item = minetest.env:add_item(pos, oldnode)
if item ~= nil then
... do the stuff you had
end
craft "mod:item" 1
if string.find(oldnode.name, " ") ~= nil then
oldnode.name = oldnode.name:gsub('"',""):gsub("craft ",""):gsub("item ",""):gsub("node ","")
leo_rockway wrote:I saw in the minitest thread that you were asking for a better sound for this. How about this one? http://opengameart.org/content/cork
PilzAdam wrote:leo_rockway wrote:I saw in the minitest thread that you were asking for a better sound for this. How about this one? http://opengameart.org/content/cork
License? WTFPL would be best.
Melkor wrote:I've been testing this mod and looks great, but I would like to comment on a few things:
3. if you put a node over an dropped item, it stays there, inside of the node, what should happen is that the item must look for the nearest air node to pop up.
(damn you google translator!)
cornernote wrote:Melkor wrote:I've been testing this mod and looks great, but I would like to comment on a few things:
3. if you put a node over an dropped item, it stays there, inside of the node, what should happen is that the item must look for the nearest air node to pop up.
(damn you google translator!)
I think lava should destroy it. Perhaps placing any block will destroy it? What does MC do?
cornernote wrote:anything functionally different? or just a different way of writing the code?
Echo wrote:In 0.4.3 there's a new function:
minetest.handle_node_drops(pos, drops, digger)
It could be used to optimize your mod.
I think celeron added this because of the popularity of your mod :-)
Vincentius_Maximus wrote:Did you make the sounds from scratch?
restcoser wrote:I changed the mod for me to have a gain of 0.4, seems much better, could it be modified in the original as well?
Mito551 wrote:excuse me, what part of code does the dig-drop part and what part does the pickup part?
PilzAdam wrote:Mito551 wrote:excuse me, what part of code does the dig-drop part and what part does the pickup part?
The globalstep function handles the pickup and the handle_node_drops() function does the drop.
Mito551 wrote:PilzAdam wrote:Mito551 wrote:excuse me, what part of code does the dig-drop part and what part does the pickup part?
The globalstep function handles the pickup and the handle_node_drops() function does the drop.
thank you! so that means if i comment out the handle_node_drops() function, i will be picking up stuff which is on the floor already, but getting it directly in my inventory if i dig a node?
Users browsing this forum: No registered users and 42 guests