Skip to content

Commit a1cdf02

Browse files
committed
docs: adjust README and pic
1 parent 1a7a0ff commit a1cdf02

File tree

3 files changed

+11
-14
lines changed

3 files changed

+11
-14
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<img align="right" src="https://raw.githubusercontent.com/MinecraftCommands/syntax-mcfunction/main/logo.png?sanitize=true" alt="logo" width="76">
1+
<img align="right" src="https://raw.githubusercontent.com/MinecraftCommands/syntax-mcfunction/main/icon.png?sanitize=true" alt="logo" width="76">
22

33
# syntax-mcfunction
44

imgs/demo.png

62.5 KB
Loading

tests/demo.mcfunction

+10-13
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
1-
#> Example of base game commands
2-
# Normal comment
3-
# @annotation $scoreboard.variable #resource:location
1+
#> Block Comment Header
2+
# Normal comment - Example of some commands
3+
# @returns $my.variable at #resource:location
44

5-
# Example of base game commands
6-
# Normal comment
7-
# @annotation $scoreboard.variable #resource:location
5+
# However, we don't get @returns highlighting here
86

97
setblock ~ ~ ~ minecraft:dispenser[facing=up]{Items: [{id: "minecraft:diamond", Count: 1}]}
108
$data modify storage $(id) $(path) set value "with random $(string1) stuff $(string2)"
119
tellraw @a [{"text": "hello", "color": "blue"}, {"text": "world", "color": "blue"}]
12-
random roll 2..45
10+
random roll 2..45 # neat command they added
11+
give @a #minecraft:log # plenty of wood to capture
1312

1413
# multiline
15-
execute \
16-
as @a \
17-
at @s \
18-
if entity @s[distance=..0.6] \
14+
execute \
15+
as @a \
16+
at @s \
17+
if entity @s[distance=..0.6] \
1918
say bar
2019

2120
# bolt
@@ -46,5 +45,3 @@ LOOP(1000,i){
4645
execute summon marker run mud:register {command:"function tests:a/target",setup:""}
4746
summon marker 0 0 0 {Tags:["a.i"]}
4847
}
49-
50-

0 commit comments

Comments
 (0)