From f93771342ff29a2d1fe9cf855be26b0b5b62704e Mon Sep 17 00:00:00 2001 From: gk98s <89647115+gk98s@users.noreply.github.com> Date: Thu, 23 Sep 2021 17:05:15 +0300 Subject: [PATCH] Updated the pack completely --- data/drugs/functions/drugused.mcfunction | 2 ++ data/drugs/functions/load.mcfunction | 1 + data/drugs/functions/tick.mcfunction | 1 + data/minecraft/tags/functions/load.json | 6 ++++++ data/minecraft/tags/functions/tick.json | 6 ++++++ pack.mcmeta | 7 +++++++ 6 files changed, 23 insertions(+) create mode 100644 data/drugs/functions/drugused.mcfunction create mode 100644 data/drugs/functions/load.mcfunction create mode 100644 data/drugs/functions/tick.mcfunction create mode 100644 data/minecraft/tags/functions/load.json create mode 100644 data/minecraft/tags/functions/tick.json create mode 100644 pack.mcmeta diff --git a/data/drugs/functions/drugused.mcfunction b/data/drugs/functions/drugused.mcfunction new file mode 100644 index 0000000..0b2a7fc --- /dev/null +++ b/data/drugs/functions/drugused.mcfunction @@ -0,0 +1,2 @@ +scoreboard players set @s DrugUsed 0 +execute as @a[nbt={SelectedItem:{id:"minecraft:carrot_on_a_stick",tag:{display:{Name:'{"text":"Drug"}'}}}}] run effect give @s nausea 90 1 true \ No newline at end of file diff --git a/data/drugs/functions/load.mcfunction b/data/drugs/functions/load.mcfunction new file mode 100644 index 0000000..5b78c0e --- /dev/null +++ b/data/drugs/functions/load.mcfunction @@ -0,0 +1 @@ +tellraw @a {"text": "The pack is still under development. The drugs are not obtainable in survival mode for now. You can still obtain them by the command on my github. Also feel free to post your suggestions at github/gk98s.", "color": "#0000FF"} \ No newline at end of file diff --git a/data/drugs/functions/tick.mcfunction b/data/drugs/functions/tick.mcfunction new file mode 100644 index 0000000..0b4b782 --- /dev/null +++ b/data/drugs/functions/tick.mcfunction @@ -0,0 +1 @@ +execute as @e[scores={DrugUsed=1..}] run function drugs:drugused \ No newline at end of file diff --git a/data/minecraft/tags/functions/load.json b/data/minecraft/tags/functions/load.json new file mode 100644 index 0000000..e13047e --- /dev/null +++ b/data/minecraft/tags/functions/load.json @@ -0,0 +1,6 @@ +{ + "values": [ + "drugs:load" + ] + +} \ No newline at end of file diff --git a/data/minecraft/tags/functions/tick.json b/data/minecraft/tags/functions/tick.json new file mode 100644 index 0000000..fd0cd32 --- /dev/null +++ b/data/minecraft/tags/functions/tick.json @@ -0,0 +1,6 @@ +{ + "values": [ + "drugs:tick" + ] + +} \ No newline at end of file diff --git a/pack.mcmeta b/pack.mcmeta new file mode 100644 index 0000000..4cd76b0 --- /dev/null +++ b/pack.mcmeta @@ -0,0 +1,7 @@ + { + "pack": { + "pack_format": 7, + "description": "Still in development." + } + } + \ No newline at end of file