How do you disable the bones mod in minetest 4.7?

User avatar
Hybrid Dog
Member
 
Posts: 2719
Joined: Thu Nov 01, 2012 12:46

Re: How do you disable the bones mod in minetest 4.7?

by Hybrid Dog » Sun Dec 14, 2014 10:30

Krock wrote:
Code: Select all
minetest.register_abm({
   nodenames = {"bones:bones"},
   interval = 1,
   chance = 1,
   action = function(pos, node)
      local meta = minetest.get_meta(pos)
      local inv = meta:get_inventory()
      
      for i = 1, inv:get_size("main") do
         local stack = inv:get_stack("main", i)
         if not stack:is_empty() then
            minetest.add_item(pos, stk)
         end
      end
      minetest.remove_node(pos)
   end
})


Drops the stuff. Solved.

but a lot of dropped items cause lag when viewing them and items disappear after 900s, I think.

‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪
 

cornernote
Member
 
Posts: 844
Joined: Wed Jul 11, 2012 15:02

Re: How do you disable the bones mod in minetest 4.7?

by cornernote » Sun Dec 14, 2014 10:32

If you just drop it then you end up with all kinds of entities laying around. Why not just leave it in the bones?
 

User avatar
Hybrid Dog
Member
 
Posts: 2719
Joined: Thu Nov 01, 2012 12:46

Re: How do you disable the bones mod in minetest 4.7?

by Hybrid Dog » Sun Dec 14, 2014 10:36

cornernote wrote:Why not just leave it in the bones?

the bones become removed

‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪
 

cornernote
Member
 
Posts: 844
Joined: Wed Jul 11, 2012 15:02

Re: How do you disable the bones mod in minetest 4.7?

by cornernote » Sun Dec 14, 2014 10:42

Let me rephrase... If you are putting the items on the ground, then why remove the bones? I would think its a lot tidier to leave the items in the bones than on the ground.
 

User avatar
Hybrid Dog
Member
 
Posts: 2719
Joined: Thu Nov 01, 2012 12:46

Re: How do you disable the bones mod in minetest 4.7?

by Hybrid Dog » Sun Dec 14, 2014 11:40

cornernote wrote:Let me rephrase... If you are putting the items on the ground, then why remove the bones? I would think its a lot tidier to leave the items in the bones than on the ground.

Yes, but the bones wouldn't be disabled.

‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪
 

Previous

Return to General Discussion



Who is online

Users browsing this forum: No registered users and 3 guests