From 75e82662dc5108420f4ff133d0979cf14c322df1 Mon Sep 17 00:00:00 2001 From: UnRealDinnerbone Date: Sat, 12 Oct 2024 19:19:43 -0500 Subject: [PATCH] Add icecream --- data/lt/advancement/icecream.json | 18 ++++++++++++++++++ data/lt/function/effects/icecream.mcfunction | 2 ++ 2 files changed, 20 insertions(+) create mode 100644 data/lt/advancement/icecream.json create mode 100644 data/lt/function/effects/icecream.mcfunction diff --git a/data/lt/advancement/icecream.json b/data/lt/advancement/icecream.json new file mode 100644 index 00000000..c4299983 --- /dev/null +++ b/data/lt/advancement/icecream.json @@ -0,0 +1,18 @@ +{ + "criteria": { + "requirement": { + "trigger": "minecraft:consume_item", + "conditions": { + "item": { + "items": "minecraft:player", + "components": { + "minecraft:custom_data": "{IceCream:1b}" + } + } + } + } + }, + "rewards": { + "function": "lt:effects/icecream" + } +} diff --git a/data/lt/function/effects/icecream.mcfunction b/data/lt/function/effects/icecream.mcfunction new file mode 100644 index 00000000..823700f2 --- /dev/null +++ b/data/lt/function/effects/icecream.mcfunction @@ -0,0 +1,2 @@ +execute anchored eyes run particle minecraft:block{block_state:"minecraft:ice"} ~ ~2 ~ 0.25 0.25 0.25 0.001 50 +advancement revoke @s only lt:icecream \ No newline at end of file