-
Notifications
You must be signed in to change notification settings - Fork 1
/
kits.lua
107 lines (97 loc) · 2.94 KB
/
kits.lua
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
--[[
HOW TO ADD KITS:
kitpvp.api.register_kit({
name = agreatkitname,
items = {
item(itemstr1, count, {enchantment1 = value, enchantment2 = value}),
item(itemstr2, count, {enchantment1 = value, enchantment2 = value}),
item(itemstr3, count, {enchantment1 = value, enchantment2 = value})
},
armor = leather/chain/iron/gold/diamond/netherite,
armor_enchantments = {
{enchantmentsforhelmet = value},
{enchantmentsforchestplate = value},
{enchantmentsforleggings = value},
{enchantmentsforboots = value}},
})
]]
-- To make the item converter function a bit shorter
item = kitpvp.api.get_item_obj
kitpvp.api.register_kit({
name = "tank",
items = {
item("mcl_tools:sword_iron", {sharpness = 1})
},
default_items = true,
armor = "iron",
armor_enchantments = {{protection = 1}, {protection = 1}, {protection = 1}, {protection = 1}}
})
kitpvp.api.register_kit({
name = "archer",
items = {
item("mcl_tools:sword_stone", {sharpness = 1}),
item("mcl_bows:bow", {infinity = 1}),
item("mcl_bows:arrow 1")
},
default_items = true,
armor = "gold",
armor_enchantments = {{protection = 1}, {protection = 1}, {protection = 1}, {protection = 1}}
})
kitpvp.api.register_kit({
name = "speedrunner",
items = {
item("mcl_tools:sword_stone", {sharpness = 1}),
item("mcl_potions:swiftness_2"),
},
default_items = true,
armor = "gold",
armor_enchantments = {{protection = 1}, {protection = 1}, {protection = 1}, {protection = 1}}
})
kitpvp.api.register_kit({
name = "blaze",
items = {
item("mcl_tools:sword_iron", {sharpness = 1, fire_aspect = 2})
},
default_items = true,
armor = "gold",
armor_enchantments = {{fire_protection = 5}, {fire_protection = 5}, {fire_protection = 5}, {fire_protection = 5}}
})
kitpvp.api.register_kit({
name = "elytrian",
items = {
item("mcl_tools:sword_iron", 1, {sharpness = 1}),
item("mcl_armor:elytra", 1),
item("mcl_fireworks:rocket_3", 50),
item("mcl_core:apple_gold", 1),
item("mcl_farming:bread", 20),
item("mcl_bows:bow", 1),
item("mcl_bows:arrow", 20)
},
default_items = true,
armor = "leather",
armor_enchantments = {{protection = 1}, {protection = 1}, {protection = 1}, {protection = 1}}
})
kitpvp.api.register_kit({
name = "spy",
items = {
item("mcl_tools:sword_stone", 1, {sharpness = 1}),
item("mcl_potions:invisibility", 2),
item("mcl_potions:night_vision", 2),
},
default_items = true,
armor = "iron",
armor_enchantments = {{protection = 1}, {protection = 1}, {protection = 1}, {protection = 1}}
})
kitpvp.api.register_kit({
name = "blaster",
items = {
item("mcl_tnt:tnt", 4),
item("mesecons:redstone", 64),
item("mesecons_delayer:delayer_off_1", 64),
item("mesecons_button:button_stone_off", 4),
item("mesecons_pressureplates:pressure_plate_stone", 4),
},
default_items = true,
armor = "iron",
armor_enchantments = {{protection = 1}, {protection = 3}, {protection = 2}, {protection = 1}}
})