Adjust the item collection magnet even more

This commit is contained in:
jordan4ibanez 2021-04-02 21:57:38 -04:00
parent 1cbd3a998d
commit 0840ad98a2
1 changed files with 3 additions and 3 deletions

View File

@ -9,7 +9,7 @@ item_drop_settings.age = 1.0 --how old a dropped item (_insta_
item_drop_settings.radius_magnet = 2.0 --radius of item magnet. MUST BE LARGER THAN radius_collect! item_drop_settings.radius_magnet = 2.0 --radius of item magnet. MUST BE LARGER THAN radius_collect!
item_drop_settings.xp_radius_magnet = 7.25 --radius of xp magnet. MUST BE LARGER THAN radius_collect! item_drop_settings.xp_radius_magnet = 7.25 --radius of xp magnet. MUST BE LARGER THAN radius_collect!
item_drop_settings.radius_collect = 0.2 --radius of collection item_drop_settings.radius_collect = 0.2 --radius of collection
item_drop_settings.player_collect_height = 1.1 --added to their pos y value item_drop_settings.player_collect_height = 0.8 --added to their pos y value
item_drop_settings.collection_safety = false --do this to prevent items from flying away on laggy servers item_drop_settings.collection_safety = false --do this to prevent items from flying away on laggy servers
item_drop_settings.random_item_velocity = true --this sets random item velocity if velocity is 0 item_drop_settings.random_item_velocity = true --this sets random item velocity if velocity is 0
item_drop_settings.drop_single_item = false --if true, the drop control drops 1 item instead of the entire stack, and sneak+drop drops the stack item_drop_settings.drop_single_item = false --if true, the drop control drops 1 item instead of the entire stack, and sneak+drop drops the stack
@ -527,9 +527,9 @@ minetest.register_entity(":__builtin:item", {
else else
local pos = self.object:get_pos() local pos = self.object:get_pos()
self.object:move_to(vector.add(pos, vector.multiply(vector.subtract(self.target, pos), 0.5))) self.object:move_to(vector.add(pos, vector.multiply(vector.subtract(self.target, pos), 0.75)))
if self.collection_age >= 1 or vector.distance(pos, self.target) <= 0.06 then if self.collection_age >= 1 or vector.distance(pos, self.target) <= 0.07 then
self.object:remove() self.object:remove()
end end
end end