Skip to content

Commit

Permalink
First version
Browse files Browse the repository at this point in the history
  • Loading branch information
Fl414r authored Sep 25, 2023
1 parent a81ce06 commit c0d3271
Show file tree
Hide file tree
Showing 19 changed files with 408 additions and 0 deletions.
11 changes: 11 additions & 0 deletions META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -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

34 changes: 34 additions & 0 deletions assets/t_fairy/lang/en_us.json
Original file line number Diff line number Diff line change
@@ -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."
}
34 changes: 34 additions & 0 deletions assets/t_fairy/lang/ru_ru.json
Original file line number Diff line number Diff line change
@@ -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": "Вы можете пройти под полублоком без приседания."
}
7 changes: 7 additions & 0 deletions data/origins/origin_layers/origin.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"replace": false,
"enabled": true,
"origins": [
"t_fairy:traveling_fairy"
]
}
22 changes: 22 additions & 0 deletions data/t_fairy/origins/traveling_fairy.json
Original file line number Diff line number Diff line change
@@ -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
}
11 changes: 11 additions & 0 deletions data/t_fairy/powers/air_miner.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"type": "origins:modify_break_speed",
"modifier": {
"operation": "multiply_total",
"value": 4
},
"condition": {
"type": "origins:on_block",
"inverted": true
}
}
32 changes: 32 additions & 0 deletions data/t_fairy/powers/aqua_outline.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
}
26 changes: 26 additions & 0 deletions data/t_fairy/powers/dash.json
Original file line number Diff line number Diff line change
@@ -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"
}
42 changes: 42 additions & 0 deletions data/t_fairy/powers/fireworks.json
Original file line number Diff line number Diff line change
@@ -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": []
}
36 changes: 36 additions & 0 deletions data/t_fairy/powers/flying.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
}
8 changes: 8 additions & 0 deletions data/t_fairy/powers/flying_toggle.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"type": "origins:toggle",
"active_by_default": true,
"key": {
"key": "key.origins.primary_active"
},
"hidden": false
}
33 changes: 33 additions & 0 deletions data/t_fairy/powers/glow.json
Original file line number Diff line number Diff line change
@@ -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
}
}
23 changes: 23 additions & 0 deletions data/t_fairy/powers/leather.json
Original file line number Diff line number Diff line change
@@ -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
}
}
7 changes: 7 additions & 0 deletions data/t_fairy/powers/less_dmg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "origins:modify_damage_dealt",
"modifier": {
"operation": "multiply_base",
"value": -0.75
}
}
10 changes: 10 additions & 0 deletions data/t_fairy/powers/less_range_dmg.json
Original file line number Diff line number Diff line change
@@ -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."
}
9 changes: 9 additions & 0 deletions data/t_fairy/powers/low_hp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"type": "origins:attribute",
"modifier": {
"name": "Max health decrease",
"attribute": "minecraft:generic.max_health",
"value": -14,
"operation": "addition"
}
}
16 changes: 16 additions & 0 deletions data/t_fairy/powers/magical_agility.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"type":"origins:invulnerability",
"damage_condition":{
"type":"origins:or",
"conditions":[
{
"type":"origins:name",
"name":"fall"
},
{
"type":"origins:name",
"name":"flyIntoWall"
}
]
}
}
Loading

0 comments on commit c0d3271

Please sign in to comment.