-
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
6 changed files
with
52 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"values": [ | ||
"visiblemarkers:enable" | ||
] | ||
} |
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,5 @@ | ||
{ | ||
"values": [ | ||
"visiblemarkers:run" | ||
] | ||
} |
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,8 @@ | ||
# Reset scores. | ||
# This datapack was created by Ceddix! https://www.planetminecraft.com/member/ceddix/ | ||
|
||
# remove score | ||
scoreboard objectives remove showmarker | ||
|
||
# debug outputs | ||
tellraw @s ["",{"text":"DEBUG: ","bold":true,"color":"gold"},{"text":"All scores were removed!","color":"yellow"}] |
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,13 @@ | ||
# Executed with every reload. | ||
# This datapack was created by Ceddix! https://www.planetminecraft.com/member/ceddix/ | ||
|
||
# add required score | ||
scoreboard objectives add showmarker trigger | ||
|
||
# enable trigger | ||
tag @s add showmarker | ||
execute if entity @p[tag=showmarker] as @a[tag=showmarker] run scoreboard players enable @s showmarker | ||
|
||
# debug outputs | ||
tellraw @s ["",{"text":"DEBUG: ","bold":true,"color":"gold"},{"text":"Datapack was reloaded!","color":"yellow"}] | ||
tellraw @a[tag=showmarker] ["",{"text":"VisibleMarkers","bold":true,"color":"gold"},{"text":" » ","color":"dark_gray"},{"text":"You have the permissions to see markers. Use","color":"gray"},{"text":" /trigger showmarker ","color":"yellow"},{"text":"to have them displayed to you!","color":"gray"}] |
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,15 @@ | ||
# Runs every tick. | ||
# This datapack was created by Ceddix! https://www.planetminecraft.com/member/ceddix/ | ||
|
||
# enable showmarker | ||
execute if entity @p[scores={showmarker=1}] as @a[scores={showmarker=1}] run tellraw @s ["",{"text":"VisibleMarkers","bold":true,"color":"gold"},{"text":" » ","color":"dark_gray"},{"text":"All markers within your radius are now visible!","color":"green"}] | ||
execute if entity @p[scores={showmarker=1}] as @a[scores={showmarker=1}] run scoreboard players enable @s showmarker | ||
execute if entity @p[scores={showmarker=1}] as @a[scores={showmarker=1}] run scoreboard players set @s showmarker 2 | ||
|
||
# marker display | ||
execute if entity @p[scores={showmarker=2}] as @e[type=minecraft:marker] at @s if entity @p[distance=..20,scores={showmarker=2}] run particle minecraft:barrier ~ ~ ~ 0 0 0 1 1 normal @a[distance=..20,scores={showmarker=2}] | ||
|
||
# disable display | ||
execute if entity @p[scores={showmarker=3..}] as @a[scores={showmarker=3..}] run tellraw @s ["",{"text":"VisibleMarkers","bold":true,"color":"gold"},{"text":" » ","color":"dark_gray"},{"text":"Markers are no longer displayed.","color":"red"}] | ||
execute if entity @p[scores={showmarker=3..}] as @a[scores={showmarker=3..}] run scoreboard players enable @s showmarker | ||
execute if entity @p[scores={showmarker=3..}] as @a[scores={showmarker=3..}] run scoreboard players set @s showmarker 0 |
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,6 @@ | ||
{ | ||
"pack": { | ||
"pack_format": 7, | ||
"description": "Display Marker entities. Useful and simple datapack for mapmakers. Datapack by Ceddix!" | ||
} | ||
} |