forked from feather-rs/feather
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtool.ron
More file actions
77 lines (76 loc) · 1.76 KB
/
tool.ron
File metadata and controls
77 lines (76 loc) · 1.76 KB
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
65
66
67
68
69
70
71
72
73
74
75
76
77
Multiple([
Enum(
name: "tool",
variants: [
"axe",
"pickaxe",
"shovel",
"hoe",
"sword",
"shears",
]
),
Enum(
name: "tool_material",
variants: [
"wooden",
"stone",
"iron",
"diamond",
"golden",
]
),
Property(
on: "item",
name: "tool",
type: Custom("tool"),
mapping: {
"${tool_material}_${tool}": "${tool}",
"shears": "shears",
}
),
Property(
on: "item",
name: "tool_material",
type: Custom("tool_material"),
mapping: {
"${tool_material}_${tool}": "${tool_material}",
}
),
Property(
on: "tool_material",
name: "dig_multiplier",
type: f64,
mapping: {
"wooden": 2,
"stone": 4,
"iron": 6,
"diamond": 8,
"golden": 12,
}
),
// Defines the "best tool" to mine a block.
Property(
on: "block_kind",
name: "best_tool",
type: Custom("tool"),
mapping: {
// TODO
["dirt", "grass_block", "sand", "red_sand"]: "shovel",
["stone", "cobblestone", "sandstone"]: "pickaxe",
},
),
// Defines whether the best tool is required
// for the block to be harvested. If this is
// true, and a player is not holding
// the needed tool, then progress is slowed
// and the block yields no drops.
Property(
on: "block_kind",
name: "best_tool_required",
type: bool,
mapping: {
["cobblestone", "stone", "sandstone"]: true,
},
),
])