Enchantment & spawnpoint

This commit is contained in:
HeroChris 2024-12-10 22:57:54 +01:00
parent 7d15429d76
commit cfa1761593
3 changed files with 53 additions and 0 deletions

View 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"
}
]
}
}
}
]
}
}

View File

@ -7,6 +7,7 @@ execute at @s run playsound minecraft:block.amethyst_block.step ambient @s ~ ~ ~
# reset player # reset player
clear @s[tag=!hc.debug] 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 tp @s[tag=!hc.debug] 5 109 50 -90 0
execute in herohost:world run spawnpoint @s 5 109 50 -90
# misc # misc
scoreboard players enable @s +hc.warp scoreboard players enable @s +hc.warp

View File

@ -7,6 +7,7 @@ execute at @s run playsound minecraft:block.amethyst_block.step ambient @s ~ ~ ~
# reset player # reset player
clear @s[tag=!hc.debug] 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 tp @s[tag=!hc.debug] 5 109 50 -90 0
execute in herohost:world run spawnpoint @s 5 109 50 -90
# misc # misc
scoreboard players enable @s +hc.warp scoreboard players enable @s +hc.warp