-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
41 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
tellraw @p "欢迎使用地图画自动加载器数据包!" | ||
tellraw @p {"translate": "要开始加载地图画,请先将地图文件置于%s文件夹中","with":[{"text":".minecraft/saves/<你的存档名>/data","color": "#FF5C38"}]} | ||
tellraw @p {"translate":"然后运行函数%s在你所在位置生成一个地图创建者(按住shift+点击此消息可自动填充指令)","with":[{"text": "/function imgloader:gencreator","color": "#FF5C38","underlined": true}],"insertion":"/function imgloader:gencreator"} | ||
tellraw @p {"translate":"然后运行函数%s在你所在位置生成一个地图创建者","with":[{"text": "/function imgloader:gencreator","color": "#FF5C38","underlined": true}],"insertion":"/function imgloader:gencreator"} | ||
#tellraw @p "输入/trigger ifshowhelp set 0以不再自动显示教程,/trigger ifshowhelp set 1重新激活教程。" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
scoreboard objectives add ifshowhelp trigger | ||
scoreboard objectives add ifshowhelper dummy | ||
scoreboard objectives add initial trigger "initial" | ||
scoreboard players set @e[tag=creator] initial 0 | ||
scoreboard players enable @p initial | ||
tellraw @p {"text": "欢迎使用自动地图画加载器数据包!"} | ||
tellraw @p {"translate":"现在输入%s以显示教程(提示:所有指令可通过shift+左键点击以自动填充)","with":[{"text":"/function imgloader:help","color":"#FF5C38"}],"insertion": "/function imgloader:help"} | ||
tellraw @p {"translate":"或输入%s以显示指令参考手册","with":[{"text":"/function imgloader:reference","color":"#FF5C38"}],"insertion": "/function imgloader:reference"} | ||
#tellraw @p {"translate":"%s以重新激活教程。","with":[{"text":"/trigger ifshowhelp set 0","color":"#FF5C38"}]} | ||
#execute store success score @e[tag=creator,limit=1] ifshowhelp run scoreboard players get @e[tag=creator,limit=1] ifshowhelper | ||
#scoreboard players enable @p ifshowhelp | ||
execute if score @p ifshowhelper matches 0..0 run function imgloader:help |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
tellraw @p "**********************指令参考手册***********************" | ||
tellraw @p {"translate":"%s 显示分步教程。","with":[{"text":"/function imgloader:help","color":"#FF5C38"}],"insertion": "/function imgloader:help"} | ||
tellraw @p {"translate":"%s 在你所处位置按照你面朝方向生成一个地图创建者。","with":[{"text":"/function imgloader:gencreator","color":"#FF5C38"}],"insertion": "/function gencreator"} | ||
tellraw @p {"translate":"%s 在你所处位置生成一个用于设置参数的箱子。","with":[{"text":"/function imgloader:genargctr","color":"#FF5C38"}],"insertion": "/function imgloader:genargctr"} | ||
tellraw @p {"translate":"%s 开始渲染(从编号为0的地图开始)。","with":[{"text":"/function imgloader:gen","color":"#FF5C38"}],"insertion": "/function imgloader:gen"} | ||
tellraw @p {"translate":"%s 开始渲染(从自定义编号的地图开始)。","with":[{"text":"/function imgloader:gennotwith0","color":"#FF5C38"}],"insertion": "/function imgloader:gennotwith0"} | ||
tellraw @p {"translate":"%s 指定地图起始编号。","with":[{"text":"/trigger initial <起始编号>","color":"#FF5C38"}],"insertion": "/trigger initial <起始编号>"} | ||
tellraw @p {"translate":"%s 重新加载数据包。","with":[{"text":"/reload","color":"#FF5C38"}],"insertion": "/reload"} | ||
tellraw @p "**********************************************************" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
execute at @e[tag=creator,limit=1] store result entity @e[type=item_frame,limit=1,sort=nearest] Item.tag.map int 1 run scoreboard players get @e[tag=creator,limit=1] tptimes | ||
execute at @e[tag=creator,limit=1] store result entity @e[type=item_frame,limit=1,sort=nearest] Item.tag.map int 1 run scoreboard players get @e[tag=creator,limit=1] initial | ||
execute at @e[tag=creator,limit=1] run tp @e[tag=creator] ^-1 ^ ^ | ||
execute as @e[tag=creator,limit=1] at @e[tag=creator,limit=1] run scoreboard players add @e[tag=creator,limit=1] tptimes 1 | ||
execute as @e[tag=creator,limit=1] at @e[tag=creator,limit=1] run scoreboard players add @e[tag=creator,limit=1] initial 1 | ||
execute if score @e[tag=creator,limit=1] line matches 2..100 run function imgloader:refreshlineremove | ||
execute if score @e[tag=creator,limit=1] line matches 1..1 run function imgloader:refreshrowremove |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"replace": false, | ||
"values":[ | ||
"imgloader:help" | ||
"imgloader:load" | ||
] | ||
} |