diff --git a/init.lua b/init.lua index 9c835e6..fc6f881 100644 --- a/init.lua +++ b/init.lua @@ -113,7 +113,7 @@ local function get_compass_stack(player, stack) end local angle_dir = math.deg(dir) local angle_relative = (angle_north + angle_dir) % 360 - local compass_image = math.floor((angle_relative/30) + 0.5)%12 + local compass_image = math.floor((angle_relative/22.5) + 0.5)%16 -- create new stack with metadata copied local metadata = stack:get_meta():to_table() @@ -225,8 +225,8 @@ minetest.register_globalstep(function(dtime) end) -- register items -for i = 0, 11 do - local image = "ccompass_"..i..".png" +for i = 0, 15 do + local image = "ccompass_16_"..i..".png" local groups = {} if i > 0 then groups.not_in_creative_inventory = 1 diff --git a/textures/ccompass_16_0.png b/textures/ccompass_16_0.png new file mode 100644 index 0000000..df4f75c Binary files /dev/null and b/textures/ccompass_16_0.png differ diff --git a/textures/ccompass_16_1.png b/textures/ccompass_16_1.png new file mode 100644 index 0000000..d7cbd73 Binary files /dev/null and b/textures/ccompass_16_1.png differ diff --git a/textures/ccompass_16_10.png b/textures/ccompass_16_10.png new file mode 100644 index 0000000..cbce027 Binary files /dev/null and b/textures/ccompass_16_10.png differ diff --git a/textures/ccompass_16_11.png b/textures/ccompass_16_11.png new file mode 100644 index 0000000..000e009 Binary files /dev/null and b/textures/ccompass_16_11.png differ diff --git a/textures/ccompass_16_12.png b/textures/ccompass_16_12.png new file mode 100644 index 0000000..7e9f8ad Binary files /dev/null and b/textures/ccompass_16_12.png differ diff --git a/textures/ccompass_16_13.png b/textures/ccompass_16_13.png new file mode 100644 index 0000000..8e2654d Binary files /dev/null and b/textures/ccompass_16_13.png differ diff --git a/textures/ccompass_16_14.png b/textures/ccompass_16_14.png new file mode 100644 index 0000000..aa0faa5 Binary files /dev/null and b/textures/ccompass_16_14.png differ diff --git a/textures/ccompass_16_15.png b/textures/ccompass_16_15.png new file mode 100644 index 0000000..8396cc5 Binary files /dev/null and b/textures/ccompass_16_15.png differ diff --git a/textures/ccompass_16_2.png b/textures/ccompass_16_2.png new file mode 100644 index 0000000..ddb3a4b Binary files /dev/null and b/textures/ccompass_16_2.png differ diff --git a/textures/ccompass_16_3.png b/textures/ccompass_16_3.png new file mode 100644 index 0000000..5de2602 Binary files /dev/null and b/textures/ccompass_16_3.png differ diff --git a/textures/ccompass_16_4.png b/textures/ccompass_16_4.png new file mode 100644 index 0000000..d256b5a Binary files /dev/null and b/textures/ccompass_16_4.png differ diff --git a/textures/ccompass_16_5.png b/textures/ccompass_16_5.png new file mode 100644 index 0000000..1f09834 Binary files /dev/null and b/textures/ccompass_16_5.png differ diff --git a/textures/ccompass_16_6.png b/textures/ccompass_16_6.png new file mode 100644 index 0000000..9d247f4 Binary files /dev/null and b/textures/ccompass_16_6.png differ diff --git a/textures/ccompass_16_7.png b/textures/ccompass_16_7.png new file mode 100644 index 0000000..e7b4823 Binary files /dev/null and b/textures/ccompass_16_7.png differ diff --git a/textures/ccompass_16_8.png b/textures/ccompass_16_8.png new file mode 100644 index 0000000..0839a38 Binary files /dev/null and b/textures/ccompass_16_8.png differ diff --git a/textures/ccompass_16_9.png b/textures/ccompass_16_9.png new file mode 100644 index 0000000..046843d Binary files /dev/null and b/textures/ccompass_16_9.png differ