From c0d3271536dbe190f65e637c8f4d27e037fc8d37 Mon Sep 17 00:00:00 2001 From: Fl414r <74704475+Fl414r@users.noreply.github.com> Date: Mon, 25 Sep 2023 06:53:39 +0300 Subject: [PATCH] First version --- META-INF/MANIFEST.MF | 11 ++++++ assets/t_fairy/lang/en_us.json | 34 ++++++++++++++++++ assets/t_fairy/lang/ru_ru.json | 34 ++++++++++++++++++ data/origins/origin_layers/origin.json | 7 ++++ data/t_fairy/origins/traveling_fairy.json | 22 ++++++++++++ data/t_fairy/powers/air_miner.json | 11 ++++++ data/t_fairy/powers/aqua_outline.json | 32 +++++++++++++++++ data/t_fairy/powers/dash.json | 26 ++++++++++++++ data/t_fairy/powers/fireworks.json | 42 +++++++++++++++++++++++ data/t_fairy/powers/flying.json | 36 +++++++++++++++++++ data/t_fairy/powers/flying_toggle.json | 8 +++++ data/t_fairy/powers/glow.json | 33 ++++++++++++++++++ data/t_fairy/powers/leather.json | 23 +++++++++++++ data/t_fairy/powers/less_dmg.json | 7 ++++ data/t_fairy/powers/less_range_dmg.json | 10 ++++++ data/t_fairy/powers/low_hp.json | 9 +++++ data/t_fairy/powers/magical_agility.json | 16 +++++++++ data/t_fairy/powers/tiny.json | 28 +++++++++++++++ fabric.mod.json | 19 ++++++++++ 19 files changed, 408 insertions(+) create mode 100644 META-INF/MANIFEST.MF create mode 100644 assets/t_fairy/lang/en_us.json create mode 100644 assets/t_fairy/lang/ru_ru.json create mode 100644 data/origins/origin_layers/origin.json create mode 100644 data/t_fairy/origins/traveling_fairy.json create mode 100644 data/t_fairy/powers/air_miner.json create mode 100644 data/t_fairy/powers/aqua_outline.json create mode 100644 data/t_fairy/powers/dash.json create mode 100644 data/t_fairy/powers/fireworks.json create mode 100644 data/t_fairy/powers/flying.json create mode 100644 data/t_fairy/powers/flying_toggle.json create mode 100644 data/t_fairy/powers/glow.json create mode 100644 data/t_fairy/powers/leather.json create mode 100644 data/t_fairy/powers/less_dmg.json create mode 100644 data/t_fairy/powers/less_range_dmg.json create mode 100644 data/t_fairy/powers/low_hp.json create mode 100644 data/t_fairy/powers/magical_agility.json create mode 100644 data/t_fairy/powers/tiny.json create mode 100644 fabric.mod.json diff --git a/META-INF/MANIFEST.MF b/META-INF/MANIFEST.MF new file mode 100644 index 0000000..00fbcda --- /dev/null +++ b/META-INF/MANIFEST.MF @@ -0,0 +1,11 @@ +Manifest-Version: 1.0 +Fabric-Gradle-Version: 8.3 +Fabric-Loom-Version: 1.3.9 +Fabric-Mixin-Compile-Extensions-Version: 0.6.0 +Fabric-Minecraft-Version: 1.20.1 +Fabric-Tiny-Remapper-Version: 0.8.7 +Fabric-Loader-Version: unknown +Fabric-Mixin-Version: unknown +Fabric-Mixin-Group: unknown +Fabric-Mapping-Namespace: intermediary + diff --git a/assets/t_fairy/lang/en_us.json b/assets/t_fairy/lang/en_us.json new file mode 100644 index 0000000..b6fcef1 --- /dev/null +++ b/assets/t_fairy/lang/en_us.json @@ -0,0 +1,34 @@ +{ + "origin.t_fairy.traveling_fairy.name": "Traveling Fairy", + "origin.t_fairy.traveling_fairy.description": "This fairy doesn't have to look for her brother (or sister), but she still loves to travel.", + + "power.t_fairy.air_miner.name": "Air miner", + "power.t_fairy.air_miner.description": "You break blocks in the air at the same speed as on the ground.", + + "power.t_fairy.dash.name": "Dash", + "power.t_fairy.dash.description": "Yes, you cannot use fireworks. But who said you can't add a little magic? (This power from Origins++)", + + "power.t_fairy.fireworks.name": "Tinkaboom!", + "power.t_fairy.fireworks.description": "Trying to use fireworks will immediately blow you up as you are too small to use them. (Power from Adapted Origins)", + + "power.t_fairy.flying_toggle.name": "Like a Bird", + "power.t_fairy.flying_toggle.description": "Your wings allow you to fly, gradually draining your hunger bar. The ability can be turned off if it interferes with the use of Elytra.", + + "power.t_fairy.glow.name": "Hey, Listen!", + "power.t_fairy.glow.description": "You can toggle the glow effect on yourself. (Power from Adapted Origins)", + + "power.t_fairy.leather.name": "Too heavy...", + "power.t_fairy.leather.description": "You cannot wear armor that is stronger than leather.", + + "power.t_fairy.less_dmg.name": "Peaceful", + "power.t_fairy.less_dmg.description": "It is extremely difficult for you to injure any mob and you will deal 4 times less damage.", + + "power.t_fairy.low_hp.name": "Poor health", + "power.t_fairy.low_hp.description": "You have only 3 hearts.", + + "power.t_fairy.magical_agility.name": "Magical Agility", + "power.t_fairy.magical_agility.description": "You will never take damage from falling or landing poorly.", + + "power.t_fairy.tiny.name": "Tiny", + "power.t_fairy.tiny.description": "You can walk under a half block without crouching." +} diff --git a/assets/t_fairy/lang/ru_ru.json b/assets/t_fairy/lang/ru_ru.json new file mode 100644 index 0000000..969794e --- /dev/null +++ b/assets/t_fairy/lang/ru_ru.json @@ -0,0 +1,34 @@ +{ + "origin.t_fairy.traveling_fairy.name": "Путешествующая фея", + "origin.t_fairy.traveling_fairy.description": "Этой фее не надо искать своего братика (или сестрёнку), но она всё равно любит путешествовать.", + + "power.t_fairy.air_miner.name": "Воздушный копатель", + "power.t_fairy.air_miner.description": "Вы ломаете блоки в воздухе с такой же скоростью, как на земле.", + + "power.t_fairy.dash.name": "Рывок", + "power.t_fairy.dash.description": "Да, вы не можете использовать фейерверки. Но кто сказал, что нельзя добавить немного магии? (Способность из Origins++)", + + "power.t_fairy.fireworks.name": "Тинкабум!", + "power.t_fairy.fireworks.description": "Попытка использовать фейерверк сразу взорвёт вас, так как вы слишком малы, чтобы использовать их (Способность из Adapted Origins)", + + "power.t_fairy.flying_toggle.name": "Как птица", + "power.t_fairy.flying_toggle.description": "Ваши крылья позволяют вам летать, понемногу тратя шкалу голода. Способность можно выключить, если она мешает использовать Элитры.", + + "power.t_fairy.glow.name": "Эй, слушай!", + "power.t_fairy.glow.description": "Вы можете переключать эффект свечения на себе. (Способность из Adapted Origins)", + + "power.t_fairy.leather.name": "Слишком тяжелая...", + "power.t_fairy.leather.description": "Вы не можете носить броню, которая сильнее кожанной.", + + "power.t_fairy.less_dmg.name": "Миролюбивый", + "power.t_fairy.less_dmg.description": "Вам крайне сложно ранить любое существо, вы наносите в 4 раза меньше урона.", + + "power.t_fairy.low_hp.name": "Слабое здоровье", + "power.t_fairy.low_hp.description": "У вас всего 3 сердца.", + + "power.t_fairy.magical_agility.name": "Магическая ловкость", + "power.t_fairy.magical_agility.description": "Вы никогда не получите урон от падения или неудачной посадки.", + + "power.t_fairy.tiny.name": "Маленький", + "power.t_fairy.tiny.description": "Вы можете пройти под полублоком без приседания." +} diff --git a/data/origins/origin_layers/origin.json b/data/origins/origin_layers/origin.json new file mode 100644 index 0000000..9b507f0 --- /dev/null +++ b/data/origins/origin_layers/origin.json @@ -0,0 +1,7 @@ +{ + "replace": false, + "enabled": true, + "origins": [ + "t_fairy:traveling_fairy" + ] + } \ No newline at end of file diff --git a/data/t_fairy/origins/traveling_fairy.json b/data/t_fairy/origins/traveling_fairy.json new file mode 100644 index 0000000..8d5dbff --- /dev/null +++ b/data/t_fairy/origins/traveling_fairy.json @@ -0,0 +1,22 @@ +{ + "powers": [ + "origins:elytra", + "t_fairy:fireworks", + "t_fairy:dash", + "t_fairy:flying", + "t_fairy:flying_toggle", + "t_fairy:glow", + "t_fairy:air_miner", + "t_fairy:magical_agility", + "t_fairy:tiny", + "t_fairy:leather", + "t_fairy:low_hp", + "t_fairy:aqua_outline", + "t_fairy:less_dmg", + "t_fairy:less_range_dmg", + "origins:vegetarian" + ], + "icon": "minecraft:feather", + "order": 10, + "impact": 3 +} diff --git a/data/t_fairy/powers/air_miner.json b/data/t_fairy/powers/air_miner.json new file mode 100644 index 0000000..e32512d --- /dev/null +++ b/data/t_fairy/powers/air_miner.json @@ -0,0 +1,11 @@ +{ + "type": "origins:modify_break_speed", + "modifier": { + "operation": "multiply_total", + "value": 4 + }, + "condition": { + "type": "origins:on_block", + "inverted": true + } +} \ No newline at end of file diff --git a/data/t_fairy/powers/aqua_outline.json b/data/t_fairy/powers/aqua_outline.json new file mode 100644 index 0000000..e947a6a --- /dev/null +++ b/data/t_fairy/powers/aqua_outline.json @@ -0,0 +1,32 @@ +{ + "type": "origins:multiple", + "hidden": true, + "create_team": { + "type": "origins:action_on_callback", + "execute_chosen_when_orb": true, + "entity_action_added": { + "type": "origins:execute_command", + "command": "team add Fairy" + } + }, + "team_status": { + "type": "origins:action_on_callback", + "execute_chosen_when_orb": true, + "entity_action_added": { + "type": "origins:execute_command", + "command": "team join Fairy @s" + }, + "entity_action_removed": { + "type": "origins:execute_command", + "command": "team leave @s" + } + }, + "team_color": { + "type": "origins:action_on_callback", + "execute_chosen_when_orb": true, + "entity_action_added": { + "type": "origins:execute_command", + "command": "team modify Fairy color aqua" + } + } +} \ No newline at end of file diff --git a/data/t_fairy/powers/dash.json b/data/t_fairy/powers/dash.json new file mode 100644 index 0000000..94bf274 --- /dev/null +++ b/data/t_fairy/powers/dash.json @@ -0,0 +1,26 @@ +{ + "type":"origins:active_self", + "entity_action":{ + "type":"origins:and", + "actions":[ + { + "type":"origins:add_velocity", + "z":2.5, + "space":"local" + }, + { + "type":"origins:add_velocity", + "y":0.5 + }, + { + "type":"origins:play_sound", + "sound":"minecraft:block.respawn_anchor.charge" + } + ] + }, + "cooldown":300, + "hud_render":{ + "bar_index":4 + }, + "key":"key.origins.secondary_active" +} \ No newline at end of file diff --git a/data/t_fairy/powers/fireworks.json b/data/t_fairy/powers/fireworks.json new file mode 100644 index 0000000..4a3f34c --- /dev/null +++ b/data/t_fairy/powers/fireworks.json @@ -0,0 +1,42 @@ +{ + "type": "origins:multiple", + "mainhand_firework": { + "type": "origins:active_self", + "entity_action": { + "type": "origins:and", + "actions": [ + { + "type": "origins:damage", + "amount": 1000, + "source": { + "name": "explosion", + "bypasses_armor": true + } + }, + { + "type": "origins:execute_command", + "command": "playsound minecraft:entity.firework_rocket.large_blast neutral @a ~ ~ ~ 8 0.7" + } + ] + }, + "cooldown": 0, + "hud_render": { + "should_render": false + }, + "key": { + "key": "key.use", + "continuous": true + }, + "condition": { + "type": "origins:equipped_item", + "equipment_slot": "mainhand", + "item_condition": { + "type": "origins:ingredient", + "ingredient": { + "item": "minecraft:firework_rocket" + } + } + } + }, + "badges": [] +} \ No newline at end of file diff --git a/data/t_fairy/powers/flying.json b/data/t_fairy/powers/flying.json new file mode 100644 index 0000000..39e8902 --- /dev/null +++ b/data/t_fairy/powers/flying.json @@ -0,0 +1,36 @@ +{ + "name": "Flying", + "description": "Main part of flying power", + "hidden": true, + "type": "origins:multiple", + "flight": { + "type": "origins:creative_flight", + "condition": { + "type": "origins:and", + "conditions": [ + { + "type": "origins:submerged_in", + "fluid": "minecraft:water", + "inverted": true + }, + { + "type": "origins:food_level", + "comparison": ">", + "compare_to": 6 + }, + { + "type": "apoli:power_active", + "power": "t_fairy:flying_toggle" + } + ] + } + }, + "food": { + "type": "origins:exhaust", + "interval": 10, + "exhaustion": 0.25, + "condition": { + "type": "origins:creative_flying" + } + } +} \ No newline at end of file diff --git a/data/t_fairy/powers/flying_toggle.json b/data/t_fairy/powers/flying_toggle.json new file mode 100644 index 0000000..6f9c060 --- /dev/null +++ b/data/t_fairy/powers/flying_toggle.json @@ -0,0 +1,8 @@ +{ + "type": "origins:toggle", + "active_by_default": true, + "key": { + "key": "key.origins.primary_active" + }, + "hidden": false +} \ No newline at end of file diff --git a/data/t_fairy/powers/glow.json b/data/t_fairy/powers/glow.json new file mode 100644 index 0000000..7b2a79f --- /dev/null +++ b/data/t_fairy/powers/glow.json @@ -0,0 +1,33 @@ +{ + "type": "origins:active_self", + "entity_action": { + "type": "origins:if_else", + "condition": { + "type": "origins:status_effect", + "effect": "minecraft:glowing", + "inverted": true + }, + "if_action": { + "type": "origins:apply_effect", + "effect":{ + "effect": "minecraft:glowing", + "show_particles": false, + "show_icon": false, + "duration": 999999999, + "amplifier": 1 + } + }, + "else_action": { + "type": "origins:clear_effect", + "effect": "minecraft:glowing" + } + }, + "cooldown": 0, +"key": { + "key": "key.loadToolbarActivator", + "continuous": false +}, + "hud_render": { + "should_render": false + } +} \ No newline at end of file diff --git a/data/t_fairy/powers/leather.json b/data/t_fairy/powers/leather.json new file mode 100644 index 0000000..dc3c57f --- /dev/null +++ b/data/t_fairy/powers/leather.json @@ -0,0 +1,23 @@ +{ + "type": "origins:restrict_armor", + "head": { + "type": "origins:armor_value", + "comparison": ">", + "compare_to": 1 + }, + "chest": { + "type": "origins:armor_value", + "comparison": ">", + "compare_to": 3 + }, + "legs": { + "type": "origins:armor_value", + "comparison": ">", + "compare_to": 2 + }, + "feet": { + "type": "origins:armor_value", + "comparison": ">", + "compare_to": 1 + } +} \ No newline at end of file diff --git a/data/t_fairy/powers/less_dmg.json b/data/t_fairy/powers/less_dmg.json new file mode 100644 index 0000000..b53d6e6 --- /dev/null +++ b/data/t_fairy/powers/less_dmg.json @@ -0,0 +1,7 @@ +{ + "type": "origins:modify_damage_dealt", + "modifier": { + "operation": "multiply_base", + "value": -0.75 + } +} \ No newline at end of file diff --git a/data/t_fairy/powers/less_range_dmg.json b/data/t_fairy/powers/less_range_dmg.json new file mode 100644 index 0000000..5b2bce2 --- /dev/null +++ b/data/t_fairy/powers/less_range_dmg.json @@ -0,0 +1,10 @@ +{ + "type": "origins:modify_projectile_damage", + "modifier": { + "operation": "multiply_base", + "value": -0.75 + }, + "hidden": true, + "name": "Peaceful", + "description": "Harming someone is not about you. You deal 4x less projectile damage." +} \ No newline at end of file diff --git a/data/t_fairy/powers/low_hp.json b/data/t_fairy/powers/low_hp.json new file mode 100644 index 0000000..5ecd628 --- /dev/null +++ b/data/t_fairy/powers/low_hp.json @@ -0,0 +1,9 @@ +{ + "type": "origins:attribute", + "modifier": { + "name": "Max health decrease", + "attribute": "minecraft:generic.max_health", + "value": -14, + "operation": "addition" + } +} \ No newline at end of file diff --git a/data/t_fairy/powers/magical_agility.json b/data/t_fairy/powers/magical_agility.json new file mode 100644 index 0000000..3ddd12d --- /dev/null +++ b/data/t_fairy/powers/magical_agility.json @@ -0,0 +1,16 @@ +{ + "type":"origins:invulnerability", + "damage_condition":{ + "type":"origins:or", + "conditions":[ + { + "type":"origins:name", + "name":"fall" + }, + { + "type":"origins:name", + "name":"flyIntoWall" + } + ] + } +} \ No newline at end of file diff --git a/data/t_fairy/powers/tiny.json b/data/t_fairy/powers/tiny.json new file mode 100644 index 0000000..07f301e --- /dev/null +++ b/data/t_fairy/powers/tiny.json @@ -0,0 +1,28 @@ +{ + "type": "origins:action_on_callback", + "entity_action_chosen": { + "type": "origins:and", + "actions": [ + { + "type": "origins:execute_command", + "command": "scale set pehkui:height 0.25 @s" + }, + { + "type": "origins:execute_command", + "command": "scale set pehkui:width 0.25 @s" + }, + { + "type": "origins:execute_command", + "command": "scale set pehkui:drops 0.9 @s" + }, + { + "type": "origins:execute_command", + "command": "scale persist set true @s" + } + ] + }, + "entity_action_lost": { + "type": "origins:execute_command", + "command": "scale reset @s" + } +} \ No newline at end of file diff --git a/fabric.mod.json b/fabric.mod.json new file mode 100644 index 0000000..7c0785b --- /dev/null +++ b/fabric.mod.json @@ -0,0 +1,19 @@ +{ + "schemaVersion":1, + "id":"traveling_fairy", + "name":"Traveling Fairy", + "version":"1", + "description":"This fairy doesn't have to look for her brother (or sister), but she still loves to travel.", + "license":"MIT", + "authors":[ + "Fl414r" + ], + "contributors":[ + "Fl414r" + ], + "depends":{ + "minecraft":"*", + "origins":"*", + "pehkui":"*" + } +} \ No newline at end of file