-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
64 lines (57 loc) · 2.1 KB
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# DON'T CUSTOM HERE{{{
import mcpi.block as block
from mcpi.vec3 import Vec3
# }}}
margin = 5 # mergin from player position to center of objects' spawing place
padding = Vec3(3, 0, 0) # padding between each objects
line_vec = Vec3(0, 3, 0) # vector to define which axis should objects follow
MAX_OBJECT_PER_LINE = 3 # How much objects could be in one line?
# File related {{{
# List of set of filetypes and extension list
# If the extension is not defined here,
# that file will be set to 'unknown'
filetype_list = {"": "text",
".txt": "text",
".md": "markdown",
".markdown": "markdown",
".sh": "shellscript",
".py": "python",
".rb": "ruby",
".config": "config",
".cfg": "config",
".html": "html",
".css": "css",
".js": "javascript",
".c": "c",
".cpp": "c++",
".exe": "windows-executable",
".swp": "vim-swap-file",
".swo": "vim-swap-file",
".pyc": "python-cache"
}
# Define what block should be used for each filetype
#
# I know the name 'schema' doesn't suit to this usage,
# so I'll change it later
#
# Feature: want to separate this to something like 'texture pack'
# so that people can share their own configure like vim's
# colorscheme
schema = {"file": block.WOOL,
"dir": block.IRON_BLOCK,
"text": block.WOOL_WHITE,
"markdown": block.WOOL_ORANGE,
"python": block.WOOL_YELLOW,
"shellscript": block.WOOL_LIGHT_BLUE,
"ruby": block.WOOL_MAGENTA,
"config": block.SANDSTONE,
"html": block.WOOL_LIME,
"css": block.WOOL_YELLOW,
"javascript": block.WOOL_CYAN,
"c": block.WOOL_RED,
"cpp": block.WOOD_PLANKS,
"windows-executable": block.DIRT_PODZOL,
"vim-swap-file": block.WOOD_PLANKS_ACACIA,
"python-cache": block.WOOD_PLANKS_ACACIA,
"unknown": block.DIRT}
# }}}