Skip to content

Commit b98ca09

Browse files
committed
update for 1.21
1 parent 92d2bde commit b98ca09

File tree

14 files changed

+104
-172
lines changed

14 files changed

+104
-172
lines changed

README.md

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,34 @@
11
# ScoreToHealth
2-
(Minecraft 1.16+) Very Easy Way to Sync Player's Health with Score
2+
3+
Very Easy Way to Sync Player's Health with Score
34
プレイヤーの体力をスコアで設定できます!
45

5-
# 動作確認済みバージョン / Verified minecraft versions
6+
## 動作確認済みバージョン / Verified minecraft versions
67

7-
- 1.19
8-
- 1.18
9-
- 1.17
8+
- 1.21
109

1110
以下のバージョンは右のReleasesからどうぞ。
1211
For the following versions, please check Releases on the right.
1312

13+
- 1.20.x
14+
- 1.19.x
15+
- 1.18.x
16+
- 1.17.x
1417
- 1.16.x
1518

16-
# 使い方/How To Use
19+
## 使い方/How To Use
1720

1821
プレイヤーのScoreToHealthに、目的のHealthの100倍をセットするだけ!
1922
Simply set the player's ScoreToHealth to 100 times the desired Health.
2023

21-
)12.34にしたい場合
24+
12.34にしたい場合
2225
/scoreboard players set @s ScoreToHealth 1234
2326

24-
# 連絡はこちら/Contact
27+
## 連絡はこちら/Contact
2528

26-
https://twitter.com/AiAkaishi
29+
<https://twitter.com/AiAkaishi>
2730

28-
# やさしいライセンス
31+
## やさしいライセンス
2932

3033
1. 著作権表示してね
3134
このデータパックのファイルから著作権表示消したりしたらダメなだけで
@@ -36,6 +39,6 @@ https://twitter.com/AiAkaishi
3639
4. 無料です
3740
個人でも商用でも!
3841

39-
# LICENSE
42+
## LICENSE
4043

4144
This datapack is released under the Apache License, Version 2.0, see LICENSE.
File renamed without changes.

data/score_to_health/functions/check.mcfunction renamed to data/score_to_health/function/check.mcfunction

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,4 @@ execute store result score #_ ScoreToHealth run attribute @s minecraft:generic.m
1616
execute store result score #__ ScoreToHealth run data get entity @s Health 100
1717
scoreboard players operation #__ ScoreToHealth -= #_ ScoreToHealth
1818

19-
execute if score #__ ScoreToHealth matches ..0 unless entity @s[tag=ScoreToHealth.AntiGlitch.UnsafeTick] run function score_to_health:modify
20-
tag @s remove ScoreToHealth.AntiGlitch.UnsafeTick
21-
execute if score #__ ScoreToHealth matches 1.. run function score_to_health:anti_glitch/protect
19+
execute if score #__ ScoreToHealth matches ..0 run function score_to_health:modify
File renamed without changes.

data/score_to_health/functions/modify.mcfunction renamed to data/score_to_health/function/modify.mcfunction

Lines changed: 47 additions & 49 deletions
Large diffs are not rendered by default.
File renamed without changes.
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Copyright © 2020 赤石愛
2+
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
attribute @s minecraft:generic.max_health modifier remove score_to_health:17
16+
attribute @s minecraft:generic.max_health modifier remove score_to_health:16
17+
attribute @s minecraft:generic.max_health modifier remove score_to_health:15
18+
attribute @s minecraft:generic.max_health modifier remove score_to_health:14
19+
attribute @s minecraft:generic.max_health modifier remove score_to_health:13
20+
attribute @s minecraft:generic.max_health modifier remove score_to_health:12
21+
attribute @s minecraft:generic.max_health modifier remove score_to_health:11
22+
attribute @s minecraft:generic.max_health modifier remove score_to_health:10
23+
attribute @s minecraft:generic.max_health modifier remove score_to_health:0f
24+
attribute @s minecraft:generic.max_health modifier remove score_to_health:0e
25+
attribute @s minecraft:generic.max_health modifier remove score_to_health:0d
26+
attribute @s minecraft:generic.max_health modifier remove score_to_health:0c
27+
attribute @s minecraft:generic.max_health modifier remove score_to_health:0b
28+
attribute @s minecraft:generic.max_health modifier remove score_to_health:0a
29+
attribute @s minecraft:generic.max_health modifier remove score_to_health:09
30+
attribute @s minecraft:generic.max_health modifier remove score_to_health:08
31+
attribute @s minecraft:generic.max_health modifier remove score_to_health:07
32+
attribute @s minecraft:generic.max_health modifier remove score_to_health:06
33+
attribute @s minecraft:generic.max_health modifier remove score_to_health:05
34+
attribute @s minecraft:generic.max_health modifier remove score_to_health:04
35+
attribute @s minecraft:generic.max_health modifier remove score_to_health:03
36+
attribute @s minecraft:generic.max_health modifier remove score_to_health:02
37+
attribute @s minecraft:generic.max_health modifier remove score_to_health:01
38+
attribute @s minecraft:generic.max_health modifier remove score_to_health:00
39+
40+
tag @s remove ScoreToHealth.Modified
41+
tag @s add ScoreToHealth.Return

data/score_to_health/functions/anti_glitch/modify.mcfunction

Lines changed: 0 additions & 15 deletions
This file was deleted.

data/score_to_health/functions/anti_glitch/protect.mcfunction

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)