Enchantment & spawnpoint
This commit is contained in:
parent
7d15429d76
commit
cfa1761593
51
data/herohost/enchantment/lobby.json
Normal file
51
data/herohost/enchantment/lobby.json
Normal file
@ -0,0 +1,51 @@
|
||||
{
|
||||
"description": {
|
||||
"translate": "hhost.minigame.enchantment.lobby.description",
|
||||
"fallback": "Lobby enhanced"
|
||||
},
|
||||
"supported_items": "#minecraft:foot_armor",
|
||||
"weight": 2,
|
||||
"max_level": 1,
|
||||
"min_cost": {
|
||||
"base": 25,
|
||||
"per_level_above_first": 25
|
||||
},
|
||||
"max_cost": {
|
||||
"base": 75,
|
||||
"per_level_above_first": 25
|
||||
},
|
||||
"anvil_cost": 4,
|
||||
"slots": [
|
||||
"feet"
|
||||
],
|
||||
"effects": {
|
||||
"attributes": [
|
||||
{
|
||||
"amount": -1,
|
||||
"attribute": "minecraft:attack_damage",
|
||||
"id": "herohost:enchantment.attack_damage",
|
||||
"operation": "add_multiplied_total"
|
||||
}
|
||||
],
|
||||
"minecraft:damage_immunity": [
|
||||
{
|
||||
"effect": {},
|
||||
"requirements": {
|
||||
"condition": "minecraft:damage_source_properties",
|
||||
"predicate": {
|
||||
"tags": [
|
||||
{
|
||||
"expected": true,
|
||||
"id": "minecraft:is_fall"
|
||||
},
|
||||
{
|
||||
"expected": false,
|
||||
"id": "minecraft:bypasses_invulnerability"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
@ -7,6 +7,7 @@ execute at @s run playsound minecraft:block.amethyst_block.step ambient @s ~ ~ ~
|
||||
# reset player
|
||||
clear @s[tag=!hc.debug]
|
||||
execute in herohost:world run tp @s[tag=!hc.debug] 5 109 50 -90 0
|
||||
execute in herohost:world run spawnpoint @s 5 109 50 -90
|
||||
|
||||
# misc
|
||||
scoreboard players enable @s +hc.warp
|
||||
|
@ -7,6 +7,7 @@ execute at @s run playsound minecraft:block.amethyst_block.step ambient @s ~ ~ ~
|
||||
# reset player
|
||||
clear @s[tag=!hc.debug]
|
||||
execute in herohost:world run tp @s[tag=!hc.debug] 5 109 50 -90 0
|
||||
execute in herohost:world run spawnpoint @s 5 109 50 -90
|
||||
|
||||
# misc
|
||||
scoreboard players enable @s +hc.warp
|
||||
|
Loading…
Reference in New Issue
Block a user