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