Pavel_S wrote:brightness of drop doesn`t change at night.
ndjdjksisksk wrote:this does not work for somereason it doesn't load and now none of my mods in the folder are loading
Cooper97 wrote:I have tried this mod under 0.4.7, but it does not drop the nodes. Is that a bug or is it possible that it is an incompatibility to other mods?
wenLiangcan wrote:Failed to load and run under 0.4.7
http://i.imgur.com/491Jwx2.png?2
PilzAdam wrote:wenLiangcan wrote:Failed to load and run under 0.4.7
https://forum.minetest.net/viewtopic.php?id=6450
Rename the mod to "item_drop".
bject:get_luaentity().physical_state = true
object:get_luaentity().physical_state = true
onpon4 wrote:There's a typo in line 58 of init.lua: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
bject:get_luaentity().physical_state = true
It should be: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
object:get_luaentity().physical_state = true
This causes the server to crash if it gets to that point.
ak399g wrote:If I only want the pickup function, not the drop on death or other stuff, which lines do I comment out?
MirceaKitsune wrote:I checked out the latest GIT version, and found an obvious problem: You can no longer drop items, because they're picked back up immediately after leaving your inventory. Can some sort of cooldown be added, so items can only be picked up a second after their entity appears in-world?
Calinou wrote:The version included in Carbone fixed this by removing the y offset in the check and reducing the collection radius, no timer is required: http://paste.ubuntu.com/7649710/
Uncomment the lines at the bottom to enable nodes dropping when they're dug.
MirceaKitsune wrote:I checked out the latest GIT version, and found an obvious problem: You can no longer drop items, because they're picked back up immediately after leaving your inventory. Can some sort of cooldown be added, so items can only be picked up a second after their entity appears in-world?
LionsDen wrote:I created the code for a trash can and posted it at the following link. It is not a mod, you need to create the depends.txt file and assign an image to use and put it into a mod directory. Looking at some other "simple" mods will show you what is needed. Here is the link:
viewtopic.php?p=148244#p148244
ivalin wrote:Is this mod still being developed ? On minetest 0.4.10 can't drop items from my inventory or with " Q " button .
minetest.register_globalstep(function(dtime)
for _,player in ipairs(minetest.get_connected_players()) do
if player:get_hp() > 0 or not minetest.setting_getbool("enable_damage") then
local pos = player:getpos()
pos.y = pos.y+0.5
local inv = player:get_inventory()
local ctrl = player:get_player_control()
if ctrl.up or ctrl.left or ctrl.right then
for _,object in ipairs(minetest.env:get_objects_inside_radius(pos, 2)) do
local en = object:get_luaentity()
if not object:is_player() and en and en.name == "__builtin:item" then
if inv and
inv:room_for_item("main", ItemStack(en.itemstring)) then
inv:add_item("main", ItemStack(en.itemstring))
if en.itemstring ~= "" then
minetest.sound_play("item_drop_pickup", {
to_player = player:get_player_name(),
gain = 0.4,
})
end
en.itemstring = ""
object:remove()
end
end
end
end
end
end
end)
Users browsing this forum: No registered users and 27 guests