Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
fennifith committed Jun 16, 2022
0 parents commit 4014717
Show file tree
Hide file tree
Showing 15 changed files with 59 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.zip
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
say Hello, world!
say Try typing "/function fennifith:animals/spawn" in the chat to summon some animals!
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
summon cow
summon sheep
summon pig
summon goat
summon llama
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# say Hello, world!
3 changes: 3 additions & 0 deletions 1-introduction/data/minecraft/tags/functions/load.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"values": ["fennifith:animals/load"]
}
3 changes: 3 additions & 0 deletions 1-introduction/data/minecraft/tags/functions/tick.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"values": ["fennifith:animals/tick"]
}
6 changes: 6 additions & 0 deletions 1-introduction/pack.mcmeta
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"pack": {
"pack_format": 10,
"description": "Spawns a bunch of animals around the player"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
say Hello, world!
say This datapack makes the game scream when you jump!
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
summon cow
summon sheep
summon pig
summon goat
summon llama
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# at each player position...
# | if the block below is air...
# | | print "aaaaa" in the chat!
execute at @a if block ~ ~-1 ~ air run say "aaaaaaaaaaaaaaaaaaaa!"

# Uncomment this line for obnoxious screaming sounds!
# execute as @a at @s if block ~ ~-1 ~ air run playsound minecraft:entity.goat.screaming.ambient neutral @s
3 changes: 3 additions & 0 deletions 2-command-syntax/data/minecraft/tags/functions/load.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"values": ["fennifith:animals/load"]
}
3 changes: 3 additions & 0 deletions 2-command-syntax/data/minecraft/tags/functions/tick.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"values": ["fennifith:animals/tick"]
}
6 changes: 6 additions & 0 deletions 2-command-syntax/pack.mcmeta
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"pack": {
"pack_format": 10,
"description": "Spawns a bunch of animals around the player"
}
}
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This repository is intended to follow along with the Unicorn Utterances series on [Minecraft Data Pack Programming](https://unicorn-utterances.com/collections/minecraft-data-packs).
11 changes: 11 additions & 0 deletions mkzips.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

# Clear existing zip files
rm ./*.zip

# Create new zips from directories
for dir in */; do
pushd $dir;
zip -r ../"${dir/\//}.zip" ./*;
popd;
done

0 comments on commit 4014717

Please sign in to comment.