diff --git a/Origins Datapack/data/origins/advancement/avian_eat_meat.json b/Origins Datapack/data/origins/advancement/avian_eat_meat.json new file mode 100644 index 0000000..1f8c04f --- /dev/null +++ b/Origins Datapack/data/origins/advancement/avian_eat_meat.json @@ -0,0 +1,35 @@ +{ + "criteria": { + "requirement": { + "trigger": "minecraft:consume_item", + "conditions": { + "item": { + "items": [ + "minecraft:cooked_beef", + "minecraft:cooked_chicken", + "minecraft:cooked_mutton", + "minecraft:cooked_porkchop", + "minecraft:cooked_rabbit", + "minecraft:cooked_cod", + "minecraft:cooked_salmon", + "minecraft:pufferfish", + "minecraft:tropical_fish", + "minecraft:beef", + "minecraft:porkchop", + "minecraft:mutton", + "minecraft:chicken", + "minecraft:rabbit", + "minecraft:rabbit_stew", + "minecraft:rotten_flesh", + "minecraft:spider_eye", + "minecraft:salmon", + "minecraft:cod" + ] + } + } + } + }, + "rewards": { + "function": "origins:origins/avian/avian_meat" + } +} diff --git a/Origins Datapack/data/origins/advancement/origins/avian.json b/Origins Datapack/data/origins/advancement/origins/avian.json new file mode 100644 index 0000000..37cbab1 --- /dev/null +++ b/Origins Datapack/data/origins/advancement/origins/avian.json @@ -0,0 +1,24 @@ +{ + "__comment": "Made with TheDestruc7i0n's advancements generator: https://advancements.thedestruc7i0n.ca", + "display": { + "title": { + "text": "Avian" + }, + "description": { + "text": "Light as a feather" + }, + "icon": { + "id": "minecraft:feather" + }, + "frame": "task", + "show_toast": true, + "announce_to_chat": true, + "hidden": false + }, + "criteria": { + "c1": { + "trigger": "minecraft:impossible" + } + }, + "parent": "origins:origins/root" +} \ No newline at end of file diff --git a/Origins Datapack/data/origins/advancement/origins/avian_meat.json b/Origins Datapack/data/origins/advancement/origins/avian_meat.json new file mode 100644 index 0000000..2f66148 --- /dev/null +++ b/Origins Datapack/data/origins/advancement/origins/avian_meat.json @@ -0,0 +1,25 @@ +{ + "__comment": "Made with TheDestruc7i0n's advancements generator: https://advancements.thedestruc7i0n.ca", + "display": { + "title": { + "text": "Veganism" + }, + "description": { + "text": "Eat any meat item and discover the horrors of the carnivorous diet ", + "color": "yellow" + }, + "icon": { + "id": "minecraft:carrot" + }, + "frame": "task", + "show_toast": true, + "announce_to_chat": true, + "hidden": false + }, + "criteria": { + "c1": { + "trigger": "minecraft:impossible" + } + }, + "parent": "origins:origins/avian" +} \ No newline at end of file diff --git a/Origins Datapack/data/origins/advancement/origins/blazeborn.json b/Origins Datapack/data/origins/advancement/origins/blazeborn.json new file mode 100644 index 0000000..9dca177 --- /dev/null +++ b/Origins Datapack/data/origins/advancement/origins/blazeborn.json @@ -0,0 +1,24 @@ +{ + "__comment": "Made with TheDestruc7i0n's advancements generator: https://advancements.thedestruc7i0n.ca", + "display": { + "title": { + "text": "Blazeborn" + }, + "description": { + "text": "Hot as fire" + }, + "icon": { + "id": "minecraft:blaze_powder" + }, + "frame": "task", + "show_toast": true, + "announce_to_chat": true, + "hidden": false + }, + "criteria": { + "c1": { + "trigger": "minecraft:impossible" + } + }, + "parent": "origins:origins/root" +} \ No newline at end of file diff --git a/Origins Datapack/data/origins/advancement/origins/blazeborn_nether_spawn.json b/Origins Datapack/data/origins/advancement/origins/blazeborn_nether_spawn.json new file mode 100644 index 0000000..d4d5e7c --- /dev/null +++ b/Origins Datapack/data/origins/advancement/origins/blazeborn_nether_spawn.json @@ -0,0 +1,25 @@ +{ + "__comment": "Made with TheDestruc7i0n's advancements generator: https://advancements.thedestruc7i0n.ca", + "display": { + "title": { + "text": "No place like home" + }, + "description": { + "text": "Become acquainted with your new spawn point", + "color": "yellow" + }, + "icon": { + "id": "minecraft:netherrack" + }, + "frame": "task", + "show_toast": true, + "announce_to_chat": true, + "hidden": false + }, + "criteria": { + "c1": { + "trigger": "minecraft:impossible" + } + }, + "parent": "origins:origins/blazeborn" +} \ No newline at end of file diff --git a/Origins Datapack/data/origins/advancement/origins/blazeborn_water.json b/Origins Datapack/data/origins/advancement/origins/blazeborn_water.json new file mode 100644 index 0000000..f319a35 --- /dev/null +++ b/Origins Datapack/data/origins/advancement/origins/blazeborn_water.json @@ -0,0 +1,25 @@ +{ + "__comment": "Made with TheDestruc7i0n's advancements generator: https://advancements.thedestruc7i0n.ca", + "display": { + "title": { + "text": "No shower for me, thanks" + }, + "description": { + "text": "Take a nice dip or shower in water", + "color": "yellow" + }, + "icon": { + "id": "minecraft:water_bucket" + }, + "frame": "task", + "show_toast": true, + "announce_to_chat": true, + "hidden": false + }, + "criteria": { + "c1": { + "trigger": "minecraft:impossible" + } + }, + "parent": "origins:origins/blazeborn" +} \ No newline at end of file diff --git a/Origins Datapack/data/origins/advancement/origins/dwarf.json b/Origins Datapack/data/origins/advancement/origins/dwarf.json new file mode 100644 index 0000000..0aa4014 --- /dev/null +++ b/Origins Datapack/data/origins/advancement/origins/dwarf.json @@ -0,0 +1,24 @@ +{ + "__comment": "Made with TheDestruc7i0n's advancements generator: https://advancements.thedestruc7i0n.ca", + "display": { + "title": { + "text": "Dwarf" + }, + "description": { + "text": "Unyielding as the pickaxe" + }, + "icon": { + "id": "minecraft:golden_pickaxe" + }, + "frame": "task", + "show_toast": true, + "announce_to_chat": true, + "hidden": false + }, + "criteria": { + "c1": { + "trigger": "minecraft:impossible" + } + }, + "parent": "origins:origins/root" +} \ No newline at end of file diff --git a/Origins Datapack/data/origins/advancement/origins/dwarf_y30.json b/Origins Datapack/data/origins/advancement/origins/dwarf_y30.json new file mode 100644 index 0000000..dbc5ff9 --- /dev/null +++ b/Origins Datapack/data/origins/advancement/origins/dwarf_y30.json @@ -0,0 +1,24 @@ +{ + "__comment": "Made with TheDestruc7i0n's advancements generator: https://advancements.thedestruc7i0n.ca", + "display": { + "title": { + "text": "Mining Maniac" + }, + "description": { + "text": "Discover your hidden mining abilities" + }, + "icon": { + "id": "minecraft:deepslate" + }, + "frame": "task", + "show_toast": true, + "announce_to_chat": true, + "hidden": false + }, + "criteria": { + "c1": { + "trigger": "minecraft:impossible" + } + }, + "parent": "origins:origins/dwarf" +} \ No newline at end of file diff --git a/Origins Datapack/data/origins/advancement/origins/elytrian.json b/Origins Datapack/data/origins/advancement/origins/elytrian.json new file mode 100644 index 0000000..0071a5a --- /dev/null +++ b/Origins Datapack/data/origins/advancement/origins/elytrian.json @@ -0,0 +1,24 @@ +{ + "__comment": "Made with TheDestruc7i0n's advancements generator: https://advancements.thedestruc7i0n.ca", + "display": { + "title": { + "text": "Elytrian" + }, + "description": { + "text": "Free as a bird" + }, + "icon": { + "id": "minecraft:elytra" + }, + "frame": "task", + "show_toast": true, + "announce_to_chat": true, + "hidden": false + }, + "criteria": { + "c1": { + "trigger": "minecraft:impossible" + } + }, + "parent": "origins:origins/root" +} \ No newline at end of file diff --git a/Origins Datapack/data/origins/advancement/origins/elytrian_boost.json b/Origins Datapack/data/origins/advancement/origins/elytrian_boost.json new file mode 100644 index 0000000..0846d2b --- /dev/null +++ b/Origins Datapack/data/origins/advancement/origins/elytrian_boost.json @@ -0,0 +1,25 @@ +{ + "__comment": "Made with TheDestruc7i0n's advancements generator: https://advancements.thedestruc7i0n.ca", + "display": { + "title": { + "text": "To Infinity, and Beyond!" + }, + "description": { + "text": "Use the wind power to soar through the skies ", + "color": "yellow" + }, + "icon": { + "id": "minecraft:firework_rocket" + }, + "frame": "task", + "show_toast": true, + "announce_to_chat": true, + "hidden": false + }, + "criteria": { + "c1": { + "trigger": "minecraft:impossible" + } + }, + "parent": "origins:origins/elytrian" +} \ No newline at end of file diff --git a/Origins Datapack/data/origins/advancement/origins/elytrian_fly_1km.json b/Origins Datapack/data/origins/advancement/origins/elytrian_fly_1km.json new file mode 100644 index 0000000..0ce6d9a --- /dev/null +++ b/Origins Datapack/data/origins/advancement/origins/elytrian_fly_1km.json @@ -0,0 +1,28 @@ +{ + "__comment": "Made with TheDestruc7i0n's advancements generator: https://advancements.thedestruc7i0n.ca", + "display": { + "title": { + "text": "Elytra Explorer" + }, + "description": { + "text": "Fly one kilometer using the elytra", + "color": "dark_purple" + }, + "icon": { + "id": "minecraft:elytra", + "components": { + "minecraft:damage": 432 + } + }, + "frame": "challenge", + "show_toast": true, + "announce_to_chat": true, + "hidden": false + }, + "criteria": { + "c1": { + "trigger": "minecraft:impossible" + } + }, + "parent": "origins:origins/elytrian_boost" +} \ No newline at end of file diff --git a/Origins Datapack/data/origins/advancement/origins/enderian.json b/Origins Datapack/data/origins/advancement/origins/enderian.json new file mode 100644 index 0000000..9e60584 --- /dev/null +++ b/Origins Datapack/data/origins/advancement/origins/enderian.json @@ -0,0 +1,24 @@ +{ + "__comment": "Made with TheDestruc7i0n's advancements generator: https://advancements.thedestruc7i0n.ca", + "display": { + "title": { + "text": "Enderian" + }, + "description": { + "text": "Strong as an enderman" + }, + "icon": { + "id": "minecraft:end_portal_frame" + }, + "frame": "task", + "show_toast": true, + "announce_to_chat": true, + "hidden": false + }, + "criteria": { + "c1": { + "trigger": "minecraft:impossible" + } + }, + "parent": "origins:origins/root" +} \ No newline at end of file diff --git a/Origins Datapack/data/origins/advancement/origins/enderian_use_pearl.json b/Origins Datapack/data/origins/advancement/origins/enderian_use_pearl.json new file mode 100644 index 0000000..49cc255 --- /dev/null +++ b/Origins Datapack/data/origins/advancement/origins/enderian_use_pearl.json @@ -0,0 +1,25 @@ +{ + "__comment": "Made with TheDestruc7i0n's advancements generator: https://advancements.thedestruc7i0n.ca", + "display": { + "title": { + "text": "Pearl Navigator" + }, + "description": { + "text": "Discover your new teleport abilities", + "color": "yellow" + }, + "icon": { + "id": "minecraft:ender_pearl" + }, + "frame": "task", + "show_toast": true, + "announce_to_chat": true, + "hidden": false + }, + "criteria": { + "c1": { + "trigger": "minecraft:impossible" + } + }, + "parent": "origins:origins/enderian" +} \ No newline at end of file diff --git a/Origins Datapack/data/origins/advancement/origins/enderian_water.json b/Origins Datapack/data/origins/advancement/origins/enderian_water.json new file mode 100644 index 0000000..2a8fc6b --- /dev/null +++ b/Origins Datapack/data/origins/advancement/origins/enderian_water.json @@ -0,0 +1,25 @@ +{ + "__comment": "Made with TheDestruc7i0n's advancements generator: https://advancements.thedestruc7i0n.ca", + "display": { + "title": { + "text": "Landlubber" + }, + "description": { + "text": "Avoid water at all costs", + "color": "yellow" + }, + "icon": { + "id": "minecraft:water_bucket" + }, + "frame": "task", + "show_toast": true, + "announce_to_chat": true, + "hidden": false + }, + "criteria": { + "c1": { + "trigger": "minecraft:impossible" + } + }, + "parent": "origins:origins/enderian" +} \ No newline at end of file diff --git a/Origins Datapack/data/origins/advancement/origins/evoker.json b/Origins Datapack/data/origins/advancement/origins/evoker.json new file mode 100644 index 0000000..c38e3d2 --- /dev/null +++ b/Origins Datapack/data/origins/advancement/origins/evoker.json @@ -0,0 +1,24 @@ +{ + "__comment": "Made with TheDestruc7i0n's advancements generator: https://advancements.thedestruc7i0n.ca", + "display": { + "title": { + "text": "Evoker" + }, + "description": { + "text": "Magical as an evoker" + }, + "icon": { + "id": "minecraft:totem_of_undying" + }, + "frame": "task", + "show_toast": true, + "announce_to_chat": true, + "hidden": false + }, + "criteria": { + "c1": { + "trigger": "minecraft:impossible" + } + }, + "parent": "origins:origins/root" +} \ No newline at end of file diff --git a/Origins Datapack/data/origins/advancement/origins/evoker_use_fangs.json b/Origins Datapack/data/origins/advancement/origins/evoker_use_fangs.json new file mode 100644 index 0000000..a0cbfc7 --- /dev/null +++ b/Origins Datapack/data/origins/advancement/origins/evoker_use_fangs.json @@ -0,0 +1,25 @@ +{ + "__comment": "Made with TheDestruc7i0n's advancements generator: https://advancements.thedestruc7i0n.ca", + "display": { + "title": { + "text": "Wololo..." + }, + "description": { + "text": "Use the evoker's fang attack", + "color": "yellow" + }, + "icon": { + "id": "minecraft:red_wool" + }, + "frame": "task", + "show_toast": true, + "announce_to_chat": true, + "hidden": false + }, + "criteria": { + "c1": { + "trigger": "minecraft:impossible" + } + }, + "parent": "origins:origins/evoker" +} \ No newline at end of file diff --git a/Origins Datapack/data/origins/advancement/origins/giant.json b/Origins Datapack/data/origins/advancement/origins/giant.json new file mode 100644 index 0000000..e70d31c --- /dev/null +++ b/Origins Datapack/data/origins/advancement/origins/giant.json @@ -0,0 +1,24 @@ +{ + "__comment": "Made with TheDestruc7i0n's advancements generator: https://advancements.thedestruc7i0n.ca", + "display": { + "title": { + "text": "Giant" + }, + "description": { + "text": "Tall as the trees" + }, + "icon": { + "id": "minecraft:zombie_head" + }, + "frame": "task", + "show_toast": true, + "announce_to_chat": true, + "hidden": false + }, + "criteria": { + "c1": { + "trigger": "minecraft:impossible" + } + }, + "parent": "origins:origins/root" +} \ No newline at end of file diff --git a/Origins Datapack/data/origins/advancement/origins/giant_beanstalk.json b/Origins Datapack/data/origins/advancement/origins/giant_beanstalk.json new file mode 100644 index 0000000..09c9850 --- /dev/null +++ b/Origins Datapack/data/origins/advancement/origins/giant_beanstalk.json @@ -0,0 +1,31 @@ +{ + "display": { + "icon": { + "id": "minecraft:big_dripleaf" + }, + "title": "Fee-Fi-Fo-Fum", + "description": "Acquire a \"beanstalk\"" + }, + "parent": "origins:origins/giant", + "criteria": { + "requirement": { + "trigger": "minecraft:inventory_changed", + "conditions": { + "player": [ + { + "condition": "minecraft:entity_properties", + "entity": "this", + "predicate": { + "nbt": "{Tags:[\"giant\"]}" + } + } + ], + "items": [ + { + "items": "minecraft:big_dripleaf" + } + ] + } + } + } +} diff --git a/Origins Datapack/data/origins/advancement/origins/merling.json b/Origins Datapack/data/origins/advancement/origins/merling.json new file mode 100644 index 0000000..19c0ed6 --- /dev/null +++ b/Origins Datapack/data/origins/advancement/origins/merling.json @@ -0,0 +1,24 @@ +{ + "__comment": "Made with TheDestruc7i0n's advancements generator: https://advancements.thedestruc7i0n.ca", + "display": { + "title": { + "text": "Merling" + }, + "description": { + "text": "Quick as a dolphin" + }, + "icon": { + "id": "minecraft:heart_of_the_sea" + }, + "frame": "task", + "show_toast": true, + "announce_to_chat": true, + "hidden": false + }, + "criteria": { + "c1": { + "trigger": "minecraft:impossible" + } + }, + "parent": "origins:origins/root" +} \ No newline at end of file diff --git a/Origins Datapack/data/origins/advancement/origins/merling_suffocate.json b/Origins Datapack/data/origins/advancement/origins/merling_suffocate.json new file mode 100644 index 0000000..cb3ef43 --- /dev/null +++ b/Origins Datapack/data/origins/advancement/origins/merling_suffocate.json @@ -0,0 +1,25 @@ +{ + "__comment": "Made with TheDestruc7i0n's advancements generator: https://advancements.thedestruc7i0n.ca", + "display": { + "title": { + "text": "Gasping for Air" + }, + "description": { + "text": "Discover the need for water", + "color": "yellow" + }, + "icon": { + "id": "minecraft:cooked_cod" + }, + "frame": "task", + "show_toast": true, + "announce_to_chat": true, + "hidden": false + }, + "criteria": { + "c1": { + "trigger": "minecraft:impossible" + } + }, + "parent": "origins:origins/merling" +} \ No newline at end of file diff --git a/Origins Datapack/data/origins/advancement/origins/root.json b/Origins Datapack/data/origins/advancement/origins/root.json new file mode 100644 index 0000000..56183b1 --- /dev/null +++ b/Origins Datapack/data/origins/advancement/origins/root.json @@ -0,0 +1,24 @@ +{ + "display": { + "title": { + "text": "Origins", + "underlined": false + }, + "description": { + "text": "Select an Origin and start anew" + }, + "icon": { + "id": "minecraft:ender_eye" + }, + "frame": "challenge", + "show_toast": true, + "announce_to_chat": true, + "hidden": false, + "background": "minecraft:textures/block/deepslate.png" + }, + "criteria": { + "c1": { + "trigger": "minecraft:impossible" + } + } +} \ No newline at end of file diff --git a/Origins Datapack/data/origins/advancement/origins/spider.json b/Origins Datapack/data/origins/advancement/origins/spider.json new file mode 100644 index 0000000..e77aa09 --- /dev/null +++ b/Origins Datapack/data/origins/advancement/origins/spider.json @@ -0,0 +1,24 @@ +{ + "__comment": "Made with TheDestruc7i0n's advancements generator: https://advancements.thedestruc7i0n.ca", + "display": { + "title": { + "text": "Arachnid" + }, + "description": { + "text": "Agile as a spider" + }, + "icon": { + "id": "minecraft:spider_eye" + }, + "frame": "task", + "show_toast": true, + "announce_to_chat": true, + "hidden": false + }, + "criteria": { + "c1": { + "trigger": "minecraft:impossible" + } + }, + "parent": "origins:origins/root" +} \ No newline at end of file diff --git a/Origins Datapack/data/origins/advancement/origins/spider_climb.json b/Origins Datapack/data/origins/advancement/origins/spider_climb.json new file mode 100644 index 0000000..aae8bd3 --- /dev/null +++ b/Origins Datapack/data/origins/advancement/origins/spider_climb.json @@ -0,0 +1,25 @@ +{ + "__comment": "Made with TheDestruc7i0n's advancements generator: https://advancements.thedestruc7i0n.ca", + "display": { + "title": { + "text": "Spider-Man" + }, + "description": { + "text": "Climb a wall", + "color": "yellow" + }, + "icon": { + "id": "minecraft:string" + }, + "frame": "task", + "show_toast": true, + "announce_to_chat": true, + "hidden": false + }, + "criteria": { + "c1": { + "trigger": "minecraft:impossible" + } + }, + "parent": "origins:origins/spider" +} \ No newline at end of file diff --git a/Origins Datapack/data/origins/advancement/origins/spider_cobweb.json b/Origins Datapack/data/origins/advancement/origins/spider_cobweb.json new file mode 100644 index 0000000..e8fe3b0 --- /dev/null +++ b/Origins Datapack/data/origins/advancement/origins/spider_cobweb.json @@ -0,0 +1,25 @@ +{ + "__comment": "Made with TheDestruc7i0n's advancements generator: https://advancements.thedestruc7i0n.ca", + "display": { + "title": { + "text": "Get Webbed!" + }, + "description": { + "text": "Trap an opponent with a cobweb", + "color": "yellow" + }, + "icon": { + "id": "minecraft:cobweb" + }, + "frame": "task", + "show_toast": true, + "announce_to_chat": true, + "hidden": false + }, + "criteria": { + "c1": { + "trigger": "minecraft:impossible" + } + }, + "parent": "origins:origins/spider" +} \ No newline at end of file diff --git a/Origins Datapack/data/origins/advancement/origins/wraith.json b/Origins Datapack/data/origins/advancement/origins/wraith.json new file mode 100644 index 0000000..5178897 --- /dev/null +++ b/Origins Datapack/data/origins/advancement/origins/wraith.json @@ -0,0 +1,24 @@ +{ + "__comment": "Made with TheDestruc7i0n's advancements generator: https://advancements.thedestruc7i0n.ca", + "display": { + "title": { + "text": "Wraith" + }, + "description": { + "text": "Elusive as a shadow" + }, + "icon": { + "id": "minecraft:soul_lantern" + }, + "frame": "task", + "show_toast": true, + "announce_to_chat": true, + "hidden": false + }, + "criteria": { + "c1": { + "trigger": "minecraft:impossible" + } + }, + "parent": "origins:origins/root" +} \ No newline at end of file diff --git a/Origins Datapack/data/origins/advancement/origins/wraith_show.json b/Origins Datapack/data/origins/advancement/origins/wraith_show.json new file mode 100644 index 0000000..47a8398 --- /dev/null +++ b/Origins Datapack/data/origins/advancement/origins/wraith_show.json @@ -0,0 +1,25 @@ +{ + "__comment": "Made with TheDestruc7i0n's advancements generator: https://advancements.thedestruc7i0n.ca", + "display": { + "title": { + "text": "Spectral Slip-up" + }, + "description": { + "text": "Accidently reveal yourself by hiding for too long", + "color": "yellow" + }, + "icon": { + "id": "minecraft:phantom_membrane" + }, + "frame": "task", + "show_toast": true, + "announce_to_chat": true, + "hidden": false + }, + "criteria": { + "c1": { + "trigger": "minecraft:impossible" + } + }, + "parent": "origins:origins/wraith_use" +} \ No newline at end of file diff --git a/Origins Datapack/data/origins/advancement/origins/wraith_use.json b/Origins Datapack/data/origins/advancement/origins/wraith_use.json new file mode 100644 index 0000000..949b73d --- /dev/null +++ b/Origins Datapack/data/origins/advancement/origins/wraith_use.json @@ -0,0 +1,25 @@ +{ + "__comment": "Made with TheDestruc7i0n's advancements generator: https://advancements.thedestruc7i0n.ca", + "display": { + "title": { + "text": "Spectral Vanish" + }, + "description": { + "text": "Hide amongst the shadows", + "color": "yellow" + }, + "icon": { + "id": "minecraft:black_concrete" + }, + "frame": "task", + "show_toast": true, + "announce_to_chat": true, + "hidden": false + }, + "criteria": { + "c1": { + "trigger": "minecraft:impossible" + } + }, + "parent": "origins:origins/wraith" +} \ No newline at end of file diff --git a/Origins Datapack/data/origins/advancement/right_click_elytrian.json b/Origins Datapack/data/origins/advancement/right_click_elytrian.json new file mode 100644 index 0000000..653a8a5 --- /dev/null +++ b/Origins Datapack/data/origins/advancement/right_click_elytrian.json @@ -0,0 +1,15 @@ +{ + "criteria": { + "requirement": { + "trigger": "minecraft:player_interacted_with_entity", + "conditions": { + "entity": { + "type": "interaction" + } + } + } + }, + "rewards": { + "function": "origins:origins/elytrian/elytrian_check" + } +} diff --git a/Origins Datapack/data/origins/advancement/right_click_evoker.json b/Origins Datapack/data/origins/advancement/right_click_evoker.json new file mode 100644 index 0000000..57e00a7 --- /dev/null +++ b/Origins Datapack/data/origins/advancement/right_click_evoker.json @@ -0,0 +1,15 @@ +{ + "criteria": { + "requirement": { + "trigger": "minecraft:player_interacted_with_entity", + "conditions": { + "entity": { + "type": "interaction" + } + } + } + }, + "rewards": { + "function": "origins:origins/evoker/evoker_check" + } +} diff --git a/Origins Datapack/data/origins/advancement/spider_hit.json b/Origins Datapack/data/origins/advancement/spider_hit.json new file mode 100644 index 0000000..1a62c6b --- /dev/null +++ b/Origins Datapack/data/origins/advancement/spider_hit.json @@ -0,0 +1,22 @@ +{ + "criteria": { + "requirement": { + "trigger": "minecraft:player_hurt_entity", + "conditions": { + "player": [ + { + "condition": "minecraft:entity_properties", + "entity": "this", + "predicate": { + "type": "minecraft:player" + } + } + ], + "entity": [] + } + } + }, + "rewards": { + "function": "origins:origins/spider/spider_cobweb_check" + } +} diff --git a/Origins Datapack/data/origins/damage_type/suffocate.json b/Origins Datapack/data/origins/damage_type/suffocate.json new file mode 100644 index 0000000..09a917c --- /dev/null +++ b/Origins Datapack/data/origins/damage_type/suffocate.json @@ -0,0 +1,6 @@ +{ + "effects": "drowning", + "exhaustion": 0.1, + "message_id": "dryout", + "scaling": "when_caused_by_living_non_player" +} \ No newline at end of file diff --git a/Origins Datapack/data/origins/function/choose_origin/changelog.mcfunction b/Origins Datapack/data/origins/function/choose_origin/changelog.mcfunction new file mode 100644 index 0000000..7000ce2 --- /dev/null +++ b/Origins Datapack/data/origins/function/choose_origin/changelog.mcfunction @@ -0,0 +1,8 @@ +execute at @s run playsound minecraft:entity.experience_orb.pickup master @s ~ ~ ~ 2 1 1 + +tellraw @a {"text":" origins-datapack v1.2.0","color":"yellow"} +tellraw @a {"text":"--------------------------------------","color":"white"} +tellraw @s {"text":"Balance Changes","color":"yellow"} +tellraw @s {"text":"-Merling can now be affected by haste"} +tellraw @s {"text":"-Enderian becomes blind \n around carved pumpkins"} +tellraw @a {"text":"--------------------------------------","color":"white"} \ No newline at end of file diff --git a/Origins Datapack/data/origins/function/choose_origin/check_picked.mcfunction b/Origins Datapack/data/origins/function/choose_origin/check_picked.mcfunction new file mode 100644 index 0000000..d6b4ffd --- /dev/null +++ b/Origins Datapack/data/origins/function/choose_origin/check_picked.mcfunction @@ -0,0 +1,10 @@ +execute if score @s zzav_p matches 1.. run function origins:choose_origin/origins/avian +execute if score @s zzbl_p matches 1.. run function origins:choose_origin/origins/blazeborn +execute if score @s zzdw_p matches 1.. run function origins:choose_origin/origins/dwarf +execute if score @s zzel_p matches 1.. run function origins:choose_origin/origins/elytrian +execute if score @s zzen_p matches 1.. run function origins:choose_origin/origins/enderian +execute if score @s zzev_p matches 1.. run function origins:choose_origin/origins/evoker +execute if score @s zzgi_p matches 1.. run function origins:choose_origin/origins/giant +execute if score @s zzme_p matches 1.. run function origins:choose_origin/origins/merling +execute if score @s zzsp_p matches 1.. run function origins:choose_origin/origins/spider +execute if score @s zzwr_p matches 1.. run function origins:choose_origin/origins/wraith \ No newline at end of file diff --git a/Origins Datapack/data/origins/function/choose_origin/choose_origin_load.mcfunction b/Origins Datapack/data/origins/function/choose_origin/choose_origin_load.mcfunction new file mode 100644 index 0000000..f21043f --- /dev/null +++ b/Origins Datapack/data/origins/function/choose_origin/choose_origin_load.mcfunction @@ -0,0 +1,10 @@ +scoreboard objectives add zzav_p trigger +scoreboard objectives add zzbl_p trigger +scoreboard objectives add zzdw_p trigger +scoreboard objectives add zzel_p trigger +scoreboard objectives add zzen_p trigger +scoreboard objectives add zzev_p trigger +scoreboard objectives add zzgi_p trigger +scoreboard objectives add zzme_p trigger +scoreboard objectives add zzsp_p trigger +scoreboard objectives add zzwr_p trigger \ No newline at end of file diff --git a/Origins Datapack/data/origins/function/choose_origin/disable_picks.mcfunction b/Origins Datapack/data/origins/function/choose_origin/disable_picks.mcfunction new file mode 100644 index 0000000..949490d --- /dev/null +++ b/Origins Datapack/data/origins/function/choose_origin/disable_picks.mcfunction @@ -0,0 +1,10 @@ +trigger zzav_p add 0 +trigger zzbl_p add 0 +trigger zzdw_p add 0 +trigger zzel_p add 0 +trigger zzen_p add 0 +trigger zzev_p add 0 +trigger zzgi_p add 0 +trigger zzme_p add 0 +trigger zzsp_p add 0 +trigger zzwr_p add 0 \ No newline at end of file diff --git a/Origins Datapack/data/origins/function/choose_origin/enable_pick_origin.mcfunction b/Origins Datapack/data/origins/function/choose_origin/enable_pick_origin.mcfunction new file mode 100644 index 0000000..f846f43 --- /dev/null +++ b/Origins Datapack/data/origins/function/choose_origin/enable_pick_origin.mcfunction @@ -0,0 +1,6 @@ +scoreboard players enable @a[scores={picked=0}] pick_origin +scoreboard players enable @a help + +execute as @a[scores={pick_origin=1..}] run function origins:choose_origin/origin_list +execute as @a[scores={help=1..}] run function origins:choose_origin/help + diff --git a/Origins Datapack/data/origins/function/choose_origin/enable_picks.mcfunction b/Origins Datapack/data/origins/function/choose_origin/enable_picks.mcfunction new file mode 100644 index 0000000..ae43dd1 --- /dev/null +++ b/Origins Datapack/data/origins/function/choose_origin/enable_picks.mcfunction @@ -0,0 +1,10 @@ +scoreboard players enable @s zzav_p +scoreboard players enable @s zzbl_p +scoreboard players enable @s zzdw_p +scoreboard players enable @s zzel_p +scoreboard players enable @s zzen_p +scoreboard players enable @s zzev_p +scoreboard players enable @s zzgi_p +scoreboard players enable @s zzme_p +scoreboard players enable @s zzsp_p +scoreboard players enable @s zzwr_p diff --git a/Origins Datapack/data/origins/function/choose_origin/help.mcfunction b/Origins Datapack/data/origins/function/choose_origin/help.mcfunction new file mode 100644 index 0000000..9b870a5 --- /dev/null +++ b/Origins Datapack/data/origins/function/choose_origin/help.mcfunction @@ -0,0 +1,11 @@ +scoreboard players set @s help 0 +execute at @s run playsound minecraft:entity.experience_orb.pickup master @s ~ ~ ~ 2 1 1 + +tellraw @s {"text":" Help and Information","color":"gold"} +tellraw @s {"text":"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~","color":"gold"} +tellraw @s {"text":"To select an origin, type /trigger pick_origin\nthen click your option","color":"white"} +tellraw @s {"text":"","color":"white"} +tellraw @s {"text":"to reset a player's origin, type","color":"white"} +tellraw @s {"text":"/execute as run \nfunction origins:reset_origin","color":"white"} +tellraw @s {"text":"","color":"white"} +tellraw @s {"text":"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~","color":"gold"} diff --git a/Origins Datapack/data/origins/function/choose_origin/origin_list.mcfunction b/Origins Datapack/data/origins/function/choose_origin/origin_list.mcfunction new file mode 100644 index 0000000..077fbf3 --- /dev/null +++ b/Origins Datapack/data/origins/function/choose_origin/origin_list.mcfunction @@ -0,0 +1,33 @@ +scoreboard players set @s pick_origin 0 +execute at @s run playsound minecraft:entity.experience_orb.pickup master @s ~ ~ ~ 2 1 1 + +tellraw @s {"text":"--------------------------------------------------","color":"gold"} + +tellraw @s {"text":" Select an Origin from the List Below!","color":"gold"} +tellraw @s {"text":" [hover over the origin to see pros and cons]","color":"gold"} + +tellraw @s {"text":"--------------------------------------------------","color":"gold"} + +tellraw @s {"text":"[Arachnid]","color":"dark_gray","italic":false,"hoverEvent":{"action":"show_text","value":[{"text":"[Can climb walls] [Attacks leave players in cobwebs] [Health is reduced to 7 hearts] "}]},"clickEvent":{"action":"run_command","value":"/trigger zzsp_p"}} + +tellraw @s {"text":"[Avian]","color":"gold","italic":false,"hoverEvent":{"action":"show_text","value":[{"text":"[Infinite Slow Falling] [Quicker Speeds] [Cannot eat meat] [Higher Jump]"}]},"clickEvent":{"action":"run_command","value":"/trigger zzav_p"}} + +tellraw @s {"text":"[Blazeborn]","color":"red","italic":false,"hoverEvent":{"action":"show_text","value":[{"text":"[Fire Resistance] [Poison Resistance] [Spawns in Nether] [Takes Damage in Water]"}]},"clickEvent":{"action":"run_command","value":"/trigger zzbl_p"}} + +tellraw @s {"text":"[Dwarf]","color":"#EE4B2B","italic":false,"hoverEvent":{"action":"show_text","value":[{"text":"[Shrinks to 1 block tall] [Mines faster under y30] [Health is reduced to 5 hearts] [Faster overall mining speed]"}]},"clickEvent":{"action":"run_command","value":"/trigger zzdw_p"}} + +tellraw @s {"text":"[Elytrian]","color":"white","italic":false,"hoverEvent":{"action":"show_text","value":[{"text":"[Has infinite elytra] [Can launch upwards every 60 seconds] [Health is reduced to 7 hearts] "}]},"clickEvent":{"action":"run_command","value":"/trigger zzel_p"}} + +tellraw @s {"text":"[Enderian]","color":"light_purple","italic":false,"hoverEvent":{"action":"show_text","value":[{"text":"[Infinite Ender Pearls] [Takes Damage in Water] [Becomes blind around pumpkins]"}]},"clickEvent":{"action":"run_command","value":"/trigger zzen_p"}} + +tellraw @s {"text":"[Evoker]","color":"gray","italic":false,"hoverEvent":{"action":"show_text","value":[{"text":"[Summon Evoker Fangs] [Becomes hungry after using Fangs] "}]},"clickEvent":{"action":"run_command","value":"/trigger zzev_p"}} + +tellraw @s {"text":"[Giant]","color":"green","italic":false,"hoverEvent":{"action":"show_text","value":[{"text":"[Becomes 8 Blocks Tall] [Further Reach] [Health is increased to 20 Hearts] [Slower Movement Speed]"}]},"clickEvent":{"action":"run_command","value":"/trigger zzgi_p"}} + +tellraw @s {"text":"[Merling]","color":"blue","italic":false,"hoverEvent":{"action":"show_text","value":[{"text":"[Can breathe underwater] [Can break blocks easily underwater] [Increased Swim Speed] [Suffocates when not in water]"}]},"clickEvent":{"action":"run_command","value":"/trigger zzme_p"}} + +tellraw @s {"text":"[Wraith]","color":"#383838","italic":false,"hoverEvent":{"action":"show_text","value":[{"text":"[Can become invisible by crouching] [Immune to hunger] [Health is reduced to 7 hearts] [Invisibility gives hunger]"}]},"clickEvent":{"action":"run_command","value":"/trigger zzwr_p"}} + + +tellraw @s {"text":"--------------------------------------------------","color":"gold"} + diff --git a/Origins Datapack/data/origins/function/choose_origin/origins/avian.mcfunction b/Origins Datapack/data/origins/function/choose_origin/origins/avian.mcfunction new file mode 100644 index 0000000..a477eea --- /dev/null +++ b/Origins Datapack/data/origins/function/choose_origin/origins/avian.mcfunction @@ -0,0 +1,14 @@ +tag @s add avian +scoreboard players set @s picked 1 +scoreboard players reset @s pick_origin +function origins:choose_origin/disable_picks +scoreboard players set @s zzav_ 0 + +tellraw @s {"text":"--------------------------------------------------","color":"gold"} +tellraw @s {"text":"You selected Avian","color":"gold"} +tellraw @s {"text":"Contact the server admin if you wish to change your origin","color":"gold"} +tellraw @s {"text":"--------------------------------------------------","color":"gold"} + +advancement grant @s only origins:origins/root +advancement grant @s only origins:origins/avian +title @s title {"text":"Avian","color":"gold"} \ No newline at end of file diff --git a/Origins Datapack/data/origins/function/choose_origin/origins/blazeborn.mcfunction b/Origins Datapack/data/origins/function/choose_origin/origins/blazeborn.mcfunction new file mode 100644 index 0000000..19e762e --- /dev/null +++ b/Origins Datapack/data/origins/function/choose_origin/origins/blazeborn.mcfunction @@ -0,0 +1,19 @@ +tag @s add blazeborn +scoreboard players set @s picked 1 +scoreboard players reset @s pick_origin +function origins:choose_origin/disable_picks +scoreboard players set @s zzbl_p 0 + +tellraw @s {"text":"--------------------------------------------------","color":"gold"} +tellraw @s {"text":"You selected Blazeborn","color":"red"} +tellraw @s {"text":"Contact the server admin if you wish to change your origin","color":"gold"} +tellraw @s {"text":"--------------------------------------------------","color":"gold"} + +title @s title {"text":"Blazeborn","color":"red"} + +execute in minecraft:the_nether run spreadplayers 0 0 0 10 under 127 false @s +function origins:origins/blazeborn/blazeborn_reset + +advancement grant @s only origins:origins/root +advancement grant @s only origins:origins/blazeborn +advancement grant @s only origins:origins/blazeborn_nether_spawn \ No newline at end of file diff --git a/Origins Datapack/data/origins/function/choose_origin/origins/dwarf.mcfunction b/Origins Datapack/data/origins/function/choose_origin/origins/dwarf.mcfunction new file mode 100644 index 0000000..3a9a594 --- /dev/null +++ b/Origins Datapack/data/origins/function/choose_origin/origins/dwarf.mcfunction @@ -0,0 +1,15 @@ +tag @s add dwarf +scoreboard players set @s picked 1 +scoreboard players reset @s pick_origin +function origins:choose_origin/disable_picks +scoreboard players set @s zzdw_p 0 + +tellraw @s {"text":"--------------------------------------------------","color":"gold"} +tellraw @s {"text":"You selected Dwarf","color":"#EE4B2B"} +tellraw @s {"text":"Contact the server admin if you wish to change your origin","color":"gold"} +tellraw @s {"text":"--------------------------------------------------","color":"gold"} + +advancement grant @s only origins:origins/root +advancement grant @s only origins:origins/dwarf + +title @s title {"text":"Dwarf","color":"#EE4B2B"} \ No newline at end of file diff --git a/Origins Datapack/data/origins/function/choose_origin/origins/elytrian.mcfunction b/Origins Datapack/data/origins/function/choose_origin/origins/elytrian.mcfunction new file mode 100644 index 0000000..b4c1447 --- /dev/null +++ b/Origins Datapack/data/origins/function/choose_origin/origins/elytrian.mcfunction @@ -0,0 +1,15 @@ +tag @s add elytrian +scoreboard players set @s picked 1 +scoreboard players reset @s pick_origin +function origins:choose_origin/disable_picks +scoreboard players set @s zzel_p 0 + +tellraw @s {"text":"--------------------------------------------------","color":"gold"} +tellraw @s {"text":"You selected Elytrian","color":"white"} +tellraw @s {"text":"Contact the server admin if you wish to change your origin","color":"gold"} +tellraw @s {"text":"--------------------------------------------------","color":"gold"} + +advancement grant @s only origins:origins/root +advancement grant @s only origins:origins/elytrian + +title @s title {"text":"Elytrian","color":"white"} \ No newline at end of file diff --git a/Origins Datapack/data/origins/function/choose_origin/origins/enderian.mcfunction b/Origins Datapack/data/origins/function/choose_origin/origins/enderian.mcfunction new file mode 100644 index 0000000..b172111 --- /dev/null +++ b/Origins Datapack/data/origins/function/choose_origin/origins/enderian.mcfunction @@ -0,0 +1,20 @@ +tag @s add enderian +scoreboard players set @s picked 1 +scoreboard players reset @s pick_origin +function origins:choose_origin/disable_picks +scoreboard players set @s zzen_p 0 + +tellraw @s {"text":"--------------------------------------------------","color":"gold"} +tellraw @s {"text":"You selected Enderian","color":"light_purple"} +tellraw @s {"text":"Contact the server admin if you wish to change your origin","color":"gold"} +tellraw @s {"text":"--------------------------------------------------","color":"gold"} + +give @s ender_pearl[custom_name='{"text":"Enderian Pearl","color":"light_purple","italic":false}',enchantments={levels:{"minecraft:vanishing_curse":1},show_in_tooltip:false}] + +advancement grant @s only origins:origins/root +advancement grant @s only origins:origins/enderian + +title @s title {"text":"Enderian","color":"light_purple"} + +attribute @s generic.max_health base set 20 +effect give @s regeneration 3 20 true \ No newline at end of file diff --git a/Origins Datapack/data/origins/function/choose_origin/origins/evoker.mcfunction b/Origins Datapack/data/origins/function/choose_origin/origins/evoker.mcfunction new file mode 100644 index 0000000..c92ba5c --- /dev/null +++ b/Origins Datapack/data/origins/function/choose_origin/origins/evoker.mcfunction @@ -0,0 +1,15 @@ +tag @s add evoker +scoreboard players set @s picked 1 +scoreboard players reset @s pick_origin +function origins:choose_origin/disable_picks +scoreboard players set @s zzev_p 0 + +tellraw @s {"text":"--------------------------------------------------","color":"gold"} +tellraw @s {"text":"You selected Evoker","color":"gray"} +tellraw @s {"text":"Contact the server admin if you wish to change your origin","color":"gold"} +tellraw @s {"text":"--------------------------------------------------","color":"gold"} + +advancement grant @s only origins:origins/root +advancement grant @s only origins:origins/evoker + +title @s title {"text":"Evoker","color":"gray"} \ No newline at end of file diff --git a/Origins Datapack/data/origins/function/choose_origin/origins/giant.mcfunction b/Origins Datapack/data/origins/function/choose_origin/origins/giant.mcfunction new file mode 100644 index 0000000..84fffbc --- /dev/null +++ b/Origins Datapack/data/origins/function/choose_origin/origins/giant.mcfunction @@ -0,0 +1,15 @@ +tag @s add giant +scoreboard players set @s picked 1 +scoreboard players reset @s pick_origin +function origins:choose_origin/disable_picks +scoreboard players set @s zzgi_p 0 + +tellraw @s {"text":"--------------------------------------------------","color":"gold"} +tellraw @s {"text":"You selected Giant","color":"green"} +tellraw @s {"text":"Contact the server admin if you wish to change your origin","color":"gold"} +tellraw @s {"text":"--------------------------------------------------","color":"gold"} + +advancement grant @s only origins:origins/root +advancement grant @s only origins:origins/giant + +title @s title {"text":"Giant","color":"green"} \ No newline at end of file diff --git a/Origins Datapack/data/origins/function/choose_origin/origins/merling.mcfunction b/Origins Datapack/data/origins/function/choose_origin/origins/merling.mcfunction new file mode 100644 index 0000000..b94fc03 --- /dev/null +++ b/Origins Datapack/data/origins/function/choose_origin/origins/merling.mcfunction @@ -0,0 +1,16 @@ +tag @s add merling +scoreboard players set @s picked 1 +scoreboard players reset @s pick_origin +function origins:choose_origin/disable_picks +scoreboard players set @s zzme_p 0 +scoreboard players set @s out_of_water 0 + +tellraw @s {"text":"--------------------------------------------------","color":"gold"} +tellraw @s {"text":"You selected Merling","color":"blue"} +tellraw @s {"text":"Contact the server admin if you wish to change your origin","color":"gold"} +tellraw @s {"text":"--------------------------------------------------","color":"gold"} + +advancement grant @s only origins:origins/root +advancement grant @s only origins:origins/merling + +title @s title {"text":"Merling","color":"blue"} \ No newline at end of file diff --git a/Origins Datapack/data/origins/function/choose_origin/origins/spider.mcfunction b/Origins Datapack/data/origins/function/choose_origin/origins/spider.mcfunction new file mode 100644 index 0000000..310d802 --- /dev/null +++ b/Origins Datapack/data/origins/function/choose_origin/origins/spider.mcfunction @@ -0,0 +1,15 @@ +tag @s add spider +scoreboard players set @s picked 1 +scoreboard players reset @s pick_origin +function origins:choose_origin/disable_picks +scoreboard players set @s zzsp_p 0 + +tellraw @s {"text":"--------------------------------------------------","color":"gold"} +tellraw @s {"text":"You selected Arachnid","color":"dark_gray"} +tellraw @s {"text":"Contact the server admin if you wish to change your origin","color":"gold"} +tellraw @s {"text":"--------------------------------------------------","color":"gold"} + +advancement grant @s only origins:origins/root +advancement grant @s only origins:origins/spider + +title @s title {"text":"Arachnid","color":"dark_gray"} \ No newline at end of file diff --git a/Origins Datapack/data/origins/function/choose_origin/origins/wraith.mcfunction b/Origins Datapack/data/origins/function/choose_origin/origins/wraith.mcfunction new file mode 100644 index 0000000..61b7781 --- /dev/null +++ b/Origins Datapack/data/origins/function/choose_origin/origins/wraith.mcfunction @@ -0,0 +1,14 @@ +tag @s add wraith +scoreboard players set @s picked 1 +scoreboard players reset @s pick_origin +function origins:choose_origin/disable_picks +scoreboard players set @s zzwr_p 0 + +tellraw @s {"text":"--------------------------------------------------","color":"gold"} +tellraw @s {"text":"You selected Wraith","color":"#383838"} +tellraw @s {"text":"Contact the server admin if you wish to change your origin","color":"gold"} +tellraw @s {"text":"--------------------------------------------------","color":"gold"} + +advancement grant @s only origins:origins/root +advancement grant @s only origins:origins/wraith +title @s title {"text":"Wraith","color":"#383838"} \ No newline at end of file diff --git a/Origins Datapack/data/origins/function/interactions/interactions_load.mcfunction b/Origins Datapack/data/origins/function/interactions/interactions_load.mcfunction new file mode 100644 index 0000000..d9b554c --- /dev/null +++ b/Origins Datapack/data/origins/function/interactions/interactions_load.mcfunction @@ -0,0 +1 @@ +scoreboard objectives add interactions_timer dummy \ No newline at end of file diff --git a/Origins Datapack/data/origins/function/interactions/interactions_timer.mcfunction b/Origins Datapack/data/origins/function/interactions/interactions_timer.mcfunction new file mode 100644 index 0000000..1bacf40 --- /dev/null +++ b/Origins Datapack/data/origins/function/interactions/interactions_timer.mcfunction @@ -0,0 +1,2 @@ +execute as @e[type=interaction] if score @s interactions_timer matches 5.. run kill @s +execute as @e[type=interaction] run scoreboard players add @s interactions_timer 1 \ No newline at end of file diff --git a/Origins Datapack/data/origins/function/origins/avian/avian.mcfunction b/Origins Datapack/data/origins/function/origins/avian/avian.mcfunction new file mode 100644 index 0000000..7bad4e9 --- /dev/null +++ b/Origins Datapack/data/origins/function/origins/avian/avian.mcfunction @@ -0,0 +1,3 @@ +attribute @s minecraft:generic.gravity base set 0.025 +attribute @s minecraft:generic.movement_speed base set 0.15 +attribute @s minecraft:generic.safe_fall_distance base set 578 \ No newline at end of file diff --git a/Origins Datapack/data/origins/function/origins/avian/avian_functions.mcfunction b/Origins Datapack/data/origins/function/origins/avian/avian_functions.mcfunction new file mode 100644 index 0000000..0fb8a70 --- /dev/null +++ b/Origins Datapack/data/origins/function/origins/avian/avian_functions.mcfunction @@ -0,0 +1 @@ +execute as @e[tag=avian] run function origins:origins/avian/avian \ No newline at end of file diff --git a/Origins Datapack/data/origins/function/origins/avian/avian_meat.mcfunction b/Origins Datapack/data/origins/function/origins/avian/avian_meat.mcfunction new file mode 100644 index 0000000..469bbe4 --- /dev/null +++ b/Origins Datapack/data/origins/function/origins/avian/avian_meat.mcfunction @@ -0,0 +1,4 @@ +execute if entity @s[tag=avian] run damage @s 10 minecraft:starve +execute if entity @s[tag=avian] run advancement grant @s only origins:origins/avian_meat + +advancement revoke @s only origins:avian_eat_meat diff --git a/Origins Datapack/data/origins/function/origins/blazeborn/blazeborn.mcfunction b/Origins Datapack/data/origins/function/origins/blazeborn/blazeborn.mcfunction new file mode 100644 index 0000000..102db86 --- /dev/null +++ b/Origins Datapack/data/origins/function/origins/blazeborn/blazeborn.mcfunction @@ -0,0 +1,14 @@ +scoreboard players add @a respawn_in_nether 0 +scoreboard players set @a[tag=!blazeborn] blazeborn_died 0 + +execute as @s[tag=blazeborn] unless data entity @s SpawnY run scoreboard players set @s respawn_in_nether 1 + +execute if data entity @s SpawnY run scoreboard players set @s respawn_in_nether 0 + +execute if entity @s[scores={blazeborn_death=1..}] run function origins:origins/blazeborn/blazeborn_spawn_check + +execute at @s if blocks ~ ~1 ~ ~ 319 ~ ~ ~ ~ masked if predicate origins:enderian_rain if predicate origins:is_raining unless biome ~ ~ ~ desert unless biome ~ ~ ~ #minecraft:is_badlands unless biome ~ ~ ~ #minecraft:is_badlands unless biome ~ ~ ~ #minecraft:is_savanna if dimension minecraft:overworld run function origins:origins/blazeborn/blazeborn_damage +execute at @s if predicate origins:waterlogged_no_offset run function origins:origins/blazeborn/blazeborn_damage + +effect give @s fire_resistance infinite 0 true +effect clear @s minecraft:poison \ No newline at end of file diff --git a/Origins Datapack/data/origins/function/origins/blazeborn/blazeborn_damage.mcfunction b/Origins Datapack/data/origins/function/origins/blazeborn/blazeborn_damage.mcfunction new file mode 100644 index 0000000..36fd2d0 --- /dev/null +++ b/Origins Datapack/data/origins/function/origins/blazeborn/blazeborn_damage.mcfunction @@ -0,0 +1,2 @@ +advancement grant @s only origins:origins/blazeborn_water +damage @s 2 minecraft:drown \ No newline at end of file diff --git a/Origins Datapack/data/origins/function/origins/blazeborn/blazeborn_functions.mcfunction b/Origins Datapack/data/origins/function/origins/blazeborn/blazeborn_functions.mcfunction new file mode 100644 index 0000000..2522f79 --- /dev/null +++ b/Origins Datapack/data/origins/function/origins/blazeborn/blazeborn_functions.mcfunction @@ -0,0 +1,2 @@ +execute as @e[tag=blazeborn] run function origins:origins/blazeborn/blazeborn +execute as @e[tag=blazeborn] run function origins:origins/blazeborn/blazeborn_spawn_check \ No newline at end of file diff --git a/Origins Datapack/data/origins/function/origins/blazeborn/blazeborn_load.mcfunction b/Origins Datapack/data/origins/function/origins/blazeborn/blazeborn_load.mcfunction new file mode 100644 index 0000000..169eed9 --- /dev/null +++ b/Origins Datapack/data/origins/function/origins/blazeborn/blazeborn_load.mcfunction @@ -0,0 +1 @@ +scoreboard objectives add blazeborn_death deathCount \ No newline at end of file diff --git a/Origins Datapack/data/origins/function/origins/blazeborn/blazeborn_nether_spawn.mcfunction b/Origins Datapack/data/origins/function/origins/blazeborn/blazeborn_nether_spawn.mcfunction new file mode 100644 index 0000000..0f72818 --- /dev/null +++ b/Origins Datapack/data/origins/function/origins/blazeborn/blazeborn_nether_spawn.mcfunction @@ -0,0 +1,2 @@ +execute in minecraft:the_nether run spreadplayers 0 0 0 10 under 127 false @s +function origins:origins/blazeborn/blazeborn_reset \ No newline at end of file diff --git a/Origins Datapack/data/origins/function/origins/blazeborn/blazeborn_reset.mcfunction b/Origins Datapack/data/origins/function/origins/blazeborn/blazeborn_reset.mcfunction new file mode 100644 index 0000000..c282129 --- /dev/null +++ b/Origins Datapack/data/origins/function/origins/blazeborn/blazeborn_reset.mcfunction @@ -0,0 +1 @@ +scoreboard players set @s blazeborn_death 0 \ No newline at end of file diff --git a/Origins Datapack/data/origins/function/origins/blazeborn/blazeborn_spawn_check.mcfunction b/Origins Datapack/data/origins/function/origins/blazeborn/blazeborn_spawn_check.mcfunction new file mode 100644 index 0000000..b92630e --- /dev/null +++ b/Origins Datapack/data/origins/function/origins/blazeborn/blazeborn_spawn_check.mcfunction @@ -0,0 +1,3 @@ +execute if score @s time_died matches ..5 if score @s has_spawn_point matches 1 run function origins:origins/blazeborn/blazeborn_nether_spawn + +execute if score @s time_died matches ..5 if score @s has_spawn_point matches 0 run function origins:origins/blazeborn/blazeborn_reset \ No newline at end of file diff --git a/Origins Datapack/data/origins/function/origins/dwarf/dwarf.mcfunction b/Origins Datapack/data/origins/function/origins/dwarf/dwarf.mcfunction new file mode 100644 index 0000000..f6558f9 --- /dev/null +++ b/Origins Datapack/data/origins/function/origins/dwarf/dwarf.mcfunction @@ -0,0 +1,5 @@ +execute at @s if predicate origins:dwarf_check unless dimension minecraft:the_end run effect give @s haste 3 0 false +execute at @s if predicate origins:dwarf_check unless dimension minecraft:the_end run advancement grant @s only origins:origins/dwarf_y30 +attribute @s generic.scale base set 0.5 +attribute @s generic.max_health base set 10 +attribute @s minecraft:player.block_break_speed base set 2 \ No newline at end of file diff --git a/Origins Datapack/data/origins/function/origins/dwarf/dwarf_functions.mcfunction b/Origins Datapack/data/origins/function/origins/dwarf/dwarf_functions.mcfunction new file mode 100644 index 0000000..16b17ad --- /dev/null +++ b/Origins Datapack/data/origins/function/origins/dwarf/dwarf_functions.mcfunction @@ -0,0 +1 @@ +execute as @a[tag=dwarf] run function origins:origins/dwarf/dwarf \ No newline at end of file diff --git a/Origins Datapack/data/origins/function/origins/elytrian/elytrian.mcfunction b/Origins Datapack/data/origins/function/origins/elytrian/elytrian.mcfunction new file mode 100644 index 0000000..900370a --- /dev/null +++ b/Origins Datapack/data/origins/function/origins/elytrian/elytrian.mcfunction @@ -0,0 +1,15 @@ +function origins:origins/elytrian/elytrian_armor_check + +execute if entity @s[tag=elytrian,nbt=!{SelectedItem:{}}] if predicate origins:is_sneaking if score @s elytrian_cooldown matches 0 at @s run function origins:origins/elytrian/elytrian_interaction + +item replace entity @s[scores={elytra_works=1}] armor.chest with elytra[custom_name='{"text":"Elytrian Wings","color":"light_purple","italic":false}',unbreakable={show_in_tooltip:false},damage=0,enchantments={levels:{"minecraft:binding_curse":1,"minecraft:vanishing_curse":1},show_in_tooltip:false}] 1 + +item replace entity @s[scores={elytra_works=0}] armor.chest with elytra[custom_name='{"text":"Elytrian Wings","color":"light_purple","italic":false}',unbreakable={show_in_tooltip:false},damage=432,enchantments={levels:{"minecraft:binding_curse":1,"minecraft:vanishing_curse":1},show_in_tooltip:false}] 1 + +execute if entity @s[scores={elytrian_cooldown=1..}] run scoreboard players remove @s elytrian_cooldown 1 + +attribute @s minecraft:generic.max_health base set 14 + +execute if entity @s[nbt={FallFlying:1b}] run scoreboard players add @s elytrian_flight_time 1 + +execute if entity @s[scores={elytrian_flight_time=100000..}] run advancement grant @s only origins:origins/elytrian_fly_1km \ No newline at end of file diff --git a/Origins Datapack/data/origins/function/origins/elytrian/elytrian_armor_check.mcfunction b/Origins Datapack/data/origins/function/origins/elytrian/elytrian_armor_check.mcfunction new file mode 100644 index 0000000..a592396 --- /dev/null +++ b/Origins Datapack/data/origins/function/origins/elytrian/elytrian_armor_check.mcfunction @@ -0,0 +1,9 @@ +scoreboard players set @s elytra_works 1 + +execute if entity @s[nbt={Inventory:[{id:"minecraft:diamond_boots",Slot:100b}]}] run scoreboard players set @s elytra_works 0 +execute if entity @s[nbt={Inventory:[{id:"minecraft:diamond_leggings",Slot:101b}]}] run scoreboard players set @s elytra_works 0 +execute if entity @s[nbt={Inventory:[{id:"minecraft:diamond_helmet",Slot:103b}]}] run scoreboard players set @s elytra_works 0 + +execute if entity @s[nbt={Inventory:[{id:"minecraft:netherite_boots",Slot:100b}]}] run scoreboard players set @s elytra_works 0 +execute if entity @s[nbt={Inventory:[{id:"minecraft:netherite_leggings",Slot:101b}]}] run scoreboard players set @s elytra_works 0 +execute if entity @s[nbt={Inventory:[{id:"minecraft:netherite_helmet",Slot:103b}]}] run scoreboard players set @s elytra_works 0 \ No newline at end of file diff --git a/Origins Datapack/data/origins/function/origins/elytrian/elytrian_check.mcfunction b/Origins Datapack/data/origins/function/origins/elytrian/elytrian_check.mcfunction new file mode 100644 index 0000000..33d67a9 --- /dev/null +++ b/Origins Datapack/data/origins/function/origins/elytrian/elytrian_check.mcfunction @@ -0,0 +1,2 @@ +advancement revoke @s only origins:right_click_elytrian +execute if entity @s[tag=elytrian,scores={elytrian_cooldown=..0}] run function origins:origins/elytrian/elytrian_right \ No newline at end of file diff --git a/Origins Datapack/data/origins/function/origins/elytrian/elytrian_find_targeted.mcfunction b/Origins Datapack/data/origins/function/origins/elytrian/elytrian_find_targeted.mcfunction new file mode 100644 index 0000000..e712329 --- /dev/null +++ b/Origins Datapack/data/origins/function/origins/elytrian/elytrian_find_targeted.mcfunction @@ -0,0 +1,6 @@ +scoreboard players set #bool test 0 +execute on target store result score #bool test if entity @s[tag=this] + +execute if score #bool test matches 1 at @s run kill @s + +execute if score #bool test matches 1 run data remove entity @s interaction \ No newline at end of file diff --git a/Origins Datapack/data/origins/function/origins/elytrian/elytrian_functions.mcfunction b/Origins Datapack/data/origins/function/origins/elytrian/elytrian_functions.mcfunction new file mode 100644 index 0000000..beee45e --- /dev/null +++ b/Origins Datapack/data/origins/function/origins/elytrian/elytrian_functions.mcfunction @@ -0,0 +1 @@ +execute as @a[tag=elytrian] run function origins:origins/elytrian/elytrian \ No newline at end of file diff --git a/Origins Datapack/data/origins/function/origins/elytrian/elytrian_interaction.mcfunction b/Origins Datapack/data/origins/function/origins/elytrian/elytrian_interaction.mcfunction new file mode 100644 index 0000000..5174ec6 --- /dev/null +++ b/Origins Datapack/data/origins/function/origins/elytrian/elytrian_interaction.mcfunction @@ -0,0 +1,2 @@ +particle cloud ~ ~0.25 ~ 0 0 0 0.05 10 normal +summon interaction ~ ~ ~ {width:1f,height:2f,Tags:["elytrian_summon"]} \ No newline at end of file diff --git a/Origins Datapack/data/origins/function/origins/elytrian/elytrian_load.mcfunction b/Origins Datapack/data/origins/function/origins/elytrian/elytrian_load.mcfunction new file mode 100644 index 0000000..69858d3 --- /dev/null +++ b/Origins Datapack/data/origins/function/origins/elytrian/elytrian_load.mcfunction @@ -0,0 +1,3 @@ +scoreboard objectives add elytra_works dummy +scoreboard objectives add elytrian_cooldown dummy +scoreboard objectives add elytrian_flight_time dummy \ No newline at end of file diff --git a/Origins Datapack/data/origins/function/origins/elytrian/elytrian_right.mcfunction b/Origins Datapack/data/origins/function/origins/elytrian/elytrian_right.mcfunction new file mode 100644 index 0000000..f4e3d4f --- /dev/null +++ b/Origins Datapack/data/origins/function/origins/elytrian/elytrian_right.mcfunction @@ -0,0 +1,7 @@ +effect give @s minecraft:levitation 1 21 true +advancement grant @s only origins:origins/elytrian_boost +scoreboard players set @s elytrian_cooldown 600 + +tag @s add this +execute as @e[type=interaction,distance=.1,tag=elytrian_summon] run function origins:origins/elytrian/elytrian_find_targeted +tag @s remove this \ No newline at end of file diff --git a/Origins Datapack/data/origins/function/origins/enderian/enderian.mcfunction b/Origins Datapack/data/origins/function/origins/enderian/enderian.mcfunction new file mode 100644 index 0000000..b509a33 --- /dev/null +++ b/Origins Datapack/data/origins/function/origins/enderian/enderian.mcfunction @@ -0,0 +1,19 @@ +execute if entity @s[scores={use_ender_pearl=1..}] run function origins:origins/enderian/enderian_teleport + +execute at @s if blocks ~ ~1 ~ ~ 319 ~ ~ ~ ~ masked if predicate origins:enderian_rain if predicate origins:is_raining unless biome ~ ~ ~ desert unless biome ~ ~ ~ #minecraft:is_badlands unless biome ~ ~ ~ #minecraft:is_badlands unless biome ~ ~ ~ #minecraft:is_savanna if dimension minecraft:overworld run function origins:origins/enderian/enderian_damage + +execute at @s if predicate origins:waterlogged_no_offset run function origins:origins/enderian/enderian_damage + +execute at @s if entity @e[distance=..10,nbt={Inventory:[{id:"minecraft:carved_pumpkin",Slot:103b}]}] run effect give @s blindness 3 1 true +execute at @s if entity @e[distance=..10,nbt={ArmorItems:[{},{},{},{id:"minecraft:carved_pumpkin"}]}] run effect give @s blindness 3 1 true + +execute as @s if score @s has_pearl matches 2.. run clear @s ender_pearl[custom_name='{"text":"Enderian Pearl","color":"light_purple","italic":false}',enchantments={levels:{"minecraft:vanishing_curse":1},show_in_tooltip:false}] 1 +execute as @s run execute store result score @s has_pearl run clear @s ender_pearl[custom_name='{"text":"Enderian Pearl","color":"light_purple","italic":false}',enchantments={levels:{"minecraft:vanishing_curse":1},show_in_tooltip:false}] 0 + +execute if score @s time_died matches 1.. if score @s time_died matches ..1 run give @s ender_pearl[custom_name='{"text":"Enderian Pearl","color":"light_purple","italic":false}',enchantments={levels:{"minecraft:vanishing_curse":1},show_in_tooltip:false}] 1 + +execute if score @s time_died matches 1.. if score @s time_died matches ..1 run effect give @s regeneration 3 20 true +attribute @s minecraft:generic.scale base set 1.5 +attribute @s minecraft:generic.max_health base set 30 +attribute @s minecraft:player.block_interaction_range base set 5 +attribute @s minecraft:player.entity_interaction_range base set 3.5 \ No newline at end of file diff --git a/Origins Datapack/data/origins/function/origins/enderian/enderian_damage.mcfunction b/Origins Datapack/data/origins/function/origins/enderian/enderian_damage.mcfunction new file mode 100644 index 0000000..d6b9656 --- /dev/null +++ b/Origins Datapack/data/origins/function/origins/enderian/enderian_damage.mcfunction @@ -0,0 +1,2 @@ +damage @s 2 minecraft:drown +advancement grant @s only origins:origins/enderian_water \ No newline at end of file diff --git a/Origins Datapack/data/origins/function/origins/enderian/enderian_functions.mcfunction b/Origins Datapack/data/origins/function/origins/enderian/enderian_functions.mcfunction new file mode 100644 index 0000000..0cf1980 --- /dev/null +++ b/Origins Datapack/data/origins/function/origins/enderian/enderian_functions.mcfunction @@ -0,0 +1 @@ +execute as @a[tag=enderian] run function origins:origins/enderian/enderian \ No newline at end of file diff --git a/Origins Datapack/data/origins/function/origins/enderian/enderian_load.mcfunction b/Origins Datapack/data/origins/function/origins/enderian/enderian_load.mcfunction new file mode 100644 index 0000000..ec5d9b4 --- /dev/null +++ b/Origins Datapack/data/origins/function/origins/enderian/enderian_load.mcfunction @@ -0,0 +1,2 @@ +scoreboard objectives add use_ender_pearl minecraft.used:minecraft.ender_pearl +scoreboard objectives add has_pearl dummy \ No newline at end of file diff --git a/Origins Datapack/data/origins/function/origins/enderian/enderian_teleport.mcfunction b/Origins Datapack/data/origins/function/origins/enderian/enderian_teleport.mcfunction new file mode 100644 index 0000000..4a9450a --- /dev/null +++ b/Origins Datapack/data/origins/function/origins/enderian/enderian_teleport.mcfunction @@ -0,0 +1,4 @@ +scoreboard players set @s use_ender_pearl 0 +give @s ender_pearl[custom_name='{"text":"Enderian Pearl","color":"light_purple","italic":false}',enchantments={levels:{"minecraft:vanishing_curse":1},show_in_tooltip:false}] +advancement grant @s only origins:origins/enderian_use_pearl +effect give @s regeneration 3 2 true \ No newline at end of file diff --git a/Origins Datapack/data/origins/function/origins/evoker/evoker.mcfunction b/Origins Datapack/data/origins/function/origins/evoker/evoker.mcfunction new file mode 100644 index 0000000..5315614 --- /dev/null +++ b/Origins Datapack/data/origins/function/origins/evoker/evoker.mcfunction @@ -0,0 +1,3 @@ +execute if entity @s[nbt=!{SelectedItem:{}}] if predicate origins:is_sneaking if score @s evoker_cooldown matches 0 at @s run function origins:origins/evoker/evoker_interaction + +execute if entity @s[tag=evoker,scores={evoker_cooldown=1..}] run scoreboard players remove @s evoker_cooldown 1 \ No newline at end of file diff --git a/Origins Datapack/data/origins/function/origins/evoker/evoker_check.mcfunction b/Origins Datapack/data/origins/function/origins/evoker/evoker_check.mcfunction new file mode 100644 index 0000000..774b842 --- /dev/null +++ b/Origins Datapack/data/origins/function/origins/evoker/evoker_check.mcfunction @@ -0,0 +1,2 @@ +advancement revoke @s only origins:right_click_evoker +execute if entity @s[tag=evoker,scores={evoker_cooldown=..0}] run function origins:origins/evoker/evoker_right \ No newline at end of file diff --git a/Origins Datapack/data/origins/function/origins/evoker/evoker_fangs.mcfunction b/Origins Datapack/data/origins/function/origins/evoker/evoker_fangs.mcfunction new file mode 100644 index 0000000..0c34f1a --- /dev/null +++ b/Origins Datapack/data/origins/function/origins/evoker/evoker_fangs.mcfunction @@ -0,0 +1,9 @@ +scoreboard players set @s evoker_cooldown 150 + +execute at @s positioned ^ ^-0.25 ^1.5 run summon minecraft:evoker_fangs +execute at @s positioned ^ ^-0.25 ^2.5 run summon minecraft:evoker_fangs +execute at @s positioned ^ ^-0.25 ^3.5 run summon minecraft:evoker_fangs +execute at @s positioned ^ ^-0.25 ^4.5 run summon minecraft:evoker_fangs +execute at @s positioned ^ ^-0.25 ^5.5 run summon minecraft:evoker_fangs + +effect give @s minecraft:hunger 2 255 true \ No newline at end of file diff --git a/Origins Datapack/data/origins/function/origins/evoker/evoker_find_targeted.mcfunction b/Origins Datapack/data/origins/function/origins/evoker/evoker_find_targeted.mcfunction new file mode 100644 index 0000000..e712329 --- /dev/null +++ b/Origins Datapack/data/origins/function/origins/evoker/evoker_find_targeted.mcfunction @@ -0,0 +1,6 @@ +scoreboard players set #bool test 0 +execute on target store result score #bool test if entity @s[tag=this] + +execute if score #bool test matches 1 at @s run kill @s + +execute if score #bool test matches 1 run data remove entity @s interaction \ No newline at end of file diff --git a/Origins Datapack/data/origins/function/origins/evoker/evoker_functions.mcfunction b/Origins Datapack/data/origins/function/origins/evoker/evoker_functions.mcfunction new file mode 100644 index 0000000..3a41a8a --- /dev/null +++ b/Origins Datapack/data/origins/function/origins/evoker/evoker_functions.mcfunction @@ -0,0 +1 @@ +execute as @a[tag=evoker] run function origins:origins/evoker/evoker diff --git a/Origins Datapack/data/origins/function/origins/evoker/evoker_interaction.mcfunction b/Origins Datapack/data/origins/function/origins/evoker/evoker_interaction.mcfunction new file mode 100644 index 0000000..cde2e25 --- /dev/null +++ b/Origins Datapack/data/origins/function/origins/evoker/evoker_interaction.mcfunction @@ -0,0 +1,2 @@ +particle minecraft:effect ~ ~1 ~ 0.490 0.490 0.490 2 5 normal +summon interaction ~ ~ ~ {width:1f,height:2f,Tags:["evoker_summon"]} \ No newline at end of file diff --git a/Origins Datapack/data/origins/function/origins/evoker/evoker_load.mcfunction b/Origins Datapack/data/origins/function/origins/evoker/evoker_load.mcfunction new file mode 100644 index 0000000..e6f3dab --- /dev/null +++ b/Origins Datapack/data/origins/function/origins/evoker/evoker_load.mcfunction @@ -0,0 +1 @@ +scoreboard objectives add evoker_cooldown dummy \ No newline at end of file diff --git a/Origins Datapack/data/origins/function/origins/evoker/evoker_right.mcfunction b/Origins Datapack/data/origins/function/origins/evoker/evoker_right.mcfunction new file mode 100644 index 0000000..e72330e --- /dev/null +++ b/Origins Datapack/data/origins/function/origins/evoker/evoker_right.mcfunction @@ -0,0 +1,5 @@ +function origins:origins/evoker/evoker_fangs +advancement grant @s only origins:origins/evoker_use_fangs +tag @s add this +execute as @e[type=interaction,distance=.1,tag=evoker_summon] run function origins:origins/evoker/evoker_find_targeted +tag @s remove this diff --git a/Origins Datapack/data/origins/function/origins/giant/giant.mcfunction b/Origins Datapack/data/origins/function/origins/giant/giant.mcfunction new file mode 100644 index 0000000..fdac269 --- /dev/null +++ b/Origins Datapack/data/origins/function/origins/giant/giant.mcfunction @@ -0,0 +1,8 @@ +attribute @s generic.scale base set 4 +attribute @s minecraft:player.block_interaction_range base set 10 +attribute @s minecraft:player.entity_interaction_range base set 6 +attribute @s minecraft:generic.step_height base set 2 +attribute @s minecraft:generic.max_health base set 40 +attribute @s minecraft:generic.jump_strength modifier add giant_jump 1 add_multiplied_base + +execute if score @s time_died matches 1.. if score @s time_died matches ..1 run effect give @s regeneration 3 20 true diff --git a/Origins Datapack/data/origins/function/origins/giant/giant_functions.mcfunction b/Origins Datapack/data/origins/function/origins/giant/giant_functions.mcfunction new file mode 100644 index 0000000..4862625 --- /dev/null +++ b/Origins Datapack/data/origins/function/origins/giant/giant_functions.mcfunction @@ -0,0 +1 @@ +execute as @e[tag=giant] run function origins:origins/giant/giant \ No newline at end of file diff --git a/Origins Datapack/data/origins/function/origins/merling/merling.mcfunction b/Origins Datapack/data/origins/function/origins/merling/merling.mcfunction new file mode 100644 index 0000000..3f243aa --- /dev/null +++ b/Origins Datapack/data/origins/function/origins/merling/merling.mcfunction @@ -0,0 +1,27 @@ +effect give @s water_breathing infinite 0 true +effect give @s dolphins_grace infinite 0 true +attribute @s minecraft:player.submerged_mining_speed base set 1 + +execute as @s at @s if predicate origins:waterlogged if score @s out_of_water matches 1.. if score @s out_of_water matches ..1 at @s positioned ~ ~1.5 ~ run particle minecraft:bubble ^ ^ ^0.25 0 0.1 0 0.1 5 +execute as @s at @s if predicate origins:waterlogged if score @s out_of_water matches 1.. if score @s out_of_water matches ..1 run playsound minecraft:entity.drowned.swim master @s +execute as @s at @s unless predicate origins:waterlogged unless block ~ ~ ~ water_cauldron if score @s out_of_water matches 269.. if score @s out_of_water matches ..269 at @s run playsound minecraft:entity.drowned.swim master @s + + +execute at @s if predicate origins:waterlogged unless block ~ ~ ~ #slabs unless block ~ ~ ~ #stairs unless block ~ ~ ~ #origins:air run effect give @s night_vision 15 0 true +execute at @s if predicate origins:waterlogged unless block ~ ~ ~ #slabs unless block ~ ~ ~ #stairs unless block ~ ~ ~ #origins:air if score @s merling_haste matches 1 run attribute @s minecraft:player.block_break_speed base set 5 +execute at @s unless predicate origins:waterlogged run attribute @s minecraft:player.block_break_speed base set 1 + + +execute at @s if blocks ~ ~1 ~ ~ 319 ~ ~ ~ ~ masked if predicate origins:is_raining if predicate origins:enderian_rain unless biome ~ ~ ~ desert unless biome ~ ~ ~ #minecraft:is_badlands unless biome ~ ~ ~ #minecraft:is_badlands unless biome ~ ~ ~ #minecraft:is_savanna unless dimension minecraft:the_nether run scoreboard players remove @s out_of_water 2 + + +execute at @s unless predicate origins:waterlogged run scoreboard players add @s out_of_water 1 + + +execute if score @s out_of_water matches 300.. run function origins:origins/merling/merling_suffocate + +execute at @s if predicate origins:waterlogged run scoreboard players remove @s out_of_water 1 +execute at @s if block ~ ~ ~ minecraft:water_cauldron run scoreboard players remove @s out_of_water 2 +execute as @s if score @s out_of_water matches ..0 run scoreboard players set @s out_of_water 0 + +execute as @s if score @s time_died matches ..5 run scoreboard players set @s out_of_water 0 \ No newline at end of file diff --git a/Origins Datapack/data/origins/function/origins/merling/merling_functions.mcfunction b/Origins Datapack/data/origins/function/origins/merling/merling_functions.mcfunction new file mode 100644 index 0000000..241e79e --- /dev/null +++ b/Origins Datapack/data/origins/function/origins/merling/merling_functions.mcfunction @@ -0,0 +1,2 @@ +execute as @a[tag=merling] run function origins:origins/merling/merling +execute as @a[tag=merling] run function origins:origins/merling/merling_aqua_affinity_test \ No newline at end of file diff --git a/Origins Datapack/data/origins/function/origins/merling/merling_load.mcfunction b/Origins Datapack/data/origins/function/origins/merling/merling_load.mcfunction new file mode 100644 index 0000000..fec8c2a --- /dev/null +++ b/Origins Datapack/data/origins/function/origins/merling/merling_load.mcfunction @@ -0,0 +1 @@ +scoreboard objectives add out_of_water dummy \ No newline at end of file diff --git a/Origins Datapack/data/origins/function/origins/merling/merling_suffocate.mcfunction b/Origins Datapack/data/origins/function/origins/merling/merling_suffocate.mcfunction new file mode 100644 index 0000000..b86c3cf --- /dev/null +++ b/Origins Datapack/data/origins/function/origins/merling/merling_suffocate.mcfunction @@ -0,0 +1,3 @@ +damage @s 2 origins:suffocate +advancement grant @s only origins:origins/merling_suffocate +scoreboard players set @s out_of_water 270 diff --git a/Origins Datapack/data/origins/function/origins/spider/spider.mcfunction b/Origins Datapack/data/origins/function/origins/spider/spider.mcfunction new file mode 100644 index 0000000..a763b01 --- /dev/null +++ b/Origins Datapack/data/origins/function/origins/spider/spider.mcfunction @@ -0,0 +1,3 @@ +attribute @s minecraft:generic.max_health base set 14 +effect give @s minecraft:weaving infinite 1 true +execute if entity @s[scores={origins_sneaking=1..}] run function origins:origins/spider/spider_climb_check diff --git a/Origins Datapack/data/origins/function/origins/spider/spider_climb.mcfunction b/Origins Datapack/data/origins/function/origins/spider/spider_climb.mcfunction new file mode 100644 index 0000000..1bf1b1a --- /dev/null +++ b/Origins Datapack/data/origins/function/origins/spider/spider_climb.mcfunction @@ -0,0 +1,2 @@ +effect give @s minecraft:levitation 1 1 true +advancement grant @s only origins:origins/spider_climb diff --git a/Origins Datapack/data/origins/predicate/dwarf_check.json b/Origins Datapack/data/origins/predicate/dwarf_check.json new file mode 100644 index 0000000..7c4f76c --- /dev/null +++ b/Origins Datapack/data/origins/predicate/dwarf_check.json @@ -0,0 +1,11 @@ +{ + "condition": "minecraft:location_check", + "predicate": { + "position": { + "y": { + "max": 30 + } + } + } + } + \ No newline at end of file diff --git a/Origins Datapack/data/origins/predicate/enderian_rain.json b/Origins Datapack/data/origins/predicate/enderian_rain.json new file mode 100644 index 0000000..bfe4f54 --- /dev/null +++ b/Origins Datapack/data/origins/predicate/enderian_rain.json @@ -0,0 +1,14 @@ +{ + "condition": "minecraft:entity_properties", + "entity": "this", + "predicate": { + "location": { + "position": { + "y": { + "min": 54, + "max": 400 + } + } + } + } +} diff --git a/Origins Datapack/data/origins/predicate/is_raining.json b/Origins Datapack/data/origins/predicate/is_raining.json new file mode 100644 index 0000000..e17bd10 --- /dev/null +++ b/Origins Datapack/data/origins/predicate/is_raining.json @@ -0,0 +1,4 @@ +{ + "condition": "minecraft:weather_check", + "raining": true +} diff --git a/Origins Datapack/data/origins/predicate/is_sneaking.json b/Origins Datapack/data/origins/predicate/is_sneaking.json new file mode 100644 index 0000000..9bddda6 --- /dev/null +++ b/Origins Datapack/data/origins/predicate/is_sneaking.json @@ -0,0 +1,9 @@ +{ + "condition": "minecraft:entity_properties", + "predicate": { + "flags": { + "is_sneaking": true + } + }, + "entity":"this" +} \ No newline at end of file diff --git a/Origins Datapack/data/origins/predicate/waterlogged.json b/Origins Datapack/data/origins/predicate/waterlogged.json new file mode 100644 index 0000000..35160d0 --- /dev/null +++ b/Origins Datapack/data/origins/predicate/waterlogged.json @@ -0,0 +1,9 @@ +{ + "condition": "minecraft:location_check", + "offsetY": 1, + "predicate": { + "fluid": { + "fluids": "#minecraft:water" + } + } +} diff --git a/Origins Datapack/data/origins/predicate/waterlogged_no_offset.json b/Origins Datapack/data/origins/predicate/waterlogged_no_offset.json new file mode 100644 index 0000000..bd82344 --- /dev/null +++ b/Origins Datapack/data/origins/predicate/waterlogged_no_offset.json @@ -0,0 +1,8 @@ +{ + "condition": "minecraft:location_check", + "predicate": { + "fluid": { + "fluids": "#minecraft:water" + } + } +}