How do you disable the bones mod in minetest 4.7?

User avatar
Hybrid Dog
Member
Posts: 2836
Joined: Thu Nov 01, 2012 12:46
GitHub: HybridDog

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

by Hybrid Dog » Post

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 » Post

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: 2836
Joined: Thu Nov 01, 2012 12:46
GitHub: HybridDog

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

by Hybrid Dog » Post

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 » Post

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: 2836
Joined: Thu Nov 01, 2012 12:46
GitHub: HybridDog

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

by Hybrid Dog » Post

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.

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

Post Reply

Who is online

Users browsing this forum: No registered users and 18 guests