From 45bafb3ab26e060507d3496042f9a1cdb2c1534f Mon Sep 17 00:00:00 2001 From: Racooder Date: Fri, 23 Aug 2024 13:41:47 +0200 Subject: [PATCH] Added the code --- .../_trifles/advancement/click/ender_eye.json | 17 +++++ .../advancement/click/interaction_left.json | 15 ++++ .../advancement/click/interaction_right.json | 15 ++++ .../_trifles/advancement/drink/chocolate.json | 21 ++++++ data/_trifles/advancement/drink/coffee.json | 21 ++++++ data/_trifles/advancement/drink/espresso.json | 21 ++++++ data/_trifles/advancement/drink/tea.json | 21 ++++++ .../_trifles/function/bible/handle.mcfunction | 7 ++ .../function/bible/normal/1-10.mcfunction | 13 ++++ .../function/bible/normal/11-20.mcfunction | 14 ++++ .../function/bible/normal/21-30.mcfunction | 13 ++++ .../function/bible/normal_verse.mcfunction | 7 ++ .../function/bible/special/1-10.mcfunction | 13 ++++ .../function/bible/special/11-20.mcfunction | 13 ++++ .../function/bible/special/21-30.mcfunction | 13 ++++ .../function/bible/special/31-40.mcfunction | 13 ++++ .../function/bible/special/41-50.mcfunction | 13 ++++ .../function/bible/special/51-60.mcfunction | 13 ++++ .../function/bible/special/61-70.mcfunction | 13 ++++ .../function/bible/special_verse.mcfunction | 11 +++ .../function/block_button/break.mcfunction | 5 ++ .../function/block_button/click.mcfunction | 10 +++ .../function/block_button/off.mcfunction | 9 +++ .../block_button/off_timer.mcfunction | 2 + .../block_button/spawn_interaction.mcfunction | 5 ++ .../function/block_button/succsess.mcfunction | 10 +++ .../function/block_lever/break.mcfunction | 5 ++ .../function/block_lever/click.mcfunction | 4 ++ .../function/block_lever/off.mcfunction | 9 +++ .../function/block_lever/on.mcfunction | 7 ++ .../block_lever/spawn_interaction.mcfunction | 4 ++ .../function/block_lever/succsess.mcfunction | 10 +++ .../function/click/detection.mcfunction | 4 ++ .../function/click/ender_eye.mcfunction | 0 .../_trifles/function/click/fungus.mcfunction | 3 + .../function/click/use_ender_eye.mcfunction | 2 + data/_trifles/function/craft/bible.mcfunction | 8 +++ .../_trifles/function/craft/coffee.mcfunction | 8 +++ data/_trifles/function/craft/cup.mcfunction | 6 ++ data/_trifles/function/craft/dice.mcfunction | 7 ++ .../function/craft/espresso.mcfunction | 9 +++ .../function/craft/hot_chocolate.mcfunction | 9 +++ .../craft/interaction_block.mcfunction | 7 ++ .../function/craft/megastew.mcfunction | 10 +++ .../function/craft/pocketcat.mcfunction | 9 +++ data/_trifles/function/craft/tea.mcfunction | 10 +++ .../function/dependencies/check.mcfunction | 11 +++ .../dependencies/registration.mcfunction | 4 ++ .../dice/animation/keyframes.mcfunction | 40 +++++++++++ .../function/dice/animation/loop.mcfunction | 4 ++ .../dice/animation/start_loop.mcfunction | 2 + data/_trifles/function/dice/break.mcfunction | 3 + data/_trifles/function/dice/roll.mcfunction | 5 ++ .../function/dice/roll_result.mcfunction | 10 +++ .../_trifles/function/dice/rolling.mcfunction | 3 + data/_trifles/function/dice/spawn.mcfunction | 5 ++ .../function/drink/chocolate.mcfunction | 4 ++ .../_trifles/function/drink/coffee.mcfunction | 4 ++ .../function/drink/cup_replace.mcfunction | 2 + .../function/drink/espresso.mcfunction | 4 ++ data/_trifles/function/drink/tea.mcfunction | 4 ++ .../interaction/find_attacked.mcfunction | 4 ++ .../interaction/find_targeted.mcfunction | 4 ++ .../interaction/handle_attacked.mcfunction | 5 ++ .../interaction/handle_targeted.mcfunction | 5 ++ .../function/interaction/left.mcfunction | 5 ++ .../function/interaction/right.mcfunction | 5 ++ .../interaction_block/fail.mcfunction | 3 + .../interaction_block/spawn.mcfunction | 13 ++++ data/_trifles/function/load.mcfunction | 22 ++++++ data/_trifles/function/main.mcfunction | 65 ++++++++++++++++++ .../_trifles/function/megastew/eat.mcfunction | 8 +++ .../function/megastew/fail.mcfunction | 2 + .../function/megastew/handle.mcfunction | 2 + .../function/pocketcat/alert.mcfunction | 7 ++ .../function/pocketcat/check.mcfunction | 4 ++ .../function/pocketcat/handle.mcfunction | 1 + .../function/pocketcat/toggle.mcfunction | 8 +++ data/_trifles/predicate/bible_special.json | 4 ++ data/global/advancement/trifles.json | 33 +++++++++ data/minecraft/tags/function/load.json | 5 ++ data/trifles/advancement/bible.json | 43 ++++++++++++ data/trifles/advancement/coffee.json | 40 +++++++++++ data/trifles/advancement/cup.json | 43 ++++++++++++ data/trifles/advancement/dice.json | 43 ++++++++++++ data/trifles/advancement/espresso.json | 40 +++++++++++ data/trifles/advancement/hot_beverage.json | 40 +++++++++++ data/trifles/advancement/hot_chocolate.json | 40 +++++++++++ .../advancement/interaction_block.json | 43 ++++++++++++ data/trifles/advancement/megastew.json | 43 ++++++++++++ data/trifles/advancement/pocketcat.json | 43 ++++++++++++ data/trifles/advancement/tea.json | 40 +++++++++++ data/trifles/function/get/bible.mcfunction | 1 + data/trifles/function/get/coffee.mcfunction | 1 + data/trifles/function/get/cup.mcfunction | 1 + data/trifles/function/get/dice.mcfunction | 1 + data/trifles/function/get/espresso.mcfunction | 1 + .../function/get/hot_chocolate.mcfunction | 1 + .../function/get/interaction_block.mcfunction | 1 + data/trifles/function/get/megastew.mcfunction | 1 + .../trifles/function/get/pocketcat.mcfunction | 1 + data/trifles/function/get/tea.mcfunction | 1 + pack.mcmeta | 10 +++ pack.png | Bin 0 -> 267 bytes 104 files changed, 1247 insertions(+) create mode 100644 data/_trifles/advancement/click/ender_eye.json create mode 100644 data/_trifles/advancement/click/interaction_left.json create mode 100644 data/_trifles/advancement/click/interaction_right.json create mode 100644 data/_trifles/advancement/drink/chocolate.json create mode 100644 data/_trifles/advancement/drink/coffee.json create mode 100644 data/_trifles/advancement/drink/espresso.json create mode 100644 data/_trifles/advancement/drink/tea.json create mode 100644 data/_trifles/function/bible/handle.mcfunction create mode 100644 data/_trifles/function/bible/normal/1-10.mcfunction create mode 100644 data/_trifles/function/bible/normal/11-20.mcfunction create mode 100644 data/_trifles/function/bible/normal/21-30.mcfunction create mode 100644 data/_trifles/function/bible/normal_verse.mcfunction create mode 100644 data/_trifles/function/bible/special/1-10.mcfunction create mode 100644 data/_trifles/function/bible/special/11-20.mcfunction create mode 100644 data/_trifles/function/bible/special/21-30.mcfunction create mode 100644 data/_trifles/function/bible/special/31-40.mcfunction create mode 100644 data/_trifles/function/bible/special/41-50.mcfunction create mode 100644 data/_trifles/function/bible/special/51-60.mcfunction create mode 100644 data/_trifles/function/bible/special/61-70.mcfunction create mode 100644 data/_trifles/function/bible/special_verse.mcfunction create mode 100644 data/_trifles/function/block_button/break.mcfunction create mode 100644 data/_trifles/function/block_button/click.mcfunction create mode 100644 data/_trifles/function/block_button/off.mcfunction create mode 100644 data/_trifles/function/block_button/off_timer.mcfunction create mode 100644 data/_trifles/function/block_button/spawn_interaction.mcfunction create mode 100644 data/_trifles/function/block_button/succsess.mcfunction create mode 100644 data/_trifles/function/block_lever/break.mcfunction create mode 100644 data/_trifles/function/block_lever/click.mcfunction create mode 100644 data/_trifles/function/block_lever/off.mcfunction create mode 100644 data/_trifles/function/block_lever/on.mcfunction create mode 100644 data/_trifles/function/block_lever/spawn_interaction.mcfunction create mode 100644 data/_trifles/function/block_lever/succsess.mcfunction create mode 100644 data/_trifles/function/click/detection.mcfunction create mode 100644 data/_trifles/function/click/ender_eye.mcfunction create mode 100644 data/_trifles/function/click/fungus.mcfunction create mode 100644 data/_trifles/function/click/use_ender_eye.mcfunction create mode 100644 data/_trifles/function/craft/bible.mcfunction create mode 100644 data/_trifles/function/craft/coffee.mcfunction create mode 100644 data/_trifles/function/craft/cup.mcfunction create mode 100644 data/_trifles/function/craft/dice.mcfunction create mode 100644 data/_trifles/function/craft/espresso.mcfunction create mode 100644 data/_trifles/function/craft/hot_chocolate.mcfunction create mode 100644 data/_trifles/function/craft/interaction_block.mcfunction create mode 100644 data/_trifles/function/craft/megastew.mcfunction create mode 100644 data/_trifles/function/craft/pocketcat.mcfunction create mode 100644 data/_trifles/function/craft/tea.mcfunction create mode 100644 data/_trifles/function/dependencies/check.mcfunction create mode 100644 data/_trifles/function/dependencies/registration.mcfunction create mode 100644 data/_trifles/function/dice/animation/keyframes.mcfunction create mode 100644 data/_trifles/function/dice/animation/loop.mcfunction create mode 100644 data/_trifles/function/dice/animation/start_loop.mcfunction create mode 100644 data/_trifles/function/dice/break.mcfunction create mode 100644 data/_trifles/function/dice/roll.mcfunction create mode 100644 data/_trifles/function/dice/roll_result.mcfunction create mode 100644 data/_trifles/function/dice/rolling.mcfunction create mode 100644 data/_trifles/function/dice/spawn.mcfunction create mode 100644 data/_trifles/function/drink/chocolate.mcfunction create mode 100644 data/_trifles/function/drink/coffee.mcfunction create mode 100644 data/_trifles/function/drink/cup_replace.mcfunction create mode 100644 data/_trifles/function/drink/espresso.mcfunction create mode 100644 data/_trifles/function/drink/tea.mcfunction create mode 100644 data/_trifles/function/interaction/find_attacked.mcfunction create mode 100644 data/_trifles/function/interaction/find_targeted.mcfunction create mode 100644 data/_trifles/function/interaction/handle_attacked.mcfunction create mode 100644 data/_trifles/function/interaction/handle_targeted.mcfunction create mode 100644 data/_trifles/function/interaction/left.mcfunction create mode 100644 data/_trifles/function/interaction/right.mcfunction create mode 100644 data/_trifles/function/interaction_block/fail.mcfunction create mode 100644 data/_trifles/function/interaction_block/spawn.mcfunction create mode 100644 data/_trifles/function/load.mcfunction create mode 100644 data/_trifles/function/main.mcfunction create mode 100644 data/_trifles/function/megastew/eat.mcfunction create mode 100644 data/_trifles/function/megastew/fail.mcfunction create mode 100644 data/_trifles/function/megastew/handle.mcfunction create mode 100644 data/_trifles/function/pocketcat/alert.mcfunction create mode 100644 data/_trifles/function/pocketcat/check.mcfunction create mode 100644 data/_trifles/function/pocketcat/handle.mcfunction create mode 100644 data/_trifles/function/pocketcat/toggle.mcfunction create mode 100644 data/_trifles/predicate/bible_special.json create mode 100644 data/global/advancement/trifles.json create mode 100644 data/minecraft/tags/function/load.json create mode 100644 data/trifles/advancement/bible.json create mode 100644 data/trifles/advancement/coffee.json create mode 100644 data/trifles/advancement/cup.json create mode 100644 data/trifles/advancement/dice.json create mode 100644 data/trifles/advancement/espresso.json create mode 100644 data/trifles/advancement/hot_beverage.json create mode 100644 data/trifles/advancement/hot_chocolate.json create mode 100644 data/trifles/advancement/interaction_block.json create mode 100644 data/trifles/advancement/megastew.json create mode 100644 data/trifles/advancement/pocketcat.json create mode 100644 data/trifles/advancement/tea.json create mode 100644 data/trifles/function/get/bible.mcfunction create mode 100644 data/trifles/function/get/coffee.mcfunction create mode 100644 data/trifles/function/get/cup.mcfunction create mode 100644 data/trifles/function/get/dice.mcfunction create mode 100644 data/trifles/function/get/espresso.mcfunction create mode 100644 data/trifles/function/get/hot_chocolate.mcfunction create mode 100644 data/trifles/function/get/interaction_block.mcfunction create mode 100644 data/trifles/function/get/megastew.mcfunction create mode 100644 data/trifles/function/get/pocketcat.mcfunction create mode 100644 data/trifles/function/get/tea.mcfunction create mode 100644 pack.mcmeta create mode 100644 pack.png diff --git a/data/_trifles/advancement/click/ender_eye.json b/data/_trifles/advancement/click/ender_eye.json new file mode 100644 index 0000000..f544b98 --- /dev/null +++ b/data/_trifles/advancement/click/ender_eye.json @@ -0,0 +1,17 @@ +{ + "criteria": { + "requirement": { + "trigger": "minecraft:using_item", + "conditions": { + "item": { + "items": [ + "minecraft:ender_eye" + ] + } + } + } + }, + "rewards": { + "function": "_trifles:click/use_ender_eye" + } +} diff --git a/data/_trifles/advancement/click/interaction_left.json b/data/_trifles/advancement/click/interaction_left.json new file mode 100644 index 0000000..a58bfd1 --- /dev/null +++ b/data/_trifles/advancement/click/interaction_left.json @@ -0,0 +1,15 @@ +{ + "criteria": { + "requirement": { + "trigger": "minecraft:player_hurt_entity", + "conditions": { + "entity": { + "type": "interaction" + } + } + } + }, + "rewards": { + "function": "_trifles:interaction/left" + } +} diff --git a/data/_trifles/advancement/click/interaction_right.json b/data/_trifles/advancement/click/interaction_right.json new file mode 100644 index 0000000..8d6bb51 --- /dev/null +++ b/data/_trifles/advancement/click/interaction_right.json @@ -0,0 +1,15 @@ +{ + "criteria": { + "requirement": { + "trigger": "minecraft:player_interacted_with_entity", + "conditions": { + "entity": { + "type": "interaction" + } + } + } + }, + "rewards": { + "function": "_trifles:interaction/right" + } +} diff --git a/data/_trifles/advancement/drink/chocolate.json b/data/_trifles/advancement/drink/chocolate.json new file mode 100644 index 0000000..e72b028 --- /dev/null +++ b/data/_trifles/advancement/drink/chocolate.json @@ -0,0 +1,21 @@ +{ + "criteria": { + "requirement": { + "trigger": "minecraft:consume_item", + "conditions": { + "item": { + "components": { + "custom_data": { + "trifles": { + "type": "hot_chocolate" + } + } + } + } + } + } + }, + "rewards": { + "function": "_trifles:drink/chocolate" + } +} diff --git a/data/_trifles/advancement/drink/coffee.json b/data/_trifles/advancement/drink/coffee.json new file mode 100644 index 0000000..1558e4e --- /dev/null +++ b/data/_trifles/advancement/drink/coffee.json @@ -0,0 +1,21 @@ +{ + "criteria": { + "requirement": { + "trigger": "minecraft:consume_item", + "conditions": { + "item": { + "components": { + "custom_data": { + "trifles": { + "type": "coffee" + } + } + } + } + } + } + }, + "rewards": { + "function": "_trifles:drink/coffee" + } +} diff --git a/data/_trifles/advancement/drink/espresso.json b/data/_trifles/advancement/drink/espresso.json new file mode 100644 index 0000000..6657acc --- /dev/null +++ b/data/_trifles/advancement/drink/espresso.json @@ -0,0 +1,21 @@ +{ + "criteria": { + "requirement": { + "trigger": "minecraft:consume_item", + "conditions": { + "item": { + "components": { + "custom_data": { + "trifles": { + "type": "espresso" + } + } + } + } + } + } + }, + "rewards": { + "function": "_trifles:drink/espresso" + } +} diff --git a/data/_trifles/advancement/drink/tea.json b/data/_trifles/advancement/drink/tea.json new file mode 100644 index 0000000..51daf33 --- /dev/null +++ b/data/_trifles/advancement/drink/tea.json @@ -0,0 +1,21 @@ +{ + "criteria": { + "requirement": { + "trigger": "minecraft:consume_item", + "conditions": { + "item": { + "components": { + "custom_data": { + "trifles": { + "type": "tea" + } + } + } + } + } + } + }, + "rewards": { + "function": "_trifles:drink/tea" + } +} diff --git a/data/_trifles/function/bible/handle.mcfunction b/data/_trifles/function/bible/handle.mcfunction new file mode 100644 index 0000000..47bafb0 --- /dev/null +++ b/data/_trifles/function/bible/handle.mcfunction @@ -0,0 +1,7 @@ +#declare tag trifles.special_verse + +tag @s remove trifles.special_verse +execute if predicate _trifles:bible_special run tag @s add trifles.special_verse +execute unless entity @s[tag=trifles.special_verse] run function _trifles:bible/normal_verse +execute if entity @s[tag=trifles.special_verse] run function _trifles:bible/special_verse +tag @s remove trifles.special_verse diff --git a/data/_trifles/function/bible/normal/1-10.mcfunction b/data/_trifles/function/bible/normal/1-10.mcfunction new file mode 100644 index 0000000..3b30e6d --- /dev/null +++ b/data/_trifles/function/bible/normal/1-10.mcfunction @@ -0,0 +1,13 @@ +#declare entity #out + +# Bible quotes +execute if score #out trifles.random matches 1 run tellraw @s [{"text":"“Ich bin bei euch alle Tage, bis an das Ende der Welt.” "},{"text":"(Matthäus 28:20)", "color": "gray"}] +execute if score #out trifles.random matches 2 run tellraw @s [{"text":"“Diese Männer sind nicht betrunken, wie einige von euch meinen. Es ist ja erst neun Uhr morgens.” "},{"text":"(Apostelgeschichte 2:15)", "color": "gray"}] +execute if score #out trifles.random matches 3 run tellraw @s [{"text":"“Da nun Josua alt war und wohl betagt, sprach der HERR zu ihm: 'Du bist alt geworden und wohl betagt'” "},{"text":"(Josua 13:1)", "color": "gray"}] +execute if score #out trifles.random matches 4 run tellraw @s [{"text":"“Da sprach der HERR zu dem Meerestier, und es spuckte Jona an das trockene Land.” "},{"text":"(Jonah 2:10)", "color": "gray"}] +execute if score #out trifles.random matches 5 run tellraw @s [{"text":"“Von dort aus ging Elisha hinauf nach Bethel. Als er die Straße entlangging, kamen einige Jungen aus der Stadt und verhöhnten ihn. 'Hau ab, Glatzkopf!', sagten sie. 'Hau ab, Glatzkopf!'” "},{"text":"(2 Könige 2:23)", "color": "gray"}] +execute if score #out trifles.random matches 6 run tellraw @s [{"text":"“Eine nörgelnde Ehefrau ist wie Wasser, das an einem Regentag tropft und tropft und tropft. Wer sie kontrollieren kann, kann den Wind kontrollieren. Er kann sogar Olivenöl mit seiner rechten Hand auffangen.” "},{"text":"(Buch der Sprichwörter 27:15-16)", "color": "gray"}] +execute if score #out trifles.random matches 7 run tellraw @s [{"text":"“Aber sie schwiegen, denn unterwegs hatten sie sich darüber gestritten, wer der Größte sei.” "},{"text":"(Markus 9:34)", "color": "gray"}] +execute if score #out trifles.random matches 8 run tellraw @s [{"text":"“Es ist besser, auf einer Dachecke zu leben als ein Haus mit einer nörgelnden Ehefrau zu teilen.” "},{"text":"(Buch der Sprichwörter 21:9)", "color": "gray"}] +execute if score #out trifles.random matches 9 run tellraw @s [{"text":"“Der Wächter meldete wieder: 'Er hat sie erreicht, kehrt aber nicht mehr zurück. Die Art, wie ihr Anführer fährt, ist die Art Jehus, des Enkels Nimschis; denn er fährt wie ein Rasender.'” "},{"text":"(2 Könige 9:20)", "color": "gray"}] +execute if score #out trifles.random matches 10 run tellraw @s [{"text":"“Er sagte zu Jakob: 'Lass mich etwas von dem roten Zeug runterschlucken, ich bin am Verhungern'.” "},{"text":"(Genesis 25:30)", "color": "gray"}] diff --git a/data/_trifles/function/bible/normal/11-20.mcfunction b/data/_trifles/function/bible/normal/11-20.mcfunction new file mode 100644 index 0000000..38c6937 --- /dev/null +++ b/data/_trifles/function/bible/normal/11-20.mcfunction @@ -0,0 +1,14 @@ +#declare entity #out + +# Bible quotes +execute if score #out trifles.random matches 11 run tellraw @s [{"text":"“Ein Fest ist zum Lachen da, Wein macht das Leben fröhlich, und Geld ist die Antwort auf alles.” "},{"text":"(Sirach 10:19)", "color": "gray"}] +execute if score #out trifles.random matches 12 run tellraw @s [{"text":"“Es gibt keine größere Liebe, als wenn einer sein Leben für seine Freunde hingibt.” "},{"text":"(Johannes 15:13)", "color": "gray"}] +execute if score #out trifles.random matches 13 run tellraw @s [{"text":"“Jesus aber sah sie an und sprach zu ihnen: 'Bei den Menschen ist’s unmöglich; aber bei Gott sind alle Dinge möglich.'” "},{"text":"(Matthäus 19:26)", "color": "gray"}] +execute if score #out trifles.random matches 14 run tellraw @s [{"text":"“Wie ein goldener Ring in der Schnauze eines Schweins, so ist eine schöne Frau, die sich unanständig verhält.” "},{"text":"(Buch der Sprichwörter 11:22)", "color": "gray"}] +execute if score #out trifles.random matches 15 run tellraw @s [{"text":"“Deine Nase ist wie der Turm auf dem Libanon, der nach Damaskus sieht.” "},{"text":"(Hoheslied 7:5)", "color": "gray"}] +execute if score #out trifles.random matches 16 run tellraw @s [{"text":"“Uz, seinen Erstgeborenen und dessen Bruder Bus” "},{"text":"(Genesis 22:21)", "color": "gray"}] +execute if score #out trifles.random matches 17 run tellraw @s [{"text":"“Da packten sie ihn; er aber ließ das Tuch fallen und lief nackt davon.” "},{"text":"(Markus 14:52)", "color": "gray"}] +execute if score #out trifles.random matches 18 run tellraw @s [{"text":"“Dem, der zugrunde geht, gebt Bier, und Wein denen, die verbittert sind.” "},{"text":"(Buch der Sprichwörter 31:6)", "color": "gray"}] +execute if score #out trifles.random matches 19 run tellraw @s [{"text":"“Unser Glaube kann Berge versetzen.” "},{"text":"(Matthäus 17:20)", "color": "gray"}] +execute if score #out trifles.random matches 20 run tellraw @s [{"text":"“Der HERR ist mein Licht und mein Heil: vor wem sollte ich mich fürchten? Der HERR ist die Kraft meines Lebens: vor wem sollte mir bangen?” "},{"text":"(Psalm 27:1)", "color": "gray"}] + diff --git a/data/_trifles/function/bible/normal/21-30.mcfunction b/data/_trifles/function/bible/normal/21-30.mcfunction new file mode 100644 index 0000000..c72517b --- /dev/null +++ b/data/_trifles/function/bible/normal/21-30.mcfunction @@ -0,0 +1,13 @@ +#declare entity #out + +# Bible quotes +execute if score #out trifles.random matches 21 run tellraw @s [{"text":"“Und Gott sprach: Es werde Licht! Und es ward Licht.” "},{"text":"(Genesis 1:3)", "color": "gray"}] +execute if score #out trifles.random matches 22 run tellraw @s [{"text":"“Der HERR ist mein Hirte, nichts wird mir fehlen.” "},{"text":"(Psalm 23:1)", "color": "gray"}] +execute if score #out trifles.random matches 23 run tellraw @s [{"text":"“Alle eure Dinge lasst in der Liebe geschehen!” "},{"text":"(1 Korinther 16:14)", "color": "gray"}] +execute if score #out trifles.random matches 24 run tellraw @s [{"text":"“Du sollst nicht morden.” "},{"text":"(Exodus 20:13)", "color": "gray"}] +execute if score #out trifles.random matches 25 run tellraw @s [{"text":"“Du sollst nicht stehlen.” "},{"text":"(Exodus 20:15)", "color": "gray"}] +# execute if score #out random matches 26 run tellraw @s [{"text":"“” "},{"text":"()", "color": "gray"}] +# execute if score #out random matches 27 run tellraw @s [{"text":"“” "},{"text":"()", "color": "gray"}] +# execute if score #out random matches 28 run tellraw @s [{"text":"“” "},{"text":"()", "color": "gray"}] +# execute if score #out random matches 29 run tellraw @s [{"text":"“” "},{"text":"()", "color": "gray"}] +# execute if score #out random matches 30 run tellraw @s [{"text":"“” "},{"text":"()", "color": "gray"}] diff --git a/data/_trifles/function/bible/normal_verse.mcfunction b/data/_trifles/function/bible/normal_verse.mcfunction new file mode 100644 index 0000000..5bb7eae --- /dev/null +++ b/data/_trifles/function/bible/normal_verse.mcfunction @@ -0,0 +1,7 @@ +#declare entity #out random + +execute store result score #out trifles.random run random value 1..25 + +execute if score #out trifles.random matches 1..10 run function _trifles:bible/normal/1-10 +execute if score #out trifles.random matches 11..20 run function _trifles:bible/normal/11-20 +execute if score #out trifles.random matches 21..30 run function _trifles:bible/normal/21-30 diff --git a/data/_trifles/function/bible/special/1-10.mcfunction b/data/_trifles/function/bible/special/1-10.mcfunction new file mode 100644 index 0000000..0c1ef29 --- /dev/null +++ b/data/_trifles/function/bible/special/1-10.mcfunction @@ -0,0 +1,13 @@ +#declare entity #out + +# Bible quotes +execute if score #out trifles.random matches 1 run tellraw @s [{"text":"“Ich lauf über!” "},{"text":"(Racooder 6:23)", "color": "gray"}] +execute if score #out trifles.random matches 2 run tellraw @s [{"text":"“Du kannst auch einfach 20% besser werden!” "},{"text":"(maxderprof 3:23)", "color": "gray"}] +execute if score #out trifles.random matches 3 run tellraw @s [{"text":"“Und sie sieht aus wie Gulasch” "},{"text":"(Racooder 6:23)", "color": "gray"}] +execute if score #out trifles.random matches 4 run tellraw @s [{"text":"“Wir müssen echt mal nen Autoreifen anzünden!” "},{"text":"(reg1609 6:23)", "color": "gray"}] +execute if score #out trifles.random matches 5 run tellraw @s [{"text":"“Das wird in mein Clipboard teleportiert” "},{"text":"(Racooder 6:23)", "color": "gray"}] +execute if score #out trifles.random matches 6 run tellraw @s [{"text":"“Ich darf mein Knie nicht über 200 Watt belasten!” "},{"text":"(jonmoja 6:23)", "color": "gray"}] +execute if score #out trifles.random matches 7 run tellraw @s [{"text":"“Holland kann man auch essen!” "},{"text":"(jonmoja 6:23)", "color": "gray"}] +execute if score #out trifles.random matches 8 run tellraw @s [{"text":"“Hallo, Abitur is nicht!” "},{"text":"(simon10247 7:23)", "color": "gray"}] +execute if score #out trifles.random matches 9 run tellraw @s [{"text":"“Das ist nicht irgendein Überwachungsstaat, das ist mein Überwachungsstaat!” "},{"text":"(Racooder ?:?)", "color": "gray"}] +execute if score #out trifles.random matches 10 run tellraw @s [{"text":"“Ich sollte mich mal untenrum rasieren. Och ich bin zu faul zum Friseur zu gehen!” "},{"text":"(simon10247 7:23)", "color": "gray"}] diff --git a/data/_trifles/function/bible/special/11-20.mcfunction b/data/_trifles/function/bible/special/11-20.mcfunction new file mode 100644 index 0000000..1342bca --- /dev/null +++ b/data/_trifles/function/bible/special/11-20.mcfunction @@ -0,0 +1,13 @@ +#declare entity #out + +# Racoonia quotes +execute if score #out trifles.random matches 11 run tellraw @s [{"text":"“Wo finde ich diesen 'Any Key'?” "},{"text":"(maxderprof 1:22)", "color": "gray"}] +execute if score #out trifles.random matches 12 run tellraw @s [{"text":"“Stimmt ja, meine Seele hat ja keine Gedanken” "},{"text":"(Michael 7:23)", "color": "gray"}] +execute if score #out trifles.random matches 13 run tellraw @s [{"text":"“Max war schon immer ein Impostor.” "},{"text":"(Racooder 7:23)", "color": "gray"}] +execute if score #out trifles.random matches 14 run tellraw @s [{"text":"“Jonas hat auch nur 40 Jahre im Tag.” "},{"text":"(Michael 7:23)", "color": "gray"}] +execute if score #out trifles.random matches 15 run tellraw @s [{"text":"“Wenn du es nicht einmal schaffst dich umzubringen, was bringst du dann der Gesellschaft?” "},{"text":"(reg1609 7:23)", "color": "gray"}] +execute if score #out trifles.random matches 16 run tellraw @s [{"text":"“Wenn du auf den Knopf drückst, wird es enger und warm.” "},{"text":"(simon10247 7:23)", "color": "gray"}] +execute if score #out trifles.random matches 17 run tellraw @s [{"text":"“Ich weiß nur, dass ich einen Autoreifen anzünden wollte.” "},{"text":"(reg1609 7:23)", "color": "gray"}] +execute if score #out trifles.random matches 18 run tellraw @s [{"text":"“Erinnert ihr euch, dass ich mal über Toaster und Penisse geredet habe? Wir haben einen Toaster!” "},{"text":"(simon10247 7:23)", "color": "gray"}] +execute if score #out trifles.random matches 19 run tellraw @s [{"text":"“Das ist ziemlich blöd, dass man nichts sieht wenn man blind ist.” "},{"text":"(Racooder 7:23)", "color": "gray"}] +execute if score #out trifles.random matches 20 run tellraw @s [{"text":"“Soll ich sie töten? Oh sie ist in meinem Schritt.” "},{"text":"(simon10247 7:23)", "color": "gray"}] diff --git a/data/_trifles/function/bible/special/21-30.mcfunction b/data/_trifles/function/bible/special/21-30.mcfunction new file mode 100644 index 0000000..64ab7bb --- /dev/null +++ b/data/_trifles/function/bible/special/21-30.mcfunction @@ -0,0 +1,13 @@ +#declare entity #out + +# Racoonia quotes +execute if score #out trifles.random matches 21 run tellraw @s [{"text":"“Dein Arsch war in der Schüssel drin, ich hab's gesehen” "},{"text":"(gotura 5:23)", "color": "gray"}] +execute if score #out trifles.random matches 22 run tellraw @s [{"text":"“Lass mal stehen, damit er auch guten Stuhl hat!” "},{"text":"(jonmoja 5:23)", "color": "gray"}] +execute if score #out trifles.random matches 23 run tellraw @s [{"text":"“Ich hatte gerade das Verlangen, meinen Gummistiefel mit Eistee zu füllen” "},{"text":"(simon10247 6:23)", "color": "gray"}] +execute if score #out trifles.random matches 24 run tellraw @s [{"text":"“Du kannst auch einfach 20% besser werden!” "},{"text":"(maxderprof 3:23)", "color": "gray"}] +execute if score #out trifles.random matches 25 run tellraw @s [{"text":"“Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.” "},{"text":"(Lorem Ipsum)", "color": "gray"}] +execute if score #out trifles.random matches 26 run tellraw @s [{"text":"“Ich glaube mein Vater hat meinem Paarungsruf geantwortet” "},{"text":"(simon10247 11:21)", "color": "gray"}] +execute if score #out trifles.random matches 27 run tellraw @s [{"text":"“Hat jemand eine Idee was ich machen kann?” "},{"text":"(maxderprof 0:0)", "color": "gray"}] +execute if score #out trifles.random matches 28 run tellraw @s [{"text":"“Warum sieht Elias so hässlich aus?” "},{"text":"(tsunami2706 11:21)", "color": "gray"}] +execute if score #out trifles.random matches 29 run tellraw @s [{"text":"“Geh mal in das Lager, also den Raum in dem Dinge gelagert werden” "},{"text":"(simon10247 12:21)", "color": "gray"}] +execute if score #out trifles.random matches 30 run tellraw @s [{"text":"“Oh, mein Schwanz schaut raus.” "},{"text":"(simon10247 12:21)", "color": "gray"}] diff --git a/data/_trifles/function/bible/special/31-40.mcfunction b/data/_trifles/function/bible/special/31-40.mcfunction new file mode 100644 index 0000000..6e68e68 --- /dev/null +++ b/data/_trifles/function/bible/special/31-40.mcfunction @@ -0,0 +1,13 @@ +#declare entity #out + +# Racoonia quotes +execute if score #out trifles.random matches 31 run tellraw @s [{"text":"“Simon, nimm mal den Dick aus dem Mund!” "},{"text":"(Michael 2:22)", "color": "gray"}] +execute if score #out trifles.random matches 32 run tellraw @s [{"text":"“Der ist aber auch nicht das Grün vom Blatt” "},{"text":"(Racooder 3:22)", "color": "gray"}] +execute if score #out trifles.random matches 33 run tellraw @s [{"text":"“Ich lach immer wie so ein Pedo wenn ich nen Kill mach” "},{"text":"(simon10247 3:22)", "color": "gray"}] +execute if score #out trifles.random matches 34 run tellraw @s [{"text":"“Ich hab mir einen Vorschlag gemacht, den ich sehr gut fand!” "},{"text":"(Racooder 4:22)", "color": "gray"}] +execute if score #out trifles.random matches 35 run tellraw @s [{"text":"“Ewww das erinnert mich an Jonas” "},{"text":"(tsunami2706 -1:22)", "color": "gray"}] +execute if score #out trifles.random matches 36 run tellraw @s [{"text":"“Andesit gehört zu Diorite und Andesite” "},{"text":"(simon10247 8:22)", "color": "gray"}] +execute if score #out trifles.random matches 37 run tellraw @s [{"text":"“Ich hab nur ein Loch gesehen und hab deshalb an dich gedacht” "},{"text":"(simon10247 8:22)", "color": "gray"}] +execute if score #out trifles.random matches 38 run tellraw @s [{"text":"“Ich lösch mal gotura's Gehirn” "},{"text":"(kiwitchu 9:22)", "color": "gray"}] +execute if score #out trifles.random matches 39 run tellraw @s [{"text":"“Ich sehe Milch oh nein es ist eine andere weise Flüssigkeit” "},{"text":"(maxderprof 9:22)", "color": "gray"}] +execute if score #out trifles.random matches 40 run tellraw @s [{"text":"“Hat jemand meine Truppen gesehen?” "},{"text":"(maxderprof 1:22)", "color": "gray"}] diff --git a/data/_trifles/function/bible/special/41-50.mcfunction b/data/_trifles/function/bible/special/41-50.mcfunction new file mode 100644 index 0000000..0c0587f --- /dev/null +++ b/data/_trifles/function/bible/special/41-50.mcfunction @@ -0,0 +1,13 @@ +#declare entity #out + +# Racoonia quotes +execute if score #out trifles.random matches 41 run tellraw @s [{"text":"“Schiebe ich mir lieber einen Hamster in den Arsch oder ficke ich lieber die falsche Schwester” "},{"text":"(Michael 10:22)", "color": "gray"}] +execute if score #out trifles.random matches 42 run tellraw @s [{"text":"“Ich nehme die Zähennägel eines 90 jährigen Mannes” "},{"text":"(jonmoja 10:22)", "color": "gray"}] +execute if score #out trifles.random matches 43 run tellraw @s [{"text":"“Das Becken voller pisse ist auch nicht schlecht” "},{"text":"(Michael 10:22)", "color": "gray"}] +execute if score #out trifles.random matches 44 run tellraw @s [{"text":"“Ich finde meine Hose nicht!” "},{"text":"(simon10247 11:22)", "color": "gray"}] +execute if score #out trifles.random matches 45 run tellraw @s [{"text":"“Man weiß ja manchmal ungefär was man denkt!” "},{"text":"(Racooder 1:31)", "color": "gray"}] +execute if score #out trifles.random matches 46 run tellraw @s [{"text":"“Ich kann dir von hier sagen, dass der Anhänger nicht vegan ist!” "},{"text":"(Michael 4:23)", "color": "gray"}] +execute if score #out trifles.random matches 47 run tellraw @s [{"text":"“Das ist weil: Ähhhhhhh! ... Keine Ahnung...” "},{"text":"(Racooder 5:23)", "color": "gray"}] +execute if score #out trifles.random matches 48 run tellraw @s [{"text":"“Einfach sterben!” "},{"text":"(gotura 5:23)", "color": "gray"}] +execute if score #out trifles.random matches 49 run tellraw @s [{"text":"“Wer braucht schon ne Pizza, wenn man eine Kartoffel auf dem Bett hat!” "},{"text":"(simon10247 5:23)", "color": "gray"}] +execute if score #out trifles.random matches 50 run tellraw @s [{"text":"“Dein Vater ist eigentlich ein Mann” "},{"text":"(simon10247 5:23)", "color": "gray"}] diff --git a/data/_trifles/function/bible/special/51-60.mcfunction b/data/_trifles/function/bible/special/51-60.mcfunction new file mode 100644 index 0000000..ba30026 --- /dev/null +++ b/data/_trifles/function/bible/special/51-60.mcfunction @@ -0,0 +1,13 @@ +#declare entity #out + +# Racoonia quotes +execute if score #out trifles.random matches 51 run tellraw @s [{"text":"“Warum hab ich eigentlich so wenig Geld?” "},{"text":"(maxderprof 7:23)", "color": "gray"}] +execute if score #out trifles.random matches 52 run tellraw @s [{"text":"“Reto: Nenne einen Kosenamen. Simon: 'BUBAZ!'” "},{"text":"(simon10247 7:23)", "color": "gray"}] +execute if score #out trifles.random matches 53 run tellraw @s [{"text":"“Ich möchte den Garten kaufen aber er ist so ein Hurensohn.” "},{"text":"(simon10247 7:23)", "color": "gray"}] +execute if score #out trifles.random matches 54 run tellraw @s [{"text":"“Ansonsten bin ich scheiße” "},{"text":"(maxderprof 7:23)", "color": "gray"}] +execute if score #out trifles.random matches 55 run tellraw @s [{"text":"“Ich glaub ich muss mir auch ne Katze mit einer Glock holen.” "},{"text":"(Michael 7:23)", "color": "gray"}] +execute if score #out trifles.random matches 56 run tellraw @s [{"text":"“Ich kauf ihm einfach das Geld weg, damit er es sich nicht leisten kann.” "},{"text":"(maxderprof 7:23)", "color": "gray"}] +execute if score #out trifles.random matches 57 run tellraw @s [{"text":"“Es ging ja auch um Multithreading, aber halt bei Kartoffeln.” "},{"text":"(Racooder 7:23)", "color": "gray"}] +execute if score #out trifles.random matches 58 run tellraw @s [{"text":"“Simon beherrscht die diversesten Stöhner, die ich kenne.” "},{"text":"(Racooder 7:23)", "color": "gray"}] +execute if score #out trifles.random matches 59 run tellraw @s [{"text":"“Wenn ihr weiter atmet, gibt's aufs Maul!” "},{"text":"(Michael 7:23)", "color": "gray"}] +execute if score #out trifles.random matches 60 run tellraw @s [{"text":"“Warum kostet die Grafikkarte 11.000 €?” "},{"text":"(simon10247 7:23)", "color": "gray"}] diff --git a/data/_trifles/function/bible/special/61-70.mcfunction b/data/_trifles/function/bible/special/61-70.mcfunction new file mode 100644 index 0000000..332c569 --- /dev/null +++ b/data/_trifles/function/bible/special/61-70.mcfunction @@ -0,0 +1,13 @@ +#declare entity #out + +# Racoonia quotes +execute if score #out trifles.random matches 61 run tellraw @s [{"text":"“Wie es gibt kein Minecraft, was soll das denn?” "},{"text":"(simon10247 7:23)", "color": "gray"}] +# execute if score #out random matches 62 run tellraw @s [{"text":"“” "},{"text":"()", "color": "gray"}] +# execute if score #out random matches 63 run tellraw @s [{"text":"“” "},{"text":"()", "color": "gray"}] +# execute if score #out random matches 64 run tellraw @s [{"text":"“” "},{"text":"()", "color": "gray"}] +# execute if score #out random matches 65 run tellraw @s [{"text":"“” "},{"text":"()", "color": "gray"}] +# execute if score #out random matches 66 run tellraw @s [{"text":"“” "},{"text":"()", "color": "gray"}] +# execute if score #out random matches 67 run tellraw @s [{"text":"“” "},{"text":"()", "color": "gray"}] +# execute if score #out random matches 68 run tellraw @s [{"text":"“” "},{"text":"()", "color": "gray"}] +# execute if score #out random matches 69 run tellraw @s [{"text":"“” "},{"text":"()", "color": "gray"}] +# execute if score #out random matches 70 run tellraw @s [{"text":"“” "},{"text":"()", "color": "gray"}] diff --git a/data/_trifles/function/bible/special_verse.mcfunction b/data/_trifles/function/bible/special_verse.mcfunction new file mode 100644 index 0000000..dbe1529 --- /dev/null +++ b/data/_trifles/function/bible/special_verse.mcfunction @@ -0,0 +1,11 @@ +#declare entity #out + +execute store result score #out trifles.random run random value 1..61 + +execute if score #out trifles.random matches 1..10 run function _trifles:bible/special/1-10 +execute if score #out trifles.random matches 11..20 run function _trifles:bible/special/11-20 +execute if score #out trifles.random matches 21..30 run function _trifles:bible/special/21-30 +execute if score #out trifles.random matches 31..40 run function _trifles:bible/special/31-40 +execute if score #out trifles.random matches 41..50 run function _trifles:bible/special/41-50 +execute if score #out trifles.random matches 51..60 run function _trifles:bible/special/51-60 +execute if score #out trifles.random matches 61..70 run function _trifles:bible/special/61-70 diff --git a/data/_trifles/function/block_button/break.mcfunction b/data/_trifles/function/block_button/break.mcfunction new file mode 100644 index 0000000..b4bee3e --- /dev/null +++ b/data/_trifles/function/block_button/break.mcfunction @@ -0,0 +1,5 @@ +function _trifles:block_button/off +summon item ~ ~ ~ {Tags:["trifles.interaction_block_spawn"],PickupDelay:10,Item:{id:"minecraft:ghast_spawn_egg",count:1,components:{custom_name:'{"text":"Interaction Block","color":"aqua","italic":false}',lore:['{"text":"Disguise your button or lever as a block","color":"white","italic":false}','{"text":" "}','{"text":"\\"Follow your bliss and the","color":"gray","italic":true}','{"text":"universe will open doors","color":"gray"}','{"text":"where there were only walls.\\"","color":"gray"}','{"text":"- Joseph Campbell","color":"gray","italic":true}','{"text":" "}','{"text":"ᴛᴇxᴛᴜʀᴇᴅ ʙʏ ꜱɪᴍᴏɴ₁₀₂"}'],custom_model_data:4000112,custom_data:{trifles:{is_gadget:1b,type:"interaction_block"}}}}} +particle minecraft:witch ~ ~ ~ .1 .1 .1 0 5 normal @a +playsound minecraft:block.glass.break master @a ~ ~ ~ +kill @s diff --git a/data/_trifles/function/block_button/click.mcfunction b/data/_trifles/function/block_button/click.mcfunction new file mode 100644 index 0000000..a88e034 --- /dev/null +++ b/data/_trifles/function/block_button/click.mcfunction @@ -0,0 +1,10 @@ +execute if block ~1 ~ ~ target[power=0] run setblock ~1 ~ ~ target[power=15] +execute if block ~-1 ~ ~ target[power=0] run setblock ~-1 ~ ~ target[power=15] +execute if block ~ ~ ~1 target[power=0] run setblock ~ ~ ~1 target[power=15] +execute if block ~ ~ ~-1 target[power=0] run setblock ~ ~ ~-1 target[power=15] +execute if block ~ ~1 ~ target[power=0] run setblock ~ ~1 ~ target[power=15] +execute if block ~ ~-1 ~ target[power=0] run setblock ~ ~-1 ~ target[power=15] +playsound minecraft:block.stone_button.click_on block @a ~ ~ ~ + +scoreboard players set @s trifles.block_button_off 1 +schedule function _trifles:block_button/off_timer 10t diff --git a/data/_trifles/function/block_button/off.mcfunction b/data/_trifles/function/block_button/off.mcfunction new file mode 100644 index 0000000..bc624b6 --- /dev/null +++ b/data/_trifles/function/block_button/off.mcfunction @@ -0,0 +1,9 @@ +execute at @e[type=interaction, scores={trifles.block_button_off=2}] if block ~1 ~ ~ target[power=15] run setblock ~1 ~ ~ target[power=0] +execute at @e[type=interaction, scores={trifles.block_button_off=2}] if block ~-1 ~ ~ target[power=15] run setblock ~-1 ~ ~ target[power=0] +execute at @e[type=interaction, scores={trifles.block_button_off=2}] if block ~ ~ ~1 target[power=15] run setblock ~ ~ ~1 target[power=0] +execute at @e[type=interaction, scores={trifles.block_button_off=2}] if block ~ ~ ~-1 target[power=15] run setblock ~ ~ ~-1 target[power=0] +execute at @e[type=interaction, scores={trifles.block_button_off=2}] if block ~ ~1 ~ target[power=15] run setblock ~ ~1 ~ target[power=0] +execute at @e[type=interaction, scores={trifles.block_button_off=2}] if block ~ ~-1 ~ target[power=15] run setblock ~ ~-1 ~ target[power=0] +execute at @e[type=interaction, scores={trifles.block_button_off=2}] run playsound minecraft:block.stone_button.click_off block @a ~ ~ ~ 0.5 + +tag @e[type=interaction, scores={trifles.block_button_off=2}] remove trifles.block_button_off diff --git a/data/_trifles/function/block_button/off_timer.mcfunction b/data/_trifles/function/block_button/off_timer.mcfunction new file mode 100644 index 0000000..266f12b --- /dev/null +++ b/data/_trifles/function/block_button/off_timer.mcfunction @@ -0,0 +1,2 @@ +scoreboard players set @e[type=interaction, scores={trifles.block_button_off=1}] trifles.block_button_off 2 +schedule function _trifles:block_button/off 10t diff --git a/data/_trifles/function/block_button/spawn_interaction.mcfunction b/data/_trifles/function/block_button/spawn_interaction.mcfunction new file mode 100644 index 0000000..e5bb779 --- /dev/null +++ b/data/_trifles/function/block_button/spawn_interaction.mcfunction @@ -0,0 +1,5 @@ +particle minecraft:witch ~ ~ ~ .4 .4 .4 0 50 normal @a +playsound minecraft:block.stone_button.click_off master @a ~ ~ ~ 1 0 +scoreboard players set @s trifles.block_button_off 2 + +tag @s remove trifles.block_button_interaction_spawn diff --git a/data/_trifles/function/block_button/succsess.mcfunction b/data/_trifles/function/block_button/succsess.mcfunction new file mode 100644 index 0000000..a6beaee --- /dev/null +++ b/data/_trifles/function/block_button/succsess.mcfunction @@ -0,0 +1,10 @@ +execute if block ~ ~ ~ stone_button[face=wall,facing=north] run summon interaction ~ ~ ~1 {Tags:["trifles.block_button_interaction","trifles.block_button_interaction_spawn","trifles.block_interaction"],width:1.05f,height:1.05f} +execute if block ~ ~ ~ stone_button[face=wall,facing=south] run summon interaction ~ ~ ~-1 {Tags:["trifles.block_button_interaction","trifles.block_button_interaction_spawn","trifles.block_interaction"],width:1.05f,height:1.05f} +execute if block ~ ~ ~ stone_button[face=wall,facing=west] run summon interaction ~1 ~ ~ {Tags:["trifles.block_button_interaction","trifles.block_button_interaction_spawn","trifles.block_interaction"],width:1.05f,height:1.05f} +execute if block ~ ~ ~ stone_button[face=wall,facing=east] run summon interaction ~-1 ~ ~ {Tags:["trifles.block_button_interaction","trifles.block_button_interaction_spawn","trifles.block_interaction"],width:1.05f,height:1.05f} +execute if block ~ ~ ~ stone_button[face=ceiling] run summon interaction ~ ~1 ~ {Tags:["trifles.block_button_interaction","trifles.block_button_interaction_spawn","trifles.block_interaction"],width:1.05f,height:1.05f} +execute if block ~ ~ ~ stone_button[face=floor] run summon interaction ~ ~-1 ~ {Tags:["trifles.block_button_interaction","trifles.block_button_interaction_spawn","trifles.block_interaction"],width:1.05f,height:1.05f} +execute if block ~ ~ ~ stone_button run setblock ~ ~ ~ air +execute as @e[tag=trifles.block_button_interaction_spawn] at @s run function _trifles:block_button/spawn_interaction +tellraw @a[distance=..10,tag=!global.ignore,tag=!global.ignore.gui] ["",{"text":"The Block Button needs a adapter in form of a target block next to it","color":"yellow"}] + diff --git a/data/_trifles/function/block_lever/break.mcfunction b/data/_trifles/function/block_lever/break.mcfunction new file mode 100644 index 0000000..1187c61 --- /dev/null +++ b/data/_trifles/function/block_lever/break.mcfunction @@ -0,0 +1,5 @@ +function _trifles:block_lever/off +summon item ~ ~ ~ {PickupDelay:10,Item:{id:"minecraft:ghast_spawn_egg",count:1,components:{custom_name:'{"text":"Interaction Block","color":"aqua","italic":false}',lore:['{"text":"Disguise your button or lever as a block","color":"white","italic":false}','{"text":" "}','{"text":"\\"Follow your bliss and the","color":"gray","italic":true}','{"text":"universe will open doors","color":"gray"}','{"text":"where there were only walls.\\"","color":"gray"}','{"text":"- Joseph Campbell","color":"gray","italic":true}','{"text":" "}','{"text":"ᴛᴇxᴛᴜʀᴇᴅ ʙʏ ꜱɪᴍᴏɴ₁₀₂"}'],custom_model_data:4000112,custom_data:{trifles:{is_gadget:1b,type:"interaction_block"}},entity_data:{id:"minecraft:marker",Tags:["trifles.interaction_block_spawn"]}}}} +particle minecraft:witch ~ ~ ~ .1 .1 .1 0 5 normal @a +playsound minecraft:block.glass.break master @a ~ ~ ~ +kill @s diff --git a/data/_trifles/function/block_lever/click.mcfunction b/data/_trifles/function/block_lever/click.mcfunction new file mode 100644 index 0000000..fb2c23f --- /dev/null +++ b/data/_trifles/function/block_lever/click.mcfunction @@ -0,0 +1,4 @@ +scoreboard players add @s trifles.block_lever 1 + +execute as @s[scores={trifles.block_lever=1}] run function _trifles:block_lever/on +execute as @s[scores={trifles.block_lever=2}] run function _trifles:block_lever/off diff --git a/data/_trifles/function/block_lever/off.mcfunction b/data/_trifles/function/block_lever/off.mcfunction new file mode 100644 index 0000000..52933b9 --- /dev/null +++ b/data/_trifles/function/block_lever/off.mcfunction @@ -0,0 +1,9 @@ +execute if block ~1 ~ ~ target[power=15] run setblock ~1 ~ ~ target[power=0] +execute if block ~-1 ~ ~ target[power=15] run setblock ~-1 ~ ~ target[power=0] +execute if block ~ ~ ~1 target[power=15] run setblock ~ ~ ~1 target[power=0] +execute if block ~ ~ ~-1 target[power=15] run setblock ~ ~ ~-1 target[power=0] +execute if block ~ ~1 ~ target[power=15] run setblock ~ ~1 ~ target[power=0] +execute if block ~ ~-1 ~ target[power=15] run setblock ~ ~-1 ~ target[power=0] +playsound minecraft:block.lever.click block @a ~ ~ ~ 0.5 0 + +scoreboard players reset @s trifles.block_lever diff --git a/data/_trifles/function/block_lever/on.mcfunction b/data/_trifles/function/block_lever/on.mcfunction new file mode 100644 index 0000000..d9d41d5 --- /dev/null +++ b/data/_trifles/function/block_lever/on.mcfunction @@ -0,0 +1,7 @@ +execute if block ~1 ~ ~ target[power=0] run setblock ~1 ~ ~ target[power=15] +execute if block ~-1 ~ ~ target[power=0] run setblock ~-1 ~ ~ target[power=15] +execute if block ~ ~ ~1 target[power=0] run setblock ~ ~ ~1 target[power=15] +execute if block ~ ~ ~-1 target[power=0] run setblock ~ ~ ~-1 target[power=15] +execute if block ~ ~1 ~ target[power=0] run setblock ~ ~1 ~ target[power=15] +execute if block ~ ~-1 ~ target[power=0] run setblock ~ ~-1 ~ target[power=15] +playsound minecraft:block.stone_button.click_on block @a ~ ~ ~ diff --git a/data/_trifles/function/block_lever/spawn_interaction.mcfunction b/data/_trifles/function/block_lever/spawn_interaction.mcfunction new file mode 100644 index 0000000..15c3070 --- /dev/null +++ b/data/_trifles/function/block_lever/spawn_interaction.mcfunction @@ -0,0 +1,4 @@ +particle minecraft:witch ~ ~ ~ .4 .4 .4 0 50 normal @a +playsound minecraft:block.stone_button.click_off master @a ~ ~ ~ 1 0 + +tag @s remove trifles.block_button_interaction_spawn diff --git a/data/_trifles/function/block_lever/succsess.mcfunction b/data/_trifles/function/block_lever/succsess.mcfunction new file mode 100644 index 0000000..7e0375a --- /dev/null +++ b/data/_trifles/function/block_lever/succsess.mcfunction @@ -0,0 +1,10 @@ +execute if block ~ ~ ~ lever[face=wall,facing=north] run summon interaction ~ ~ ~1 {Tags:["trifles.block_lever_interaction","trifles.block_lever_interaction_spawn","trifles.block_interaction"],width:1.05f,height:1.05f} +execute if block ~ ~ ~ lever[face=wall,facing=south] run summon interaction ~ ~ ~-1 {Tags:["trifles.block_lever_interaction","trifles.block_lever_interaction_spawn","trifles.block_interaction"],width:1.05f,height:1.05f} +execute if block ~ ~ ~ lever[face=wall,facing=west] run summon interaction ~1 ~ ~ {Tags:["trifles.block_lever_interaction","trifles.block_lever_interaction_spawn","trifles.block_interaction"],width:1.05f,height:1.05f} +execute if block ~ ~ ~ lever[face=wall,facing=east] run summon interaction ~-1 ~ ~ {Tags:["trifles.block_lever_interaction","trifles.block_lever_interaction_spawn","trifles.block_interaction"],width:1.05f,height:1.05f} +execute if block ~ ~ ~ lever[face=ceiling] run summon interaction ~ ~1 ~ {Tags:["trifles.block_lever_interaction","trifles.block_lever_interaction_spawn","trifles.block_interaction"],width:1.05f,height:1.05f} +execute if block ~ ~ ~ lever[face=floor] run summon interaction ~ ~-1 ~ {Tags:["trifles.block_lever_interaction","trifles.block_lever_interaction_spawn","trifles.block_interaction"],width:1.05f,height:1.05f} +execute if block ~ ~ ~ lever run setblock ~ ~ ~ air +execute as @e[tag=trifles.block_lever_interaction_spawn] at @s run function _trifles:block_lever/spawn_interaction +tellraw @a[distance=..10,tag=!global.ignore,tag=!global.ignore.gui] ["",{"text":"The Block Lever needs a adapter in form of a target block next to it","color":"yellow"}] + diff --git a/data/_trifles/function/click/detection.mcfunction b/data/_trifles/function/click/detection.mcfunction new file mode 100644 index 0000000..355cdb8 --- /dev/null +++ b/data/_trifles/function/click/detection.mcfunction @@ -0,0 +1,4 @@ +execute as @a[scores={trifles.fungusClick=1..}] run function _trifles:click/fungus +scoreboard players reset @a trifles.fungusClick + +schedule function _trifles:click/detection 5t diff --git a/data/_trifles/function/click/ender_eye.mcfunction b/data/_trifles/function/click/ender_eye.mcfunction new file mode 100644 index 0000000..e69de29 diff --git a/data/_trifles/function/click/fungus.mcfunction b/data/_trifles/function/click/fungus.mcfunction new file mode 100644 index 0000000..4ad7a71 --- /dev/null +++ b/data/_trifles/function/click/fungus.mcfunction @@ -0,0 +1,3 @@ +execute as @s[nbt={SelectedItem:{components:{"minecraft:custom_data":{trifles:{type:"pocketcat"}}}}}] at @s run function _trifles:pocketcat/toggle +execute as @s[nbt={SelectedItem:{components:{"minecraft:custom_data":{trifles:{type:"megastew"}}}}}] at @s run function _trifles:megastew/handle +execute as @s[nbt={SelectedItem:{components:{"minecraft:custom_data":{trifles:{type:"bible"}}}}}] at @s run function _trifles:bible/handle diff --git a/data/_trifles/function/click/use_ender_eye.mcfunction b/data/_trifles/function/click/use_ender_eye.mcfunction new file mode 100644 index 0000000..97ab803 --- /dev/null +++ b/data/_trifles/function/click/use_ender_eye.mcfunction @@ -0,0 +1,2 @@ +execute unless score @s trifles.enderEyeHoldClick matches 1 run function _trifles:click/ender_eye +scoreboard players set @s trifles.enderEyeHoldClick 1 diff --git a/data/_trifles/function/craft/bible.mcfunction b/data/_trifles/function/craft/bible.mcfunction new file mode 100644 index 0000000..6e4a3f0 --- /dev/null +++ b/data/_trifles/function/craft/bible.mcfunction @@ -0,0 +1,8 @@ +kill @e[type=item,tag=!global.ignore,tag=!global.ignore.kill,nbt={Item:{id:"minecraft:book",count:1}},distance=..0.5,sort=nearest,limit=1] +kill @e[type=item,tag=!global.ignore,tag=!global.ignore.kill,nbt={Item:{id:"minecraft:golden_apple",count:1}},distance=..0.5,sort=nearest,limit=1] + +particle minecraft:electric_spark ~ ~1 ~ 0.3 0.3 0.3 0 10 normal @a[tag=!global.ignore,tag=!global.ignore.gui] +playsound minecraft:block.anvil.place master @a[tag=!global.ignore,tag=!global.ignore.gui] ~ ~ ~ 1 2 +playsound minecraft:entity.wither.spawn master @a[tag=!global.ignore,tag=!global.ignore.gui] ~ ~ ~ 1 0 + +tag @s remove trifles.bible.item_craft diff --git a/data/_trifles/function/craft/coffee.mcfunction b/data/_trifles/function/craft/coffee.mcfunction new file mode 100644 index 0000000..ff1321f --- /dev/null +++ b/data/_trifles/function/craft/coffee.mcfunction @@ -0,0 +1,8 @@ +kill @e[type=item,tag=!global.ignore,tag=!global.ignore.kill,nbt={Item:{id:"minecraft:glass_bottle",components:{"minecraft:custom_data":{trifles:{is_gadget:1b,type:"cup"}}},count:1}},distance=..0.5,sort=nearest,limit=1] +kill @e[type=item,tag=!global.ignore,tag=!global.ignore.kill,nbt={Item:{id:"minecraft:cocoa_beans",count:4}},distance=..0.5,sort=nearest,limit=1] + +particle minecraft:electric_spark ~ ~1 ~ 0.3 0.3 0.3 0 10 normal @a[tag=!global.ignore,tag=!global.ignore.gui] +playsound minecraft:block.anvil.place master @a[tag=!global.ignore,tag=!global.ignore.gui] ~ ~ ~ 1 2 +playsound minecraft:block.brewing_stand.brew master @a[tag=!global.ignore,tag=!global.ignore.gui] ~ ~ ~ + +tag @s remove trifles.coffee.item_craft diff --git a/data/_trifles/function/craft/cup.mcfunction b/data/_trifles/function/craft/cup.mcfunction new file mode 100644 index 0000000..839a46c --- /dev/null +++ b/data/_trifles/function/craft/cup.mcfunction @@ -0,0 +1,6 @@ +kill @e[type=item,tag=!global.ignore,tag=!global.ignore.kill,nbt={Item: {id: "minecraft:quartz",count:3}},distance=..0.5,sort=nearest,limit=1] + +particle minecraft:electric_spark ~ ~1 ~ 0.3 0.3 0.3 0 10 normal @a[tag=!global.ignore,tag=!global.ignore.gui] +playsound minecraft:block.anvil.place master @a[tag=!global.ignore,tag=!global.ignore.gui] ~ ~ ~ 1 2 + +tag @s remove trifles.cup.item_craft diff --git a/data/_trifles/function/craft/dice.mcfunction b/data/_trifles/function/craft/dice.mcfunction new file mode 100644 index 0000000..b9fdbad --- /dev/null +++ b/data/_trifles/function/craft/dice.mcfunction @@ -0,0 +1,7 @@ +kill @e[type=item,tag=!global.ignore,tag=!global.ignore.kill,nbt={Item:{id:"minecraft:oak_planks",count:1}},distance=..0.5,sort=nearest,limit=1] +kill @e[type=item,tag=!global.ignore,tag=!global.ignore.kill,nbt={Item:{id:"minecraft:red_dye",count:4}},distance=..0.5,sort=nearest,limit=1] + +particle minecraft:electric_spark ~ ~1 ~ 0.3 0.3 0.3 0 10 normal @a[tag=!global.ignore,tag=!global.ignore.gui] +playsound minecraft:block.anvil.place master @a[tag=!global.ignore,tag=!global.ignore.gui] ~ ~ ~ 1 2 + +tag @s remove trifles.dice.item_craft diff --git a/data/_trifles/function/craft/espresso.mcfunction b/data/_trifles/function/craft/espresso.mcfunction new file mode 100644 index 0000000..3d3e6e6 --- /dev/null +++ b/data/_trifles/function/craft/espresso.mcfunction @@ -0,0 +1,9 @@ +kill @e[type=item,tag=!global.ignore,tag=!global.ignore.kill,nbt={Item:{id:"minecraft:glass_bottle",components:{"minecraft:custom_data":{trifles:{is_gadget:1b,type:"cup"}}},count:1}},distance=..0.5,sort=nearest,limit=1] +kill @e[type=item,tag=!global.ignore,tag=!global.ignore.kill,nbt={Item:{id:"minecraft:cocoa_beans",count:6}},distance=..0.5,sort=nearest,limit=1] +kill @e[type=item,tag=!global.ignore,tag=!global.ignore.kill,nbt={Item:{id:"minecraft:sugar",count:2}},distance=..0.5,sort=nearest,limit=1] + +particle minecraft:electric_spark ~ ~1 ~ 0.3 0.3 0.3 0 10 normal @a[tag=!global.ignore,tag=!global.ignore.gui] +playsound minecraft:block.anvil.place master @a[tag=!global.ignore,tag=!global.ignore.gui] ~ ~ ~ 1 2 +playsound minecraft:block.brewing_stand.brew master @a[tag=!global.ignore,tag=!global.ignore.gui] ~ ~ ~ + +tag @s remove trifles.espresso.item_craft diff --git a/data/_trifles/function/craft/hot_chocolate.mcfunction b/data/_trifles/function/craft/hot_chocolate.mcfunction new file mode 100644 index 0000000..b150280 --- /dev/null +++ b/data/_trifles/function/craft/hot_chocolate.mcfunction @@ -0,0 +1,9 @@ +kill @e[type=item,tag=!global.ignore,tag=!global.ignore.kill,nbt={Item:{id:"minecraft:glass_bottle",components:{"minecraft:custom_data":{trifles:{is_gadget:1b,type:"cup"}}},count:1}},distance=..0.5,sort=nearest,limit=1] +kill @e[type=item,tag=!global.ignore,tag=!global.ignore.kill,nbt={Item:{id:"minecraft:cocoa_beans",count:3}},distance=..0.5,sort=nearest,limit=1] +data merge entity @e[type=item,tag=!global.ignore,nbt={Item:{id:"minecraft:milk_bucket",count:1}},distance=..0.5,sort=nearest,limit=1] {Item:{id:"minecraft:bucket",count:1}} + +particle minecraft:electric_spark ~ ~1 ~ 0.3 0.3 0.3 0 10 normal @a[tag=!global.ignore,tag=!global.ignore.gui] +playsound minecraft:block.anvil.place master @a[tag=!global.ignore,tag=!global.ignore.gui] ~ ~ ~ 1 2 +playsound minecraft:block.brewing_stand.brew master @a[tag=!global.ignore,tag=!global.ignore.gui] ~ ~ ~ + +tag @s remove trifles.hot_chocolate.item_craft diff --git a/data/_trifles/function/craft/interaction_block.mcfunction b/data/_trifles/function/craft/interaction_block.mcfunction new file mode 100644 index 0000000..abd3421 --- /dev/null +++ b/data/_trifles/function/craft/interaction_block.mcfunction @@ -0,0 +1,7 @@ +kill @e[type=item,tag=!global.ignore,tag=!global.ignore.kill,nbt={Item: {id: "minecraft:redstone",count:4}},distance=..0.5,sort=nearest,limit=1] +kill @e[type=item,tag=!global.ignore,tag=!global.ignore.kill,nbt={Item: {id: "minecraft:glass",count:1}},distance=..0.5,sort=nearest,limit=1] + +particle minecraft:electric_spark ~ ~1 ~ 0.3 0.3 0.3 0 10 normal @a[tag=!global.ignore,tag=!global.ignore.gui] +playsound minecraft:block.anvil.place master @a[tag=!global.ignore,tag=!global.ignore.gui] ~ ~ ~ 1 2 + +tag @s remove trifles.interaction_block.item_craft diff --git a/data/_trifles/function/craft/megastew.mcfunction b/data/_trifles/function/craft/megastew.mcfunction new file mode 100644 index 0000000..08f4708 --- /dev/null +++ b/data/_trifles/function/craft/megastew.mcfunction @@ -0,0 +1,10 @@ +kill @e[type=item,tag=!global.ignore,tag=!global.ignore.kill,nbt={Item:{id:"minecraft:bowl",count:1}},distance=..0.5,sort=nearest,limit=1] +kill @e[type=item,tag=!global.ignore,tag=!global.ignore.kill,nbt={Item:{id:"minecraft:potato",count:1}},distance=..0.5,sort=nearest,limit=1] +kill @e[type=item,tag=!global.ignore,tag=!global.ignore.kill,nbt={Item:{id:"minecraft:carrot",count:1}},distance=..0.5,sort=nearest,limit=1] +kill @e[type=item,tag=!global.ignore,tag=!global.ignore.kill,nbt={Item:{id:"minecraft:cooked_beef",count:1}},distance=..0.5,sort=nearest,limit=1] +kill @e[type=item,tag=!global.ignore,tag=!global.ignore.kill,nbt={Item:{id:"minecraft:cooked_porkchop",count:1}},distance=..0.5,sort=nearest,limit=1] + +particle minecraft:electric_spark ~ ~1 ~ 0.3 0.3 0.3 0 10 normal @a[tag=!global.ignore,tag=!global.ignore.gui] +playsound minecraft:block.anvil.place master @a[tag=!global.ignore,tag=!global.ignore.gui] ~ ~ ~ 1 2 + +tag @s remove trifles.megastew.item_craft diff --git a/data/_trifles/function/craft/pocketcat.mcfunction b/data/_trifles/function/craft/pocketcat.mcfunction new file mode 100644 index 0000000..33cd9d5 --- /dev/null +++ b/data/_trifles/function/craft/pocketcat.mcfunction @@ -0,0 +1,9 @@ +kill @e[type=item,tag=!global.ignore,tag=!global.ignore.kill,nbt={Item:{id:"minecraft:leather",count:3}},distance=..0.5,sort=nearest,limit=1] +kill @e[type=item,tag=!global.ignore,tag=!global.ignore.kill,nbt={Item:{id:"minecraft:rabbit_hide",count:2}},distance=..0.5,sort=nearest,limit=1] +kill @e[type=item,tag=!global.ignore,tag=!global.ignore.kill,nbt={Item:{id:"minecraft:salmon",count:1}},distance=..0.5,sort=nearest,limit=1] + +particle minecraft:electric_spark ~ ~1 ~ 0.3 0.3 0.3 0 10 normal @a[tag=!global.ignore,tag=!global.ignore.gui] +playsound minecraft:block.anvil.place master @a[tag=!global.ignore,tag=!global.ignore.gui] ~ ~ ~ 1 2 +playsound minecraft:entity.cat.ambient master @a[tag=!global.ignore,tag=!global.ignore.gui] ~ ~ ~ + +tag @s remove trifles.cat_in_a_bag.item_craft diff --git a/data/_trifles/function/craft/tea.mcfunction b/data/_trifles/function/craft/tea.mcfunction new file mode 100644 index 0000000..6cedfed --- /dev/null +++ b/data/_trifles/function/craft/tea.mcfunction @@ -0,0 +1,10 @@ +kill @e[type=item,tag=!global.ignore,tag=!global.ignore.kill,nbt={Item:{id:"minecraft:glass_bottle",components:{"minecraft:custom_data":{trifles:{is_gadget:1b,type:"cup"}}},count:1}},distance=..0.5,sort=nearest,limit=1] +kill @e[type=item,tag=!global.ignore,tag=!global.ignore.kill,nbt={Item:{id:"minecraft:glow_berries",count:1}},distance=..0.5,sort=nearest,limit=1] +kill @e[type=item,tag=!global.ignore,tag=!global.ignore.kill,nbt={Item:{id:"minecraft:sweet_berries",count:1}},distance=..0.5,sort=nearest,limit=1] +data merge entity @e[type=item,tag=!global.ignore,nbt={Item:{id:"minecraft:honey_bottle",count:1}},distance=..0.5,sort=nearest,limit=1] {Item:{id:"minecraft:glass_bottle",count:1}} + +particle minecraft:electric_spark ~ ~1 ~ 0.3 0.3 0.3 0 10 normal @a[tag=!global.ignore,tag=!global.ignore.gui] +playsound minecraft:block.anvil.place master @a[tag=!global.ignore,tag=!global.ignore.gui] ~ ~ ~ 1 2 +playsound minecraft:block.brewing_stand.brew master @a[tag=!global.ignore,tag=!global.ignore.gui] ~ ~ ~ + +tag @s remove trifles.tea.item_craft diff --git a/data/_trifles/function/dependencies/check.mcfunction b/data/_trifles/function/dependencies/check.mcfunction new file mode 100644 index 0000000..7c77ba0 --- /dev/null +++ b/data/_trifles/function/dependencies/check.mcfunction @@ -0,0 +1,11 @@ +#declare storage racoonia:datapacks +#declare entity #provided + +scoreboard objectives add racoonia.dependencies dummy + +execute store result score #provided racoonia.dependencies run data get storage racoonia:datapacks racooniacore +execute unless score #provided racoonia.dependencies matches 2.. run tellraw @a [{"text":"Datapack ","color":"white"},{"text":"trifles","color":"green"},{"text":" needs ","color":"white"},{"text":"racooniacore","color":"green"},{"text":" version ","color":"white"},{"text":"2","color":"green"},{"text":" or greater, but version ","color":"white"},{"score":{"name":"#provided","objective":"racoonia.dependencies"},"color":"green"},{"text":" was provided.","color":"white"}] + +scoreboard objectives remove racoonia.dependencies + +function _trifles:load diff --git a/data/_trifles/function/dependencies/registration.mcfunction b/data/_trifles/function/dependencies/registration.mcfunction new file mode 100644 index 0000000..da95929 --- /dev/null +++ b/data/_trifles/function/dependencies/registration.mcfunction @@ -0,0 +1,4 @@ +#declare storage racoonia:datapacks + +data modify storage racoonia:datapacks trifles set value 2 +schedule function _trifles:dependencies/check 1t diff --git a/data/_trifles/function/dice/animation/keyframes.mcfunction b/data/_trifles/function/dice/animation/keyframes.mcfunction new file mode 100644 index 0000000..dc31874 --- /dev/null +++ b/data/_trifles/function/dice/animation/keyframes.mcfunction @@ -0,0 +1,40 @@ +# animation +execute if score @s trifles.diceAnimation matches 52 run data merge entity @s {ArmorItems:[{},{},{},{id:"minecraft:player_head",count:1,components:{profile:{properties:[{name:"textures",value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNmUyMmMyOThlN2M2MzM2YWYxNzkwOWFjMWYxZWU2ODM0YjU4YjFhM2NjOTlhYmEyNTVjYTdlYWViNDc2MTczIn19fQ=="}]}}}]} +execute if score @s trifles.diceAnimation matches 51 run data merge entity @s {ArmorItems:[{},{},{},{id:"minecraft:player_head",count:5b,components:{profile:{properties:[{name:"textures",value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZTBkMmEzY2U0OTk5ZmVkMzMwZDNhNWQwYTllMjE4ZTM3ZjRmNTc3MTk4MDg2NTczOTZkODMyMjM5ZTEyIn19fQ=="}]}}}]} +execute if score @s trifles.diceAnimation matches 50 run data merge entity @s {ArmorItems:[{},{},{},{id:"minecraft:player_head",count:6b,components:{profile:{properties:[{name:"textures",value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNDFhMmMwODg2MzdmZWU5YWUzYTM2ZGQ0OTZlODc2ZTY1N2Y1MDlkZTU1OTcyZGQxN2MxODc2N2VhZTFmM2U5In19fQ=="}]}}}]} +execute if score @s trifles.diceAnimation matches 49 run data merge entity @s {ArmorItems:[{},{},{},{id:"minecraft:player_head",count:3b,components:{profile:{properties:[{name:"textures",value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYWJlNjc3YTFlMTYzYTlmOWUwYWZjZmNkZTBjOTUzNjU1NTM0NzhmOTlhYjExMTUyYTRkOTdjZjg1ZGJlNjZmIn19fQ=="}]}}}]} +execute if score @s trifles.diceAnimation matches 48 run data merge entity @s {ArmorItems:[{},{},{},{id:"minecraft:player_head",count:2b,components:{profile:{properties:[{name:"textures",value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNzFiN2E3M2ZjOTM0YzlkZTkxNjBjMGZkNTlkZjZlNDJlZmQ1ZDAzNzhlMzQyYjY4NjEyY2ZlYzNlODk0ODM0YSJ9fX0="}]}}}]} +execute if score @s trifles.diceAnimation matches 47 run data merge entity @s {ArmorItems:[{},{},{},{id:"minecraft:player_head",count:5b,components:{profile:{properties:[{name:"textures",value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZTBkMmEzY2U0OTk5ZmVkMzMwZDNhNWQwYTllMjE4ZTM3ZjRmNTc3MTk4MDg2NTczOTZkODMyMjM5ZTEyIn19fQ=="}]}}}]} +execute if score @s trifles.diceAnimation matches 46 run data merge entity @s {ArmorItems:[{},{},{},{id:"minecraft:player_head",count:1b,components:{profile:{properties:[{name:"textures",value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNmUyMmMyOThlN2M2MzM2YWYxNzkwOWFjMWYxZWU2ODM0YjU4YjFhM2NjOTlhYmEyNTVjYTdlYWViNDc2MTczIn19fQ=="}]}}}]} +execute if score @s trifles.diceAnimation matches 45 run data merge entity @s {ArmorItems:[{},{},{},{id:"minecraft:player_head",count:3b,components:{profile:{properties:[{name:"textures",value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYWJlNjc3YTFlMTYzYTlmOWUwYWZjZmNkZTBjOTUzNjU1NTM0NzhmOTlhYjExMTUyYTRkOTdjZjg1ZGJlNjZmIn19fQ=="}]}}}]} +execute if score @s trifles.diceAnimation matches 44 run data merge entity @s {ArmorItems:[{},{},{},{id:"minecraft:player_head",count:6b,components:{profile:{properties:[{name:"textures",value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNDFhMmMwODg2MzdmZWU5YWUzYTM2ZGQ0OTZlODc2ZTY1N2Y1MDlkZTU1OTcyZGQxN2MxODc2N2VhZTFmM2U5In19fQ=="}]}}}]} +execute if score @s trifles.diceAnimation matches 43 run data merge entity @s {ArmorItems:[{},{},{},{id:"minecraft:player_head",count:3b,components:{profile:{properties:[{name:"textures",value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYWJlNjc3YTFlMTYzYTlmOWUwYWZjZmNkZTBjOTUzNjU1NTM0NzhmOTlhYjExMTUyYTRkOTdjZjg1ZGJlNjZmIn19fQ=="}]}}}]} +execute if score @s trifles.diceAnimation matches 42 run data merge entity @s {ArmorItems:[{},{},{},{id:"minecraft:player_head",count:2b,components:{profile:{properties:[{name:"textures",value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNzFiN2E3M2ZjOTM0YzlkZTkxNjBjMGZkNTlkZjZlNDJlZmQ1ZDAzNzhlMzQyYjY4NjEyY2ZlYzNlODk0ODM0YSJ9fX0="}]}}}]} +execute if score @s trifles.diceAnimation matches 41 run data merge entity @s {ArmorItems:[{},{},{},{id:"minecraft:player_head",count:4b,components:{profile:{properties:[{name:"textures",value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYWYyOTk2ZWZjMmJiMDU0ZjUzZmIwYmQxMDZlYmFlNjc1OTM2ZWZlMWZlZjQ0MWY2NTNjMmRjZTM0OTczOGUifX19"}]}}}]} +execute if score @s trifles.diceAnimation matches 39 run data merge entity @s {ArmorItems:[{},{},{},{id:"minecraft:player_head",count:5b,components:{profile:{properties:[{name:"textures",value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZTBkMmEzY2U0OTk5ZmVkMzMwZDNhNWQwYTllMjE4ZTM3ZjRmNTc3MTk4MDg2NTczOTZkODMyMjM5ZTEyIn19fQ=="}]}}}]} +execute if score @s trifles.diceAnimation matches 37 run data merge entity @s {ArmorItems:[{},{},{},{id:"minecraft:player_head",count:6b,components:{profile:{properties:[{name:"textures",value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNDFhMmMwODg2MzdmZWU5YWUzYTM2ZGQ0OTZlODc2ZTY1N2Y1MDlkZTU1OTcyZGQxN2MxODc2N2VhZTFmM2U5In19fQ=="}]}}}]} +execute if score @s trifles.diceAnimation matches 35 run data merge entity @s {ArmorItems:[{},{},{},{id:"minecraft:player_head",count:1b,components:{profile:{properties:[{name:"textures",value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNmUyMmMyOThlN2M2MzM2YWYxNzkwOWFjMWYxZWU2ODM0YjU4YjFhM2NjOTlhYmEyNTVjYTdlYWViNDc2MTczIn19fQ=="}]}}}]} +execute if score @s trifles.diceAnimation matches 33 run data merge entity @s {ArmorItems:[{},{},{},{id:"minecraft:player_head",count:2b,components:{profile:{properties:[{name:"textures",value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNzFiN2E3M2ZjOTM0YzlkZTkxNjBjMGZkNTlkZjZlNDJlZmQ1ZDAzNzhlMzQyYjY4NjEyY2ZlYzNlODk0ODM0YSJ9fX0="}]}}}]} +execute if score @s trifles.diceAnimation matches 31 run data merge entity @s {ArmorItems:[{},{},{},{id:"minecraft:player_head",count:4b,components:{profile:{properties:[{name:"textures",value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYWYyOTk2ZWZjMmJiMDU0ZjUzZmIwYmQxMDZlYmFlNjc1OTM2ZWZlMWZlZjQ0MWY2NTNjMmRjZTM0OTczOGUifX19"}]}}}]} +execute if score @s trifles.diceAnimation matches 28 run data merge entity @s {ArmorItems:[{},{},{},{id:"minecraft:player_head",count:3b,components:{profile:{properties:[{name:"textures",value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYWJlNjc3YTFlMTYzYTlmOWUwYWZjZmNkZTBjOTUzNjU1NTM0NzhmOTlhYjExMTUyYTRkOTdjZjg1ZGJlNjZmIn19fQ=="}]}}}]} +execute if score @s trifles.diceAnimation matches 26 run data merge entity @s {ArmorItems:[{},{},{},{id:"minecraft:player_head",count:1b,components:{profile:{properties:[{name:"textures",value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNmUyMmMyOThlN2M2MzM2YWYxNzkwOWFjMWYxZWU2ODM0YjU4YjFhM2NjOTlhYmEyNTVjYTdlYWViNDc2MTczIn19fQ=="}]}}}]} +execute if score @s trifles.diceAnimation matches 22 run data merge entity @s {ArmorItems:[{},{},{},{id:"minecraft:player_head",count:4b,components:{profile:{properties:[{name:"textures",value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYWYyOTk2ZWZjMmJiMDU0ZjUzZmIwYmQxMDZlYmFlNjc1OTM2ZWZlMWZlZjQ0MWY2NTNjMmRjZTM0OTczOGUifX19"}]}}}]} +execute if score @s trifles.diceAnimation matches 19 run data merge entity @s {ArmorItems:[{},{},{},{id:"minecraft:player_head",count:2b,components:{profile:{properties:[{name:"textures",value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNzFiN2E3M2ZjOTM0YzlkZTkxNjBjMGZkNTlkZjZlNDJlZmQ1ZDAzNzhlMzQyYjY4NjEyY2ZlYzNlODk0ODM0YSJ9fX0="}]}}}]} +execute if score @s trifles.diceAnimation matches 15 run data merge entity @s {ArmorItems:[{},{},{},{id:"minecraft:player_head",count:4b,components:{profile:{properties:[{name:"textures",value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYWYyOTk2ZWZjMmJiMDU0ZjUzZmIwYmQxMDZlYmFlNjc1OTM2ZWZlMWZlZjQ0MWY2NTNjMmRjZTM0OTczOGUifX19"}]}}}]} +execute if score @s trifles.diceAnimation matches 11 run data merge entity @s {ArmorItems:[{},{},{},{id:"minecraft:player_head",count:5b,components:{profile:{properties:[{name:"textures",value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZTBkMmEzY2U0OTk5ZmVkMzMwZDNhNWQwYTllMjE4ZTM3ZjRmNTc3MTk4MDg2NTczOTZkODMyMjM5ZTEyIn19fQ=="}]}}}]} +execute if score @s trifles.diceAnimation matches 6 run data merge entity @s {ArmorItems:[{},{},{},{id:"minecraft:player_head",count:3b,components:{profile:{properties:[{name:"textures",value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYWJlNjc3YTFlMTYzYTlmOWUwYWZjZmNkZTBjOTUzNjU1NTM0NzhmOTlhYjExMTUyYTRkOTdjZjg1ZGJlNjZmIn19fQ=="}]}}}]} +execute if score @s trifles.diceAnimation matches 1 run function _trifles:dice/roll_result + +# sound +execute if score @s[tag=!global.ignore,tag=!global.ignore.gui] trifles.diceAnimation matches 37..52 at @s run playsound minecraft:block.note_block.hat master @a[distance=..20] ~ ~ ~ 3 +execute if score @s[tag=!global.ignore,tag=!global.ignore.gui] trifles.diceAnimation matches 35 at @s run playsound minecraft:block.note_block.hat master @a[distance=..20] ~ ~ ~ 3 +execute if score @s[tag=!global.ignore,tag=!global.ignore.gui] trifles.diceAnimation matches 33 at @s run playsound minecraft:block.note_block.hat master @a[distance=..20] ~ ~ ~ 3 +execute if score @s[tag=!global.ignore,tag=!global.ignore.gui] trifles.diceAnimation matches 31 at @s run playsound minecraft:block.note_block.hat master @a[distance=..20] ~ ~ ~ 3 +execute if score @s[tag=!global.ignore,tag=!global.ignore.gui] trifles.diceAnimation matches 28 at @s run playsound minecraft:block.note_block.hat master @a[distance=..20] ~ ~ ~ 3 +execute if score @s[tag=!global.ignore,tag=!global.ignore.gui] trifles.diceAnimation matches 26 at @s run playsound minecraft:block.note_block.hat master @a[distance=..20] ~ ~ ~ 3 +execute if score @s[tag=!global.ignore,tag=!global.ignore.gui] trifles.diceAnimation matches 22 at @s run playsound minecraft:block.note_block.hat master @a[distance=..20] ~ ~ ~ 3 +execute if score @s[tag=!global.ignore,tag=!global.ignore.gui] trifles.diceAnimation matches 19 at @s run playsound minecraft:block.note_block.hat master @a[distance=..20] ~ ~ ~ 3 +execute if score @s[tag=!global.ignore,tag=!global.ignore.gui] trifles.diceAnimation matches 15 at @s run playsound minecraft:block.note_block.hat master @a[distance=..20] ~ ~ ~ 3 +execute if score @s[tag=!global.ignore,tag=!global.ignore.gui] trifles.diceAnimation matches 11 at @s run playsound minecraft:block.note_block.hat master @a[distance=..20] ~ ~ ~ 3 +execute if score @s[tag=!global.ignore,tag=!global.ignore.gui] trifles.diceAnimation matches 6 at @s run playsound minecraft:block.note_block.hat master @a[distance=..20] ~ ~ ~ 3 +execute if score @s[tag=!global.ignore,tag=!global.ignore.gui] trifles.diceAnimation matches 1 at @s run playsound minecraft:block.note_block.hat master @a[distance=..20] ~ ~ ~ 3 0.5 diff --git a/data/_trifles/function/dice/animation/loop.mcfunction b/data/_trifles/function/dice/animation/loop.mcfunction new file mode 100644 index 0000000..87afd22 --- /dev/null +++ b/data/_trifles/function/dice/animation/loop.mcfunction @@ -0,0 +1,4 @@ +execute as @e[type=armor_stand,tag=trifles.dice_rolling] run function _trifles:dice/rolling + +execute unless entity @e[type=armor_stand,tag=trifles.dice_rolling] run scoreboard players set trifles trifles.animationLoop 0 +execute if entity @e[type=armor_stand,tag=trifles.dice_rolling] run schedule function _trifles:dice/animation/loop 2t diff --git a/data/_trifles/function/dice/animation/start_loop.mcfunction b/data/_trifles/function/dice/animation/start_loop.mcfunction new file mode 100644 index 0000000..81de4d9 --- /dev/null +++ b/data/_trifles/function/dice/animation/start_loop.mcfunction @@ -0,0 +1,2 @@ +scoreboard players set trifles trifles.animationLoop 1 +function _trifles:dice/animation/loop diff --git a/data/_trifles/function/dice/break.mcfunction b/data/_trifles/function/dice/break.mcfunction new file mode 100644 index 0000000..d556c09 --- /dev/null +++ b/data/_trifles/function/dice/break.mcfunction @@ -0,0 +1,3 @@ +execute positioned ~ ~1.45 ~ run kill @e[type=interaction,tag=trifles.dice_interaction,tag=!global.ignore,tag=!global.ignore.kill,distance=..0.1,limit=1] +summon item ~ ~1.45 ~ {PickupDelay:10,Motion:[0.0,0.3,0.0],Item:{id:"minecraft:ghast_spawn_egg",count:1,components:{custom_name:'{"text":"Dice", "color":"aqua","italic":false}',lore:['{"text":"Play some dice games!","color":"white","italic":false}','{"text":" "}','{"text":"\\"God does not play dice.\\"","color":"gray"}','{"text":"- Albert Einstein","color":"gray"}','{"text":" "}','{"text":"ᴛᴇxᴛᴜʀᴇᴅ ʙʏ ꜱɪᴍᴏɴ₁₀₂"}'],custom_model_data:4000103,custom_data:{trifles:{is_gadget:1b,type:"dice"}},entity_data:{id:"minecraft:armor_stand",Marker:1b,Invisible:1b,Tags:["trifles.dice_spawn"],ArmorItems:[{},{},{},{id:"minecraft:player_head",count:1b,components:{profile:{properties:[{name:"textures",value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNmUyMmMyOThlN2M2MzM2YWYxNzkwOWFjMWYxZWU2ODM0YjU4YjFhM2NjOTlhYmEyNTVjYTdlYWViNDc2MTczIn19fQ=="}]}}}]}}}} +kill @s[tag=!global.ignore,tag=!global.ignore.kill] diff --git a/data/_trifles/function/dice/roll.mcfunction b/data/_trifles/function/dice/roll.mcfunction new file mode 100644 index 0000000..03b7f6d --- /dev/null +++ b/data/_trifles/function/dice/roll.mcfunction @@ -0,0 +1,5 @@ +#declare entity trifles + +tag @s add trifles.dice_rolling +scoreboard players set @s trifles.diceAnimation 52 +execute unless score trifles trifles.animationLoop matches 1 run function _trifles:dice/animation/start_loop diff --git a/data/_trifles/function/dice/roll_result.mcfunction b/data/_trifles/function/dice/roll_result.mcfunction new file mode 100644 index 0000000..949f7b2 --- /dev/null +++ b/data/_trifles/function/dice/roll_result.mcfunction @@ -0,0 +1,10 @@ +#declare entity #out + +execute store result score #out trifles.random run random value 1..6 + +execute if score #out trifles.random matches 1 run data merge entity @s {ArmorItems:[{},{},{},{id:"minecraft:player_head",count:1,components:{profile:{properties:[{name:"textures",value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNmUyMmMyOThlN2M2MzM2YWYxNzkwOWFjMWYxZWU2ODM0YjU4YjFhM2NjOTlhYmEyNTVjYTdlYWViNDc2MTczIn19fQ=="}]}}}]} +execute if score #out trifles.random matches 2 run data merge entity @s {ArmorItems:[{},{},{},{id:"minecraft:player_head",count:1,components:{profile:{properties:[{name:"textures",value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNzFiN2E3M2ZjOTM0YzlkZTkxNjBjMGZkNTlkZjZlNDJlZmQ1ZDAzNzhlMzQyYjY4NjEyY2ZlYzNlODk0ODM0YSJ9fX0="}]}}}]} +execute if score #out trifles.random matches 3 run data merge entity @s {ArmorItems:[{},{},{},{id:"minecraft:player_head",count:1,components:{profile:{properties:[{name:"textures",value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYWJlNjc3YTFlMTYzYTlmOWUwYWZjZmNkZTBjOTUzNjU1NTM0NzhmOTlhYjExMTUyYTRkOTdjZjg1ZGJlNjZmIn19fQ=="}]}}}]} +execute if score #out trifles.random matches 4 run data merge entity @s {ArmorItems:[{},{},{},{id:"minecraft:player_head",count:1,components:{profile:{properties:[{name:"textures",value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYWYyOTk2ZWZjMmJiMDU0ZjUzZmIwYmQxMDZlYmFlNjc1OTM2ZWZlMWZlZjQ0MWY2NTNjMmRjZTM0OTczOGUifX19"}]}}}]} +execute if score #out trifles.random matches 5 run data merge entity @s {ArmorItems:[{},{},{},{id:"minecraft:player_head",count:1,components:{profile:{properties:[{name:"textures",value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZTBkMmEzY2U0OTk5ZmVkMzMwZDNhNWQwYTllMjE4ZTM3ZjRmNTc3MTk4MDg2NTczOTZkODMyMjM5ZTEyIn19fQ=="}]}}}]} +execute if score #out trifles.random matches 6 run data merge entity @s {ArmorItems:[{},{},{},{id:"minecraft:player_head",count:1,components:{profile:{properties:[{name:"textures",value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNDFhMmMwODg2MzdmZWU5YWUzYTM2ZGQ0OTZlODc2ZTY1N2Y1MDlkZTU1OTcyZGQxN2MxODc2N2VhZTFmM2U5In19fQ=="}]}}}]} diff --git a/data/_trifles/function/dice/rolling.mcfunction b/data/_trifles/function/dice/rolling.mcfunction new file mode 100644 index 0000000..af3eca5 --- /dev/null +++ b/data/_trifles/function/dice/rolling.mcfunction @@ -0,0 +1,3 @@ +execute if score @s trifles.diceAnimation matches ..0 run tag @s remove trifles.dice_rolling +execute as @s[tag=trifles.dice_rolling] run function _trifles:dice/animation/keyframes +scoreboard players remove @s trifles.diceAnimation 1 diff --git a/data/_trifles/function/dice/spawn.mcfunction b/data/_trifles/function/dice/spawn.mcfunction new file mode 100644 index 0000000..394e6e0 --- /dev/null +++ b/data/_trifles/function/dice/spawn.mcfunction @@ -0,0 +1,5 @@ +summon interaction ~ ~ ~ {Tags:["trifles.dice_interaction"]} +tp @s[tag=!global.ignore,tag=!global.ignore.pos] ~ ~-1.45 ~ 0 0 +execute at @s as @e[type=armor_stand,tag=trifles.dice,distance=..0.1] run function _trifles:dice/break +tag @s remove trifles.dice_spawn +tag @s add trifles.dice diff --git a/data/_trifles/function/drink/chocolate.mcfunction b/data/_trifles/function/drink/chocolate.mcfunction new file mode 100644 index 0000000..819cfed --- /dev/null +++ b/data/_trifles/function/drink/chocolate.mcfunction @@ -0,0 +1,4 @@ +advancement revoke @s only _trifles:drink/chocolate + +tag @s add trifles.cup_replace +schedule function _trifles:drink/cup_replace 1t diff --git a/data/_trifles/function/drink/coffee.mcfunction b/data/_trifles/function/drink/coffee.mcfunction new file mode 100644 index 0000000..334c511 --- /dev/null +++ b/data/_trifles/function/drink/coffee.mcfunction @@ -0,0 +1,4 @@ +advancement revoke @s only _trifles:drink/coffee + +tag @s add trifles.cup_replace +schedule function _trifles:drink/cup_replace 1t diff --git a/data/_trifles/function/drink/cup_replace.mcfunction b/data/_trifles/function/drink/cup_replace.mcfunction new file mode 100644 index 0000000..1cf9daf --- /dev/null +++ b/data/_trifles/function/drink/cup_replace.mcfunction @@ -0,0 +1,2 @@ +item replace entity @a[tag=trifles.cup_replace] weapon.mainhand with glass_bottle[custom_name='{"text":"Empty Cup","color":"aqua","italic":false}',lore=['{"text":"A empty cup","color":"white","italic":false}','{"text":" "}','{"text":"Your cup is neither half full","color":"gray"}','{"text":"nor half empty. It\'s just empty!","color":"gray"}','{"text":" "}','{"text":"ᴛᴇxᴛᴜʀᴇᴅ ʙʏ ɢᴏᴛᴜʀᴀ"}'],custom_model_data=4000104,custom_data={trifles:{is_gadget: 1b,type:"cup"}}] +tag @a remove trifles.cup_replace diff --git a/data/_trifles/function/drink/espresso.mcfunction b/data/_trifles/function/drink/espresso.mcfunction new file mode 100644 index 0000000..07f6b57 --- /dev/null +++ b/data/_trifles/function/drink/espresso.mcfunction @@ -0,0 +1,4 @@ +advancement revoke @s only _trifles:drink/espresso + +tag @s add trifles.cup_replace +schedule function _trifles:drink/cup_replace 1t diff --git a/data/_trifles/function/drink/tea.mcfunction b/data/_trifles/function/drink/tea.mcfunction new file mode 100644 index 0000000..dec3c72 --- /dev/null +++ b/data/_trifles/function/drink/tea.mcfunction @@ -0,0 +1,4 @@ +advancement revoke @s only _trifles:drink/tea + +tag @s add trifles.cup_replace +schedule function _trifles:drink/cup_replace 1t diff --git a/data/_trifles/function/interaction/find_attacked.mcfunction b/data/_trifles/function/interaction/find_attacked.mcfunction new file mode 100644 index 0000000..dab5d26 --- /dev/null +++ b/data/_trifles/function/interaction/find_attacked.mcfunction @@ -0,0 +1,4 @@ +scoreboard players set #bool racoonia.math 0 +execute on attacker store result score #bool racoonia.math if entity @s[tag=this] + +execute if score #bool racoonia.math matches 1 run function _trifles:interaction/handle_attacked diff --git a/data/_trifles/function/interaction/find_targeted.mcfunction b/data/_trifles/function/interaction/find_targeted.mcfunction new file mode 100644 index 0000000..d44f6cb --- /dev/null +++ b/data/_trifles/function/interaction/find_targeted.mcfunction @@ -0,0 +1,4 @@ +scoreboard players set #bool racoonia.math 0 +execute on target store result score #bool racoonia.math if entity @s[tag=this] + +execute if score #bool racoonia.math matches 1 run function _trifles:interaction/handle_targeted diff --git a/data/_trifles/function/interaction/handle_attacked.mcfunction b/data/_trifles/function/interaction/handle_attacked.mcfunction new file mode 100644 index 0000000..69f323c --- /dev/null +++ b/data/_trifles/function/interaction/handle_attacked.mcfunction @@ -0,0 +1,5 @@ +execute as @s[tag=trifles.dice_interaction] at @s positioned ~ ~-1.45 ~ as @e[type=minecraft:armor_stand,tag=trifles.dice,distance=..0.1] run function _trifles:dice/break +execute as @s[tag=trifles.block_button_interaction] at @s run function _trifles:block_button/break +execute as @s[tag=trifles.block_lever_interaction] at @s run function _trifles:block_lever/break + +data remove entity @s attack diff --git a/data/_trifles/function/interaction/handle_targeted.mcfunction b/data/_trifles/function/interaction/handle_targeted.mcfunction new file mode 100644 index 0000000..00a2434 --- /dev/null +++ b/data/_trifles/function/interaction/handle_targeted.mcfunction @@ -0,0 +1,5 @@ +execute as @s[tag=trifles.dice_interaction] at @s positioned ~ ~-1.45 ~ as @e[type=minecraft:armor_stand,tag=trifles.dice,distance=..0.1] run function _trifles:dice/roll +execute as @s[tag=trifles.block_button_interaction, scores={trifles.block_button_off=2}] at @s run function _trifles:block_button/click +execute as @s[tag=trifles.block_lever_interaction] at @s run function _trifles:block_lever/click + +data remove entity @s interaction diff --git a/data/_trifles/function/interaction/left.mcfunction b/data/_trifles/function/interaction/left.mcfunction new file mode 100644 index 0000000..a41827f --- /dev/null +++ b/data/_trifles/function/interaction/left.mcfunction @@ -0,0 +1,5 @@ +advancement revoke @s only _trifles:click/interaction_left + +tag @s add this +execute as @e[type=interaction,distance=..6] run function _trifles:interaction/find_attacked +tag @s remove this \ No newline at end of file diff --git a/data/_trifles/function/interaction/right.mcfunction b/data/_trifles/function/interaction/right.mcfunction new file mode 100644 index 0000000..7b4ff12 --- /dev/null +++ b/data/_trifles/function/interaction/right.mcfunction @@ -0,0 +1,5 @@ +advancement revoke @s only _trifles:click/interaction_right + +tag @s add this +execute as @e[type=interaction,distance=..6] run function _trifles:interaction/find_targeted +tag @s remove this \ No newline at end of file diff --git a/data/_trifles/function/interaction_block/fail.mcfunction b/data/_trifles/function/interaction_block/fail.mcfunction new file mode 100644 index 0000000..d5d6c80 --- /dev/null +++ b/data/_trifles/function/interaction_block/fail.mcfunction @@ -0,0 +1,3 @@ +summon item ~ ~ ~ {PickupDelay:10,Item:{id:"minecraft:ghast_spawn_egg",count:1,components:{custom_name:'{"text":"Interaction Block","color":"aqua","italic":false}',lore:['{"text":"Disguise your button or lever as a block","color":"white","italic":false}','{"text":" "}','{"text":"\\"Follow your bliss and the","color":"gray","italic":true}','{"text":"universe will open doors","color":"gray"}','{"text":"where there were only walls.\\"","color":"gray"}','{"text":"- Joseph Campbell","color":"gray","italic":true}','{"text":" "}','{"text":"ᴛᴇxᴛᴜʀᴇᴅ ʙʏ ꜱɪᴍᴏɴ₁₀₂"}'],custom_model_data:4000112,custom_data:{trifles:{is_gadget:1b,type:"interaction_block"}},entity_data:{id:"minecraft:marker",Tags:["trifles.interaction_block_spawn"]}}}} +tellraw @a[distance=..10,tag=!global.ignore,tag=!global.ignore.gui] ["",{"text":"The Interaction Block can't be placed here.","bold":true,"underlined":true,"color":"red"},"\n",{"text":"Interaction Blocks must be placed on Levers or Stone Buttons and can't be placed on other Interaction Block","color":"red"}] +playsound minecraft:entity.villager.no master @a[tag=!global.ignore,tag=!global.ignore.gui] ~ ~ ~ diff --git a/data/_trifles/function/interaction_block/spawn.mcfunction b/data/_trifles/function/interaction_block/spawn.mcfunction new file mode 100644 index 0000000..7c570ef --- /dev/null +++ b/data/_trifles/function/interaction_block/spawn.mcfunction @@ -0,0 +1,13 @@ +execute unless block ~ ~ ~ stone_button unless block ~ ~ ~ lever run function _trifles:interaction_block/fail + +execute if block ~ ~ ~ stone_button if entity @e[type=interaction,tag=trifles.block_interaction,distance=..1] if block ~ ~ ~ stone_button run function _trifles:interaction_block/fail +execute if block ~ ~ ~ stone_button unless entity @e[type=interaction,tag=trifles.block_interaction,distance=..1] unless block ~ ~ ~ stone_button run function _trifles:interaction_block/fail +execute if block ~ ~ ~ stone_button if entity @e[type=interaction,tag=trifles.block_interaction,distance=..1] unless block ~ ~ ~ stone_button run function _trifles:interaction_block/fail +execute if block ~ ~ ~ stone_button unless entity @e[type=interaction,tag=trifles.block_interaction,distance=..1] if block ~ ~ ~ stone_button run function _trifles:block_button/succsess + +execute if block ~ ~ ~ lever if entity @e[type=interaction,tag=trifles.block_interaction,distance=..1] if block ~ ~ ~ lever run function _trifles:interaction_block/fail +execute if block ~ ~ ~ lever unless entity @e[type=interaction,tag=trifles.block_interaction,distance=..1] unless block ~ ~ ~ lever run function _trifles:interaction_block/fail +execute if block ~ ~ ~ lever if entity @e[type=interaction,tag=trifles.block_interaction,distance=..1] unless block ~ ~ ~ lever run function _trifles:interaction_block/fail +execute if block ~ ~ ~ lever unless entity @e[type=interaction,tag=trifles.block_interaction,distance=..1] if block ~ ~ ~ lever run function _trifles:block_lever/succsess + +kill @s diff --git a/data/_trifles/function/load.mcfunction b/data/_trifles/function/load.mcfunction new file mode 100644 index 0000000..11c4ba8 --- /dev/null +++ b/data/_trifles/function/load.mcfunction @@ -0,0 +1,22 @@ +#declare storage racoonia:datapacks +#declare entity trifles + +scoreboard objectives add trifles.fungusClick minecraft.used:minecraft.warped_fungus_on_a_stick +scoreboard objectives add trifles.hasPocketcat dummy +scoreboard objectives add trifles.pocketcatDisabled dummy +scoreboard objectives add trifles.pocketcatCooldown dummy +scoreboard objectives add trifles.megastewCooldown dummy +execute unless score trifles trifles.megastewCooldown matches 1.. run scoreboard players set trifles trifles.megastewCooldown 60 +scoreboard objectives add trifles.diceAnimation dummy +scoreboard objectives add trifles.animationLoop dummy +scoreboard objectives add trifles.block_button_off dummy +scoreboard objectives add trifles.block_lever dummy +scoreboard objectives add trifles.random dummy +scoreboard objectives add trifles.enderEyeHoldClick minecraft.used:minecraft.ender_eye + +# scoreboard for enabeling trifles crafting +scoreboard objectives add trifles.enabled dummy + +function _trifles:main +function _trifles:pocketcat/check +function _trifles:click/detection diff --git a/data/_trifles/function/main.mcfunction b/data/_trifles/function/main.mcfunction new file mode 100644 index 0000000..89179bb --- /dev/null +++ b/data/_trifles/function/main.mcfunction @@ -0,0 +1,65 @@ +#declare entity #pocketcat +#declare entity #megastew +#declare entity #dice +#declare entity #hot_beverages +#declare entity #bible +#declare entity #interaction_block + +# Handle + # Mega Stew + scoreboard players remove @a[scores={trifles.megastewCooldown=1..}] trifles.megastewCooldown 1 + + # Pocket cat + execute as @a[scores={trifles.hasPocketcat=1..}] unless score @s trifles.pocketcatDisabled matches 1 at @s run function _trifles:pocketcat/handle + scoreboard players remove @a[scores={trifles.pocketcatCooldown=1..}] trifles.pocketcatCooldown 1 + + # Dice + execute as @e[tag=trifles.dice_spawn] at @s run function _trifles:dice/spawn + + # Block Button + execute as @e[type=marker,tag=trifles.interaction_block_spawn] at @s run function _trifles:interaction_block/spawn + execute as @e[type=interaction,tag=trifles.block_button_interaction] at @s if block ~ ~ ~ air run function _trifles:block_button/break + execute as @e[type=interaction,tag=trifles.block_lever_interaction] at @s if block ~ ~ ~ air run function _trifles:block_lever/break + +# Craft + # Pocket Cat + execute if score #pocketcat trifles.enabled matches 1 at @e[type=item,nbt={Item:{id:"minecraft:leather",count:3}}] at @e[type=item,nbt={Item:{id:"minecraft:rabbit_hide",count:2}},distance=..0.5,sort=nearest,limit=1] at @e[type=item,nbt={Item:{id:"minecraft:salmon",count:1}},distance=..0.5,sort=nearest,limit=1] if block ~ ~-0.1 ~ minecraft:crafting_table run summon item ~ ~ ~ {PickupDelay:20,Motion:[0.0,0.3,0.0],Tags:["trifles.cat_in_a_bag.item_craft"],Item:{id:"minecraft:warped_fungus_on_a_stick",count:1,components:{custom_name:'{"text":"Cat in a Bag","color":"aqua","italic":false}',lore:['{"text":"Meows when a creeper is nearby","color":"white","italic":false}','{"text":" "}','{"text":"Rightclick to toggle","color":"yellow","italic":false}','{"text":" "}','{"text":"“A happy arrangement:","color":"gray","italic":true}','{"text":"many people prefer cats to other","color":"gray"}','{"text":"people,and many cats prefer","color":"gray"}','{"text":"people to other cats.”","color":"gray"}','{"text":"– Mason Cooley","color":"gray"}','{"text":" "}','{"text":"ᴛᴇxᴛᴜʀᴇᴅ ʙʏ ɢᴏᴛᴜʀᴀ"}'],unbreakable:{show_in_tooltip:false},custom_model_data:4000101,custom_data:{trifles:{is_gadget:1b,type:"pocketcat"}}}}} + execute as @e[type=item,tag=trifles.cat_in_a_bag.item_craft] at @s run function _trifles:craft/pocketcat + + # Megastew + execute if score #megastew trifles.enabled matches 1 at @e[type=item,nbt={Item:{id:"minecraft:bowl",count:1}}] at @e[type=item,nbt={Item:{id:"minecraft:potato",count:1}},distance=..0.5,sort=nearest,limit=1] at @e[type=item,nbt={Item:{id:"minecraft:carrot",count:1}},distance=..0.5,sort=nearest,limit=1] at @e[type=item,nbt={Item:{id:"minecraft:cooked_beef",count:1}},distance=..0.5,sort=nearest,limit=1] at @e[type=item,nbt={Item:{id:"minecraft:cooked_porkchop",count:1}},distance=..0.5,sort=nearest,limit=1] if block ~ ~-0.1 ~ minecraft:crafting_table run summon item ~ ~ ~ {PickupDelay:20,Motion:[0.0,0.3,0.0],Tags:["trifles.megastew.item_craft"],Item:{id:"minecraft:warped_fungus_on_a_stick",count:1,components:{custom_name:'{"text":"Mega Stew","color":"aqua","italic":false}',lore:['{"text":"INFINITE STEW!!!","color":"white","italic":false}','{"text":" "}','{"text":"“Stew\'s so comforting on a rainy day.”","color":"gray"}','{"text":" "}','{"text":"ᴛᴇxᴛᴜʀᴇᴅ ʙʏ ꜱɪᴍᴏɴ₁₀₂"}'],unbreakable:{show_in_tooltip:false},custom_model_data:4000102,custom_data:{trifles:{is_gadget:1b,type:"megastew"}}}}} + execute as @e[type=item,tag=trifles.megastew.item_craft] at @s run function _trifles:craft/megastew + + # Dice + execute if score #dice trifles.enabled matches 1 at @e[type=item,nbt={Item:{id:"minecraft:oak_planks",count:1}}] at @e[type=item,nbt={Item:{id:"minecraft:red_dye",count:4}},distance=..0.5,sort=nearest,limit=1] if block ~ ~-0.1 ~ minecraft:crafting_table run summon item ~ ~ ~ {PickupDelay:20,Motion:[0.0,0.3,0.0],Tags:["trifles.dice.item_craft"],Item:{id:"minecraft:ghast_spawn_egg",count:1b,components:{custom_name:'{"text":"Dice","color":"aqua","italic":false}',lore:['{"text":"Play some dice games!","color":"white","italic":false}','{"text":" "}','{"text":"\\"God does not play dice.\\"","color":"gray"}','{"text":"- Albert Einstein","color":"gray"}','{"text":" "}','{"text":"ᴛᴇxᴛᴜʀᴇᴅ ʙʏ ꜱɪᴍᴏɴ₁₀₂"}'],custom_model_data:4000103,custom_data:{trifles:{is_gadget:1b,type:"dice"}},entity_data:{id:"minecraft:armor_stand",Marker:1b,Invisible:1b,Tags:["trifles.dice_spawn"],ArmorItems:[{},{},{},{id:"minecraft:player_head",count:1,components:{profile:{properties:[{name:"textures",value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNmUyMmMyOThlN2M2MzM2YWYxNzkwOWFjMWYxZWU2ODM0YjU4YjFhM2NjOTlhYmEyNTVjYTdlYWViNDc2MTczIn19fQ=="}]}}}]}}}} + execute as @e[type=item,tag=trifles.dice.item_craft] at @s run function _trifles:craft/dice + + # Cup + execute if score #hot_beverages trifles.enabled matches 1 at @e[type=item,nbt={Item:{id:"minecraft:quartz",count:3}}] if block ~ ~-0.1 ~ minecraft:crafting_table run summon item ~ ~ ~ {PickupDelay:20,Motion:[0.0,0.3,0.0],Tags:["trifles.cup.item_craft"],Item:{id:"minecraft:glass_bottle",count:3b,components:{custom_name:'{"text":"Empty Cup","color":"aqua","italic":false}',lore:['{"text":"A empty cup","color":"white","italic":false}','{"text":" "}','{"text":"Your cup is neither half full","color":"gray"}','{"text":"nor half empty. It\'s just empty!","color":"gray"}','{"text":" "}','{"text":"ᴛᴇxᴛᴜʀᴇᴅ ʙʏ ɢᴏᴛᴜʀᴀ"}'],custom_model_data:4000104,custom_data:{trifles:{is_gadget:1b,type:"cup"}}}}} + execute as @e[type=item,tag=trifles.cup.item_craft] at @s run function _trifles:craft/cup + + # Coffee + execute if score #hot_beverages trifles.enabled matches 1 at @e[type=item,nbt={Item:{id:"minecraft:glass_bottle",components:{"minecraft:custom_data":{trifles:{is_gadget:1b,type:"cup"}}},count:1}}] at @e[type=item,nbt={Item:{id:"minecraft:cocoa_beans",count:4}},distance=..0.5,sort=nearest,limit=1] if block ~ ~-0.1 ~ minecraft:crafting_table run summon item ~ ~ ~ {PickupDelay:20,Motion:[0.0,0.3,0.0],Tags:["trifles.coffee.item_craft"],Item:{id:"minecraft:potion",count:1,components:{custom_name:'{"text":"Coffee","color":"aqua","italic":false}',lore:['{"text":"A nice hot cup of coffee","color":"white","italic":false}','{"text":" "}','{"text":"“I would rather suffer from","color":"gray","italic":true}','{"text":"coffee than be senseless.”","color":"gray"}','{"text":" — Napoleon Bonaparte","color":"gray"}','{"text":" "}','{"text":"ᴛᴇxᴛᴜʀᴇᴅ ʙʏ ɢᴏᴛᴜʀᴀ"}'],custom_model_data:4000105,custom_data:{trifles:{is_gadget:1b,type:"coffee",group:"hot_beverage"}},potion_contents:{custom_effects:[{id:"night_vision",amplifier:1b,duration:2400},{id:"hunger",amplifier:1b,duration:100}],custom_color:16777215}}}} + execute as @e[type=item,tag=trifles.coffee.item_craft] at @s run function _trifles:craft/coffee + + # Hot Chocolate + execute if score #hot_beverages trifles.enabled matches 1 at @e[type=item,nbt={Item:{id:"minecraft:glass_bottle",components:{"minecraft:custom_data":{trifles:{is_gadget:1b,type:"cup"}}}}}] at @e[type=item,nbt={Item:{id:"minecraft:cocoa_beans",count:3}},distance=..0.5,sort=nearest,limit=1] at @e[type=item,nbt={Item:{id:"minecraft:milk_bucket",count:1}},distance=..0.5,sort=nearest,limit=1] if block ~ ~-0.1 ~ minecraft:crafting_table run summon item ~ ~ ~ {PickupDelay:20,Motion:[0.0,0.3,0.0],Tags:["trifles.hot_chocolate.item_craft"],Item:{id:"minecraft:potion",count:1,components:{custom_name:'{"text":"Hot Chocolate","color":"aqua","italic":false}',lore:['{"text":"A cup of hot chocolate","color":"white","italic":false}','{"text":" "}','{"text":"“Blood is really warm,it\'s like","color":"gray","italic":true}','{"text":"drinking hot chocolate but with","color":"gray"}','{"text":"more screaming.” - Ryan Mecum","color":"gray"}','{"text":" "}','{"text":"ᴛᴇxᴛᴜʀᴇᴅ ʙʏ ɢᴏᴛᴜʀᴀ"}'],custom_model_data:4000106,custom_data:{trifles:{is_gadget:1b,type:"hot_chocolate",group:"hot_beverage"}},potion_contents:{custom_effects:[{id:"regeneration",amplifier:1b,duration:100},{id:"saturation",amplifier:1b,duration:20}],custom_color:16777215}}}} + execute as @e[type=item,tag=trifles.hot_chocolate.item_craft] at @s run function _trifles:craft/hot_chocolate + + # Tea + execute if score #hot_beverages trifles.enabled matches 1 at @e[type=item,nbt={Item:{id:"minecraft:glass_bottle",components:{"minecraft:custom_data":{trifles:{is_gadget:1b,type:"cup"}}},count:1}}] at @e[type=item,nbt={Item:{id:"minecraft:glow_berries",count:1}},distance=..0.5,sort=nearest,limit=1] at @e[type=item,nbt={Item:{id:"minecraft:sweet_berries",count:1}},distance=..0.5,sort=nearest,limit=1] at @e[type=item,nbt={Item:{id:"minecraft:honey_bottle",count:1}},distance=..0.5,sort=nearest,limit=1] if block ~ ~-0.1 ~ minecraft:crafting_table run summon item ~ ~ ~ {PickupDelay:20,Motion:[0.0,0.3,0.0],Tags:["trifles.tea.item_craft"],Item:{id:"minecraft:potion",count:1b,components:{custom_name:'{"text":"Tea","color":"aqua","italic":false}',lore:['{"text":"A cup of tea","color":"white","italic":false}','{"text":" "}','{"text":"“Where there’s tea there’s hope.”","color":"gray","italic":true}','{"text":"— Arthur Wing Pinero","color":"gray"}','{"text":" "}','{"text":"ᴛᴇxᴛᴜʀᴇᴅ ʙʏ ɢᴏᴛᴜʀᴀ"}'],custom_model_data:4000107,custom_data:{trifles:{is_gadget:1b,type:"tea",group:"hot_beverage"}},potion_contents:{custom_effects:[{id:"slow_falling",amplifier:0b,duration:200}],custom_color:16777215}}}} + execute as @e[type=item,tag=trifles.tea.item_craft] at @s run function _trifles:craft/tea + + # Espresso + execute if score #hot_beverages trifles.enabled matches 1 at @e[type=item,nbt={Item:{id:"minecraft:glass_bottle",components:{"minecraft:custom_data":{trifles:{is_gadget:1b,type:"cup"}}},count:1}}] at @e[type=item,nbt={Item:{id:"minecraft:cocoa_beans",count:6}},distance=..0.5,sort=nearest,limit=1] at @e[type=item,nbt={Item:{id:"minecraft:sugar",count:2}},distance=..0.5,sort=nearest,limit=1] if block ~ ~-0.1 ~ minecraft:crafting_table run summon item ~ ~ ~ {PickupDelay:20,Motion:[0.0,0.3,0.0],Tags:["trifles.espresso.item_craft"],Item:{id:"minecraft:potion",count:1,components:{custom_name:'{"text":"Espresso","color":"aqua","italic":false}',lore:['{"text":"A nice hot cup of coffee","color":"white","italic":false}','{"text":" "}','{"text":"“Without my morning coffee","color":"gray","italic":true}','{"text":"I\'m just like a dried up piece","color":"gray"}','{"text":"of roast goat.” — J.S. Bach","color":"gray"}','{"text":" "}','{"text":"ᴛᴇxᴛᴜʀᴇᴅ ʙʏ ɢᴏᴛᴜʀᴀ"}'],custom_model_data:4000108,custom_data:{trifles:{is_gadget:1b,type:"espresso",group:"hot_beverage"}},potion_contents:{custom_effects:[{id:"speed",amplifier:0b,duration:1200},{id:"hunger",amplifier:1b,duration:100}],custom_color:16777215}}}} + execute as @e[type=item,tag=trifles.espresso.item_craft] at @s run function _trifles:craft/espresso + + # Bible + execute if score #bible trifles.enabled matches 1 at @e[type=item,nbt={Item:{id:"minecraft:book",count:1}}] at @e[type=item,nbt={Item:{id:"minecraft:golden_apple",count:1}},distance=..0.5,sort=nearest,limit=1] if block ~ ~-0.1 ~ minecraft:crafting_table run summon item ~ ~ ~ {PickupDelay:20,Motion:[0.0,0.3,0.0],Tags:["trifles.bible.item_craft"],Item:{id:"minecraft:warped_fungus_on_a_stick",count:1,components:{custom_name:'{"text":"Bible","color":"aqua","italic":false}',lore:['{"text":"The holy scriptures","color":"white","italic":false}','{"text":" "}','{"text":"“I am with you always,","color":"gray"}','{"text":"even unto the end of the world.”","color":"gray"}','{"text":"(Matthew 28:20)","color":"gray"}','{"text":" "}','{"text":"ᴛᴇxᴛᴜʀᴇᴅ ʙʏ ꜱɪᴍᴏɴ₁₀₂"}'],unbreakable:{show_in_tooltip:false},custom_model_data:4000109,custom_data:{trifles:{is_gadget:1b,type:"bible"}}}}} + execute as @e[type=item,tag=trifles.bible.item_craft] at @s run function _trifles:craft/bible + + # Interaction Block + execute if score #interaction_block trifles.enabled matches 1 at @e[type=item,nbt={Item:{id:"minecraft:redstone",count:4}}] at @e[type=item,nbt={Item:{id:"minecraft:glass",count:1}},distance=..0.5,sort=nearest,limit=1] if block ~ ~-0.1 ~ minecraft:crafting_table run summon item ~ ~ ~ {PickupDelay:20,Motion:[0.0,0.3,0.0],Tags:["trifles.interaction_block.item_craft"],Item:{id:"minecraft:ghast_spawn_egg",count:1,components:{custom_name:'{"text":"Interaction Block","color":"aqua","italic":false}',lore:['{"text":"Disguise your button or lever as a block","color":"white","italic":false}','{"text":" "}','{"text":"\\"Follow your bliss and the","color":"gray","italic":true}','{"text":"universe will open doors","color":"gray"}','{"text":"where there were only walls.\\"","color":"gray"}','{"text":"- Joseph Campbell","color":"gray","italic":true}','{"text":" "}','{"text":"ᴛᴇxᴛᴜʀᴇᴅ ʙʏ ꜱɪᴍᴏɴ₁₀₂"}'],custom_model_data:4000112,custom_data:{trifles:{is_gadget:1b,type:"interaction_block"}},entity_data:{id:"minecraft:marker",Tags:["trifles.interaction_block_spawn"]}}}} + execute as @e[type=item,tag=trifles.interaction_block.item_craft] at @s run function _trifles:craft/interaction_block + +schedule function _trifles:main 20t diff --git a/data/_trifles/function/megastew/eat.mcfunction b/data/_trifles/function/megastew/eat.mcfunction new file mode 100644 index 0000000..c67e19d --- /dev/null +++ b/data/_trifles/function/megastew/eat.mcfunction @@ -0,0 +1,8 @@ +#declare entity trifles + +playsound minecraft:entity.generic.eat master @a[distance=..10,tag=!global.ignore,tag=!global.ignore.gui] ~ ~ ~ +playsound minecraft:entity.generic.drink master @a[distance=..10,tag=!global.ignore,tag=!global.ignore.gui] ~ ~ ~ +playsound minecraft:entity.player.burp master @a[distance=..10,tag=!global.ignore,tag=!global.ignore.gui] ~ ~ ~ +effect give @s[tag=!global.ignore] saturation 1 3 true +execute store result score @s trifles.megastewCooldown run scoreboard players get trifles trifles.megastewCooldown +scoreboard players add @s milestones.eaten 1 diff --git a/data/_trifles/function/megastew/fail.mcfunction b/data/_trifles/function/megastew/fail.mcfunction new file mode 100644 index 0000000..2200093 --- /dev/null +++ b/data/_trifles/function/megastew/fail.mcfunction @@ -0,0 +1,2 @@ +tellraw @s[tag=!global.ignore,tag=!global.ignore.gui] ["",{"text":"Your Stew will be replenished in ","color":"red","hoverEvent":{"action":"show_text","contents":[{"text":"It's still in the process cooking!","color":"red"}]}},{"score":{"name":"@s","objective":"trifles.megastewCooldown"},"bold":true,"color":"red","hoverEvent":{"action":"show_text","contents":[{"text":"It's still in the process cooking!","color":"red"}]}},{"text":" seconds.","color":"red","hoverEvent":{"action":"show_text","contents":[{"text":"It's still in the process cooking!","color":"red"}]}}] +playsound minecraft:block.wood.break master @a[distance=..10,tag=!global.ignore,tag=!global.ignore.gui] ~ ~ ~ diff --git a/data/_trifles/function/megastew/handle.mcfunction b/data/_trifles/function/megastew/handle.mcfunction new file mode 100644 index 0000000..3933256 --- /dev/null +++ b/data/_trifles/function/megastew/handle.mcfunction @@ -0,0 +1,2 @@ +execute if score @s trifles.megastewCooldown matches 1.. run function _trifles:megastew/fail +execute unless score @s trifles.megastewCooldown matches 1.. run function _trifles:megastew/eat diff --git a/data/_trifles/function/pocketcat/alert.mcfunction b/data/_trifles/function/pocketcat/alert.mcfunction new file mode 100644 index 0000000..725650e --- /dev/null +++ b/data/_trifles/function/pocketcat/alert.mcfunction @@ -0,0 +1,7 @@ +#declare function racooniacore:coin_toss +#declare objective racoonia.random dummy + +function racooniacore:coin_toss +execute if score @s racoonia.random matches 0 run playsound minecraft:entity.cat.ambient master @s[tag=!global.ignore,tag=!global.ignore.gui] ~ ~ ~ 1 1 +execute if score @s racoonia.random matches 1 run playsound minecraft:entity.cat.hiss master @s[tag=!global.ignore,tag=!global.ignore.gui] ~ ~ ~ 1 1 +scoreboard players set @s[tag=!global.ignore] trifles.pocketcatCooldown 3 diff --git a/data/_trifles/function/pocketcat/check.mcfunction b/data/_trifles/function/pocketcat/check.mcfunction new file mode 100644 index 0000000..a02049d --- /dev/null +++ b/data/_trifles/function/pocketcat/check.mcfunction @@ -0,0 +1,4 @@ +scoreboard players set @a trifles.hasPocketcat 0 +scoreboard players set @a[nbt={Inventory:[{tag:{trifles:{type:"pocketcat"}}}]}] trifles.hasPocketcat 1 + +schedule function _trifles:pocketcat/check 60t diff --git a/data/_trifles/function/pocketcat/handle.mcfunction b/data/_trifles/function/pocketcat/handle.mcfunction new file mode 100644 index 0000000..e7e3496 --- /dev/null +++ b/data/_trifles/function/pocketcat/handle.mcfunction @@ -0,0 +1 @@ +execute unless score @s trifles.pocketcatCooldown matches 1.. at @e[type=minecraft:creeper, distance=..15] at @s run function _trifles:pocketcat/alert \ No newline at end of file diff --git a/data/_trifles/function/pocketcat/toggle.mcfunction b/data/_trifles/function/pocketcat/toggle.mcfunction new file mode 100644 index 0000000..d39f343 --- /dev/null +++ b/data/_trifles/function/pocketcat/toggle.mcfunction @@ -0,0 +1,8 @@ +#declare objective racoonia.math +#declare entity #2 + +scoreboard players add @s trifles.pocketcatDisabled 1 +scoreboard players operation @s trifles.pocketcatDisabled %= #2 racoonia.math +playsound minecraft:entity.cat.purr master @s[tag=!global.ignore,tag=!global.ignore.gui] ~ ~ ~ 1 1 +execute if score @s trifles.pocketcatDisabled matches 0 run title @s[tag=!global.ignore,tag=!global.ignore.gui] actionbar {"text":"Pocket cat is awake","color":"gold"} +execute if score @s trifles.pocketcatDisabled matches 1 run title @s[tag=!global.ignore,tag=!global.ignore.gui] actionbar {"text":"Pocket cat is sleeping","color":"gold"} diff --git a/data/_trifles/predicate/bible_special.json b/data/_trifles/predicate/bible_special.json new file mode 100644 index 0000000..341b926 --- /dev/null +++ b/data/_trifles/predicate/bible_special.json @@ -0,0 +1,4 @@ +{ + "condition": "minecraft:random_chance", + "chance": 0.15 +} diff --git a/data/global/advancement/trifles.json b/data/global/advancement/trifles.json new file mode 100644 index 0000000..07b7116 --- /dev/null +++ b/data/global/advancement/trifles.json @@ -0,0 +1,33 @@ +{ + "display": { + "title": "Trifles", + "description": "Useful little things", + "icon": { + "id": "player_head", + "components": { + "profile": { + "id": [ + 363475115, + -764392676, + -1389005259, + -1800740244 + ], + "properties": [ + { + "name": "textures", + "value": "eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYjA0ODMxZjdhN2Q4ZjYyNGM5NjMzOTk2ZTM3OThlZGFkNDlhNWQ5YmNkMThlY2Y3NWJmYWU2NmJlNDhhMGE2YiJ9fX0=" + } + ] + } + } + }, + "announce_to_chat": false, + "show_toast": false + }, + "parent": "global:racoonia", + "criteria": { + "trigger": { + "trigger": "tick" + } + } +} \ No newline at end of file diff --git a/data/minecraft/tags/function/load.json b/data/minecraft/tags/function/load.json new file mode 100644 index 0000000..096cea6 --- /dev/null +++ b/data/minecraft/tags/function/load.json @@ -0,0 +1,5 @@ +{ + "values": [ + "_trifles:dependencies/registration" + ] +} \ No newline at end of file diff --git a/data/trifles/advancement/bible.json b/data/trifles/advancement/bible.json new file mode 100644 index 0000000..daa891a --- /dev/null +++ b/data/trifles/advancement/bible.json @@ -0,0 +1,43 @@ +{ + "display": { + "icon": { + "id": "warped_fungus_on_a_stick", + "components": { + "custom_model_data": 4000109, + "custom_data": { + "opendata": { + "no_override": 1 + } + } + } + }, + "title": "\"God's\" Words", + "description": "Craft a bible", + "frame": "task", + "show_toast": true, + "announce_to_chat": true, + "hidden": true + }, + "parent": "trifles:pocketcat", + "criteria": { + "requirement": { + "trigger": "inventory_changed", + "conditions": { + "items": [ + { + "items": [ + "warped_fungus_on_a_stick" + ], + "components": { + "custom_data": { + "trifles": { + "type": "bible" + } + } + } + } + ] + } + } + } +} diff --git a/data/trifles/advancement/coffee.json b/data/trifles/advancement/coffee.json new file mode 100644 index 0000000..08381b8 --- /dev/null +++ b/data/trifles/advancement/coffee.json @@ -0,0 +1,40 @@ +{ + "display": { + "icon": { + "id": "potion", + "components": { + "custom_model_data": 4000105, + "custom_data": { + "opendata": { + "no_override": 1 + } + }, + "potion_contents": { + "custom_color": 16777215 + } + } + }, + "title": "A brewtiful night", + "description": "Stay awake!", + "show_toast": true, + "announce_to_chat": true, + "hidden": true + }, + "parent": "trifles:cup", + "criteria": { + "requirement": { + "trigger": "consume_item", + "conditions": { + "item": { + "components": { + "custom_data": { + "trifles": { + "type": "coffee" + } + } + } + } + } + } + } +} diff --git a/data/trifles/advancement/cup.json b/data/trifles/advancement/cup.json new file mode 100644 index 0000000..33fbafe --- /dev/null +++ b/data/trifles/advancement/cup.json @@ -0,0 +1,43 @@ +{ + "display": { + "icon": { + "id": "glass_bottle", + "components": { + "custom_model_data": 4000104, + "custom_data": { + "opendata": { + "no_override": 1 + } + } + } + }, + "title": "Now fill it up", + "description": "Half empty or half full? Just Empty!", + "frame": "task", + "show_toast": true, + "announce_to_chat": true, + "hidden": true + }, + "parent": "racoonia:root", + "criteria": { + "requirement": { + "trigger": "inventory_changed", + "conditions": { + "items": [ + { + "items": [ + "glass_bottle" + ], + "components": { + "custom_data": { + "trifles": { + "type": "cup" + } + } + } + } + ] + } + } + } +} diff --git a/data/trifles/advancement/dice.json b/data/trifles/advancement/dice.json new file mode 100644 index 0000000..84a1052 --- /dev/null +++ b/data/trifles/advancement/dice.json @@ -0,0 +1,43 @@ +{ + "display": { + "icon": { + "id": "ghast_spawn_egg", + "components": { + "custom_model_data": 4000103, + "custom_data": { + "opendata": { + "no_override": 1 + } + } + } + }, + "title": "Alea iacta est", + "description": "Craft a Dice", + "frame": "task", + "show_toast": true, + "announce_to_chat": true, + "hidden": true + }, + "parent": "racoonia:root", + "criteria": { + "requirement": { + "trigger": "inventory_changed", + "conditions": { + "items": [ + { + "items": [ + "ghast_spawn_egg" + ], + "components": { + "custom_data": { + "trifles": { + "type": "dice" + } + } + } + } + ] + } + } + } +} diff --git a/data/trifles/advancement/espresso.json b/data/trifles/advancement/espresso.json new file mode 100644 index 0000000..8d681f0 --- /dev/null +++ b/data/trifles/advancement/espresso.json @@ -0,0 +1,40 @@ +{ + "display": { + "icon": { + "id": "potion", + "components": { + "custom_model_data": 4000108, + "custom_data": { + "opendata": { + "no_override": 1 + } + }, + "potion_contents": { + "custom_color": 16777215 + } + } + }, + "title": "Espresso yourself", + "description": "Gotta go fast!", + "show_toast": true, + "announce_to_chat": true, + "hidden": true + }, + "parent": "trifles:cup", + "criteria": { + "requirement": { + "trigger": "consume_item", + "conditions": { + "item": { + "components": { + "custom_data": { + "trifles": { + "type": "espresso" + } + } + } + } + } + } + } +} diff --git a/data/trifles/advancement/hot_beverage.json b/data/trifles/advancement/hot_beverage.json new file mode 100644 index 0000000..446567d --- /dev/null +++ b/data/trifles/advancement/hot_beverage.json @@ -0,0 +1,40 @@ +{ + "display": { + "icon": { + "id": "potion", + "components": { + "custom_model_data": 4000105, + "custom_data": { + "opendata": { + "no_override": 1 + } + }, + "potion_contents": { + "custom_color": 16777215 + } + } + }, + "title": "Hot hot hot!", + "description": "Don't burn your toung", + "show_toast": true, + "announce_to_chat": true, + "hidden": true + }, + "parent": "trifles:dice", + "criteria": { + "requirement": { + "trigger": "consume_item", + "conditions": { + "item": { + "components": { + "custom_data": { + "trifles": { + "type": "hot_beverage" + } + } + } + } + } + } + } +} diff --git a/data/trifles/advancement/hot_chocolate.json b/data/trifles/advancement/hot_chocolate.json new file mode 100644 index 0000000..96570e2 --- /dev/null +++ b/data/trifles/advancement/hot_chocolate.json @@ -0,0 +1,40 @@ +{ + "display": { + "icon": { + "id": "potion", + "components": { + "custom_model_data": 4000106, + "custom_data": { + "opendata": { + "no_override": 1 + } + }, + "potion_contents": { + "custom_color": 16777215 + } + } + }, + "title": "Warm your insides", + "description": "So warm and tasty!", + "show_toast": true, + "announce_to_chat": true, + "hidden": true + }, + "parent": "trifles:cup", + "criteria": { + "requirement": { + "trigger": "consume_item", + "conditions": { + "item": { + "components": { + "custom_data": { + "trifles": { + "type": "hot_chocolate" + } + } + } + } + } + } + } +} diff --git a/data/trifles/advancement/interaction_block.json b/data/trifles/advancement/interaction_block.json new file mode 100644 index 0000000..1e6a0ce --- /dev/null +++ b/data/trifles/advancement/interaction_block.json @@ -0,0 +1,43 @@ +{ + "display": { + "icon": { + "id": "ghast_spawn_egg", + "components": { + "custom_model_data": 4000112, + "custom_data": { + "opendata": { + "no_override": 1 + } + } + } + }, + "title": "Secret Button", + "description": "Craft a Interaction Block", + "frame": "task", + "show_toast": true, + "announce_to_chat": true, + "hidden": true + }, + "parent": "trifles:megastew", + "criteria": { + "requirement": { + "trigger": "inventory_changed", + "conditions": { + "items": [ + { + "items": [ + "ghast_spawn_egg" + ], + "components": { + "custom_data": { + "trifles": { + "type": "interaction_block" + } + } + } + } + ] + } + } + } +} diff --git a/data/trifles/advancement/megastew.json b/data/trifles/advancement/megastew.json new file mode 100644 index 0000000..082f27d --- /dev/null +++ b/data/trifles/advancement/megastew.json @@ -0,0 +1,43 @@ +{ + "display": { + "icon": { + "id": "warped_fungus_on_a_stick", + "components": { + "custom_model_data": 4000102, + "custom_data": { + "opendata": { + "no_override": 1 + } + } + } + }, + "title": "Infinite Stew!!!", + "description": "Craft a Mega Stew", + "frame": "task", + "show_toast": true, + "announce_to_chat": true, + "hidden": true + }, + "parent": "trifles:hot_beverage", + "criteria": { + "requirement": { + "trigger": "inventory_changed", + "conditions": { + "items": [ + { + "items": [ + "warped_fungus_on_a_stick" + ], + "components": { + "custom_data": { + "trifles": { + "type": "megastew" + } + } + } + } + ] + } + } + } +} diff --git a/data/trifles/advancement/pocketcat.json b/data/trifles/advancement/pocketcat.json new file mode 100644 index 0000000..6738856 --- /dev/null +++ b/data/trifles/advancement/pocketcat.json @@ -0,0 +1,43 @@ +{ + "display": { + "icon": { + "id": "warped_fungus_on_a_stick", + "components": { + "custom_model_data": 4000101, + "custom_data": { + "opendata": { + "no_override": 1 + } + } + } + }, + "title": "Fluffy Companion", + "description": "Craft a cat in a bag", + "frame": "task", + "show_toast": true, + "announce_to_chat": true, + "hidden": true + }, + "parent": "trifles:interaction_block", + "criteria": { + "requirement": { + "trigger": "inventory_changed", + "conditions": { + "items": [ + { + "items": [ + "warped_fungus_on_a_stick" + ], + "components": { + "custom_data": { + "trifles": { + "type": "pocketcat" + } + } + } + } + ] + } + } + } +} diff --git a/data/trifles/advancement/tea.json b/data/trifles/advancement/tea.json new file mode 100644 index 0000000..3bd2f8d --- /dev/null +++ b/data/trifles/advancement/tea.json @@ -0,0 +1,40 @@ +{ + "display": { + "icon": { + "id": "potion", + "components": { + "custom_model_data": 4000107, + "custom_data": { + "opendata": { + "no_override": 1 + } + }, + "potion_contents": { + "custom_color": 16777215 + } + } + }, + "title": "Quali-tea", + "description": "Sipping tea", + "show_toast": true, + "announce_to_chat": true, + "hidden": true + }, + "parent": "trifles:cup", + "criteria": { + "requirement": { + "trigger": "consume_item", + "conditions": { + "item": { + "components": { + "custom_data": { + "trifles": { + "type": "tea" + } + } + } + } + } + } + } +} diff --git a/data/trifles/function/get/bible.mcfunction b/data/trifles/function/get/bible.mcfunction new file mode 100644 index 0000000..8f57a60 --- /dev/null +++ b/data/trifles/function/get/bible.mcfunction @@ -0,0 +1 @@ +give @s warped_fungus_on_a_stick[custom_name='{"text":"Bible","color":"aqua","italic":false}',lore=['{"text":"The holy scriptures","color":"white","italic":false}','{"text":" "}','{"text":"“I am with you always,","color":"gray"}','{"text":"even unto the end of the world.”","color":"gray"}','{"text":"(Matthew 28:20)","color":"gray"}','{"text":" "}','{"text":"ᴛᴇxᴛᴜʀᴇᴅ ʙʏ ꜱɪᴍᴏɴ₁₀₂"}'],custom_model_data=4000109,custom_data={trifles:{is_gadget:1b,type:"bible"}}] 1 diff --git a/data/trifles/function/get/coffee.mcfunction b/data/trifles/function/get/coffee.mcfunction new file mode 100644 index 0000000..6d6a0bf --- /dev/null +++ b/data/trifles/function/get/coffee.mcfunction @@ -0,0 +1 @@ +give @s potion[custom_name='{"text":"Coffee","color":"aqua","italic":false}',lore=['{"text":"A nice hot cup of coffee","color":"white","italic":false}','{"text":" "}','{"text":"“I would rather suffer from","color":"gray","italic":true}','{"text":"coffee than be senseless.”","color":"gray"}','{"text":" — Napoleon Bonaparte","color":"gray"}','{"text":" "}','{"text":"ᴛᴇxᴛᴜʀᴇᴅ ʙʏ ɢᴏᴛᴜʀᴀ"}'],custom_model_data=4000105,custom_data={trifles:{is_gadget: 1b,type:"coffee",group:"hot_beverage"}},potion_contents={custom_effects:[{id:"night_vision",amplifier: 0,duration: 2400},{id:"hunger",amplifier: 1,duration: 100}],custom_color: 16777215}] 1 diff --git a/data/trifles/function/get/cup.mcfunction b/data/trifles/function/get/cup.mcfunction new file mode 100644 index 0000000..3f352b7 --- /dev/null +++ b/data/trifles/function/get/cup.mcfunction @@ -0,0 +1 @@ +give @s glass_bottle[custom_name='{"text":"Empty Cup","color":"aqua","italic":false}',lore=['{"text":"A empty cup","color":"white","italic":false}','{"text":" "}','{"text":"Your cup is neither half full","color":"gray"}','{"text":"nor half empty. It\'s just empty!","color":"gray"}','{"text":" "}','{"text":"ᴛᴇxᴛᴜʀᴇᴅ ʙʏ ɢᴏᴛᴜʀᴀ"}'],custom_model_data=4000104,custom_data={trifles:{is_gadget: 1b,type:"cup"}}] 1 \ No newline at end of file diff --git a/data/trifles/function/get/dice.mcfunction b/data/trifles/function/get/dice.mcfunction new file mode 100644 index 0000000..d63f059 --- /dev/null +++ b/data/trifles/function/get/dice.mcfunction @@ -0,0 +1 @@ +give @s ghast_spawn_egg[custom_name='{"text":"Dice", "color":"aqua","italic":false}',lore=['{"text":"Play some dice games!","color":"white","italic":false}','{"text":" "}','{"text":"\\"God does not play dice.\\"","color":"gray"}','{"text":"- Albert Einstein","color":"gray"}','{"text":" "}','{"text":"ᴛᴇxᴛᴜʀᴇᴅ ʙʏ ꜱɪᴍᴏɴ₁₀₂"}'],custom_model_data=4000103,custom_data={trifles:{is_gadget: 1b,type:"dice"}},entity_data={id:"armor_stand",Marker:1b,Invisible:1b,Tags:["trifles.dice_spawn"],ArmorItems:[{},{},{},{id:"player_head",count: 1,components:{profile:{properties:[{name:"textures",value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNmUyMmMyOThlN2M2MzM2YWYxNzkwOWFjMWYxZWU2ODM0YjU4YjFhM2NjOTlhYmEyNTVjYTdlYWViNDc2MTczIn19fQ=="}]}}}]}] 1 diff --git a/data/trifles/function/get/espresso.mcfunction b/data/trifles/function/get/espresso.mcfunction new file mode 100644 index 0000000..bb0d427 --- /dev/null +++ b/data/trifles/function/get/espresso.mcfunction @@ -0,0 +1 @@ +give @s potion[custom_name='{"text":"Espresso","color":"aqua","italic":false}',lore=['{"text":"A nice hot cup of coffee","color":"white","italic":false}','{"text":" "}','{"text":"“Without my morning coffee","color":"gray","italic":true}','{"text":"I\'m just like a dried up piece","color":"gray"}','{"text":"of roast goat.” — J.S. Bach","color":"gray"}','{"text":" "}','{"text":"ᴛᴇxᴛᴜʀᴇᴅ ʙʏ ɢᴏᴛᴜʀᴀ"}'],custom_model_data=4000108,custom_data={trifles:{is_gadget: 1b,type:"espresso",group:"hot_beverage"}},potion_contents={custom_effects:[{id:"speed",amplifier: 1,duration: 1200},{id: "hunger",amplifier: 1,duration: 100}],custom_color: 16777215}] 1 diff --git a/data/trifles/function/get/hot_chocolate.mcfunction b/data/trifles/function/get/hot_chocolate.mcfunction new file mode 100644 index 0000000..d3e0543 --- /dev/null +++ b/data/trifles/function/get/hot_chocolate.mcfunction @@ -0,0 +1 @@ +give @s potion[custom_name='{"text":"Hot Chocolate","color":"aqua","italic":false}',lore=['{"text":"A cup of hot chocolate","color":"white","italic":false}','{"text":" "}','{"text":"“Blood is really warm, it\'s like","color":"gray","italic":true}','{"text":"drinking hot chocolate but with","color":"gray"}','{"text":"more screaming.” - Ryan Mecum","color":"gray"}','{"text":" "}','{"text":"ᴛᴇxᴛᴜʀᴇᴅ ʙʏ ɢᴏᴛᴜʀᴀ"}'],custom_model_data=4000106,custom_data={trifles:{is_gadget: 1b,type:"hot_chocolate",group:"hot_beverage"}},potion_contents={custom_effects:[{id:"regeneration",amplifier: 1,duration: 100},{id: "saturation",amplifier: 1,duration: 20}],custom_color: 16777215}] 1 diff --git a/data/trifles/function/get/interaction_block.mcfunction b/data/trifles/function/get/interaction_block.mcfunction new file mode 100644 index 0000000..fb3d879 --- /dev/null +++ b/data/trifles/function/get/interaction_block.mcfunction @@ -0,0 +1 @@ +give @s ghast_spawn_egg[custom_name='{"text":"Interaction Block","color":"aqua","italic":false}',lore=['{"text":"Disguise your button or lever as a block","color":"white","italic":false}','{"text":" "}','{"text":"\\"Follow your bliss and the","color":"gray","italic":true}','{"text":"universe will open doors","color":"gray"}','{"text":"where there were only walls.\\"","color":"gray"}','{"text":"- Joseph Campbell","color":"gray","italic":true}','{"text":" "}','{"text":"ᴛᴇxᴛᴜʀᴇᴅ ʙʏ ꜱɪᴍᴏɴ₁₀₂"}'],custom_model_data=4000112,custom_data={trifles:{is_gadget: 1b,type:"interaction_block"}},entity_data={id:"marker",Tags:["trifles.interaction_block_spawn"]}] 1 diff --git a/data/trifles/function/get/megastew.mcfunction b/data/trifles/function/get/megastew.mcfunction new file mode 100644 index 0000000..45ec586 --- /dev/null +++ b/data/trifles/function/get/megastew.mcfunction @@ -0,0 +1 @@ +give @s warped_fungus_on_a_stick[custom_name='{"text":"Mega Stew","color":"aqua","italic":false}',lore=['{"text":"INFINITE STEW!!!","color":"white","italic":false}','{"text":" "}','{"text":"“Stew\'s so comforting on a rainy day.”","color":"gray"}','{"text":" "}','{"text":"ᴛᴇxᴛᴜʀᴇᴅ ʙʏ ꜱɪᴍᴏɴ₁₀₂"}'],custom_model_data=4000102,custom_data={trifles:{is_gadget: 1b,type:"megastew"}}] 1 diff --git a/data/trifles/function/get/pocketcat.mcfunction b/data/trifles/function/get/pocketcat.mcfunction new file mode 100644 index 0000000..2b20858 --- /dev/null +++ b/data/trifles/function/get/pocketcat.mcfunction @@ -0,0 +1 @@ +give @s warped_fungus_on_a_stick[custom_name='{"text":"Cat in a Bag","color":"aqua","italic":false}',lore=['{"text":"Meows when a creeper is nearby","color":"white","italic":false}','{"text":" "}','{"text":"Rightclick to toggle","color":"yellow","italic":false}','{"text":" "}','{"text":"“A happy arrangement:","color":"gray","italic":true}','{"text":"many people prefer cats to other","color":"gray"}','{"text":"people, and many cats prefer","color":"gray"}','{"text":"people to other cats.”","color":"gray"}','{"text":"– Mason Cooley","color":"gray"}','{"text":" "}','{"text":"ᴛᴇxᴛᴜʀᴇᴅ ʙʏ ɢᴏᴛᴜʀᴀ"}'],custom_model_data=4000101,custom_data={trifles:{is_gadget: 1b,type:"pocketcat"}}] 1 diff --git a/data/trifles/function/get/tea.mcfunction b/data/trifles/function/get/tea.mcfunction new file mode 100644 index 0000000..616d59e --- /dev/null +++ b/data/trifles/function/get/tea.mcfunction @@ -0,0 +1 @@ +give @s potion[custom_name='{"text":"Tea","color":"aqua","italic":false}',lore=['{"text":"A cup of tea","color":"white","italic":false}','{"text":" "}','{"text":"“Where there’s tea there’s hope.”","color":"gray","italic":true}','{"text":"— Arthur Wing Pinero","color":"gray"}','{"text":" "}','{"text":"ᴛᴇxᴛᴜʀᴇᴅ ʙʏ ɢᴏᴛᴜʀᴀ"}'],custom_model_data=4000107,custom_data={trifles:{is_gadget: 1b,type:"tea",group:"hot_beverage"}},potion_contents={custom_effects:[{id:"slow_falling",amplifier: 0,duration: 200}],custom_color: 16777215}] 1 diff --git a/pack.mcmeta b/pack.mcmeta new file mode 100644 index 0000000..87ebc99 --- /dev/null +++ b/pack.mcmeta @@ -0,0 +1,10 @@ +{ + "pack": { + "pack_format": 48, + "description": "Cool gadgets in minecraft.", + "supported_formats": { + "min_inclusive": 48, + "max_inclusive": 48 + } + } +} diff --git a/pack.png b/pack.png new file mode 100644 index 0000000000000000000000000000000000000000..c7bbaea7eb941e8f4a4ed51861f64fd4db19dc65 GIT binary patch literal 267 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!63?wyl`GbKJV{wqX6T`Z5GB1G~mUKs7M+SzC z{oH>NS%G}%0G|-oECz-M28MbDhTFGqJ2Nm$WMEjqz~BRvWni#n6_N*1oFzei!T+Iv zA=tk{2qakG5n0T@z;^(I8MCf+asmZYJY5_^G=fXddh;Dn;9v=0n^5#$xctYKZZ*}w znc}V|{r@(dC@b!8FbtX9u}W%sb@Lo%HP-U{0G9sYr5wzskFW8b_t;Hvn(1m<&v wZV$R8Zv`1^nJ=-nPfd~2NGjd_A>