Change clock texture usage and implement conversion
|
@ -22,7 +22,11 @@ local random_frame = math.random(0, clock_frames-1)
|
|||
-- Image of all possible faces
|
||||
watch.images = {}
|
||||
for frame=0, clock_frames-1 do
|
||||
table.insert(watch.images, "mcl_clock_clock.png^[verticalframe:"..clock_frames..":"..frame)
|
||||
local sframe = tostring(frame)
|
||||
if string.len(sframe) == 1 then
|
||||
sframe = "0" .. sframe
|
||||
end
|
||||
table.insert(watch.images, "mcl_clock_clock_"..sframe..".png")
|
||||
end
|
||||
|
||||
local function round(num)
|
||||
|
|
Before Width: | Height: | Size: 876 B |
BIN
mods/ITEMS/mcl_clock/textures/mcl_clock_clock_00.png
Normal file
After Width: | Height: | Size: 218 B |
BIN
mods/ITEMS/mcl_clock/textures/mcl_clock_clock_01.png
Normal file
After Width: | Height: | Size: 218 B |
BIN
mods/ITEMS/mcl_clock/textures/mcl_clock_clock_02.png
Normal file
After Width: | Height: | Size: 219 B |
BIN
mods/ITEMS/mcl_clock/textures/mcl_clock_clock_03.png
Normal file
After Width: | Height: | Size: 222 B |
BIN
mods/ITEMS/mcl_clock/textures/mcl_clock_clock_04.png
Normal file
After Width: | Height: | Size: 222 B |
BIN
mods/ITEMS/mcl_clock/textures/mcl_clock_clock_05.png
Normal file
After Width: | Height: | Size: 226 B |
BIN
mods/ITEMS/mcl_clock/textures/mcl_clock_clock_06.png
Normal file
After Width: | Height: | Size: 219 B |
BIN
mods/ITEMS/mcl_clock/textures/mcl_clock_clock_07.png
Normal file
After Width: | Height: | Size: 239 B |
BIN
mods/ITEMS/mcl_clock/textures/mcl_clock_clock_08.png
Normal file
After Width: | Height: | Size: 226 B |
BIN
mods/ITEMS/mcl_clock/textures/mcl_clock_clock_09.png
Normal file
After Width: | Height: | Size: 224 B |
BIN
mods/ITEMS/mcl_clock/textures/mcl_clock_clock_10.png
Normal file
After Width: | Height: | Size: 236 B |
BIN
mods/ITEMS/mcl_clock/textures/mcl_clock_clock_11.png
Normal file
After Width: | Height: | Size: 240 B |
BIN
mods/ITEMS/mcl_clock/textures/mcl_clock_clock_12.png
Normal file
After Width: | Height: | Size: 227 B |
BIN
mods/ITEMS/mcl_clock/textures/mcl_clock_clock_13.png
Normal file
After Width: | Height: | Size: 234 B |
BIN
mods/ITEMS/mcl_clock/textures/mcl_clock_clock_14.png
Normal file
After Width: | Height: | Size: 241 B |
BIN
mods/ITEMS/mcl_clock/textures/mcl_clock_clock_15.png
Normal file
After Width: | Height: | Size: 244 B |
BIN
mods/ITEMS/mcl_clock/textures/mcl_clock_clock_16.png
Normal file
After Width: | Height: | Size: 244 B |
BIN
mods/ITEMS/mcl_clock/textures/mcl_clock_clock_17.png
Normal file
After Width: | Height: | Size: 234 B |
BIN
mods/ITEMS/mcl_clock/textures/mcl_clock_clock_18.png
Normal file
After Width: | Height: | Size: 241 B |
BIN
mods/ITEMS/mcl_clock/textures/mcl_clock_clock_19.png
Normal file
After Width: | Height: | Size: 232 B |
BIN
mods/ITEMS/mcl_clock/textures/mcl_clock_clock_20.png
Normal file
After Width: | Height: | Size: 233 B |
BIN
mods/ITEMS/mcl_clock/textures/mcl_clock_clock_21.png
Normal file
After Width: | Height: | Size: 229 B |
BIN
mods/ITEMS/mcl_clock/textures/mcl_clock_clock_22.png
Normal file
After Width: | Height: | Size: 240 B |
BIN
mods/ITEMS/mcl_clock/textures/mcl_clock_clock_23.png
Normal file
After Width: | Height: | Size: 239 B |
BIN
mods/ITEMS/mcl_clock/textures/mcl_clock_clock_24.png
Normal file
After Width: | Height: | Size: 226 B |
BIN
mods/ITEMS/mcl_clock/textures/mcl_clock_clock_25.png
Normal file
After Width: | Height: | Size: 225 B |
BIN
mods/ITEMS/mcl_clock/textures/mcl_clock_clock_26.png
Normal file
After Width: | Height: | Size: 222 B |
BIN
mods/ITEMS/mcl_clock/textures/mcl_clock_clock_27.png
Normal file
After Width: | Height: | Size: 222 B |
BIN
mods/ITEMS/mcl_clock/textures/mcl_clock_clock_28.png
Normal file
After Width: | Height: | Size: 218 B |
BIN
mods/ITEMS/mcl_clock/textures/mcl_clock_clock_29.png
Normal file
After Width: | Height: | Size: 220 B |
BIN
mods/ITEMS/mcl_clock/textures/mcl_clock_clock_30.png
Normal file
After Width: | Height: | Size: 223 B |
BIN
mods/ITEMS/mcl_clock/textures/mcl_clock_clock_31.png
Normal file
After Width: | Height: | Size: 218 B |
BIN
mods/ITEMS/mcl_clock/textures/mcl_clock_clock_32.png
Normal file
After Width: | Height: | Size: 218 B |
BIN
mods/ITEMS/mcl_clock/textures/mcl_clock_clock_33.png
Normal file
After Width: | Height: | Size: 218 B |
BIN
mods/ITEMS/mcl_clock/textures/mcl_clock_clock_34.png
Normal file
After Width: | Height: | Size: 220 B |
BIN
mods/ITEMS/mcl_clock/textures/mcl_clock_clock_35.png
Normal file
After Width: | Height: | Size: 223 B |
BIN
mods/ITEMS/mcl_clock/textures/mcl_clock_clock_36.png
Normal file
After Width: | Height: | Size: 222 B |
BIN
mods/ITEMS/mcl_clock/textures/mcl_clock_clock_37.png
Normal file
After Width: | Height: | Size: 226 B |
BIN
mods/ITEMS/mcl_clock/textures/mcl_clock_clock_38.png
Normal file
After Width: | Height: | Size: 220 B |
BIN
mods/ITEMS/mcl_clock/textures/mcl_clock_clock_39.png
Normal file
After Width: | Height: | Size: 226 B |
BIN
mods/ITEMS/mcl_clock/textures/mcl_clock_clock_40.png
Normal file
After Width: | Height: | Size: 236 B |
BIN
mods/ITEMS/mcl_clock/textures/mcl_clock_clock_41.png
Normal file
After Width: | Height: | Size: 224 B |
BIN
mods/ITEMS/mcl_clock/textures/mcl_clock_clock_42.png
Normal file
After Width: | Height: | Size: 224 B |
BIN
mods/ITEMS/mcl_clock/textures/mcl_clock_clock_43.png
Normal file
After Width: | Height: | Size: 240 B |
BIN
mods/ITEMS/mcl_clock/textures/mcl_clock_clock_44.png
Normal file
After Width: | Height: | Size: 228 B |
BIN
mods/ITEMS/mcl_clock/textures/mcl_clock_clock_45.png
Normal file
After Width: | Height: | Size: 247 B |
BIN
mods/ITEMS/mcl_clock/textures/mcl_clock_clock_46.png
Normal file
After Width: | Height: | Size: 240 B |
BIN
mods/ITEMS/mcl_clock/textures/mcl_clock_clock_47.png
Normal file
After Width: | Height: | Size: 227 B |
BIN
mods/ITEMS/mcl_clock/textures/mcl_clock_clock_48.png
Normal file
After Width: | Height: | Size: 243 B |
BIN
mods/ITEMS/mcl_clock/textures/mcl_clock_clock_49.png
Normal file
After Width: | Height: | Size: 226 B |
BIN
mods/ITEMS/mcl_clock/textures/mcl_clock_clock_50.png
Normal file
After Width: | Height: | Size: 226 B |
BIN
mods/ITEMS/mcl_clock/textures/mcl_clock_clock_51.png
Normal file
After Width: | Height: | Size: 244 B |
BIN
mods/ITEMS/mcl_clock/textures/mcl_clock_clock_52.png
Normal file
After Width: | Height: | Size: 224 B |
BIN
mods/ITEMS/mcl_clock/textures/mcl_clock_clock_53.png
Normal file
After Width: | Height: | Size: 224 B |
BIN
mods/ITEMS/mcl_clock/textures/mcl_clock_clock_54.png
Normal file
After Width: | Height: | Size: 223 B |
BIN
mods/ITEMS/mcl_clock/textures/mcl_clock_clock_55.png
Normal file
After Width: | Height: | Size: 223 B |
BIN
mods/ITEMS/mcl_clock/textures/mcl_clock_clock_56.png
Normal file
After Width: | Height: | Size: 225 B |
BIN
mods/ITEMS/mcl_clock/textures/mcl_clock_clock_57.png
Normal file
After Width: | Height: | Size: 226 B |
BIN
mods/ITEMS/mcl_clock/textures/mcl_clock_clock_58.png
Normal file
After Width: | Height: | Size: 221 B |
BIN
mods/ITEMS/mcl_clock/textures/mcl_clock_clock_59.png
Normal file
After Width: | Height: | Size: 223 B |
BIN
mods/ITEMS/mcl_clock/textures/mcl_clock_clock_60.png
Normal file
After Width: | Height: | Size: 219 B |
BIN
mods/ITEMS/mcl_clock/textures/mcl_clock_clock_61.png
Normal file
After Width: | Height: | Size: 225 B |
BIN
mods/ITEMS/mcl_clock/textures/mcl_clock_clock_62.png
Normal file
After Width: | Height: | Size: 224 B |
BIN
mods/ITEMS/mcl_clock/textures/mcl_clock_clock_63.png
Normal file
After Width: | Height: | Size: 218 B |