added a wholebunch

This commit is contained in:
2026-07-12 23:18:35 +02:00
parent 1255af457f
commit 1e52065e92
18 changed files with 201 additions and 14 deletions

View File

@@ -13,14 +13,19 @@ import net.minecraft.util.Identifier;
public class ModPowers { public class ModPowers {
public static final PowerFactory<?> CAN_WALK_ON_POWDER_SNOW = new PowerFactory<>( new Identifier(Faithful.MOD_ID, "can_walk_on_powder_snow"), new SerializableData(), data -> (type, entity) -> new CanStandOnPowderSnow(type, entity)).allowCondition(); public static final PowerFactory<?> CAN_WALK_ON_POWDER_SNOW = new PowerFactory<>(
public static final PowerFactory<?> PREVENT_BLOCK_SLOWNESS = new PowerFactory<>(new Identifier(Faithful.MOD_ID, "prevent_block_slowness"), new SerializableData(), data -> (type, entity) -> new PreventBlockSlowness(type, entity)).allowCondition(); new Identifier(Faithful.MOD_ID, "can_walk_on_powder_snow"), new SerializableData(),
data -> (type, entity) -> new CanStandOnPowderSnow(type, entity)).allowCondition();
public static final PowerFactory<?> PREVENT_BLOCK_SLOWNESS = new PowerFactory<>(
new Identifier(Faithful.MOD_ID, "prevent_block_slowness"), new SerializableData(),
data -> (type, entity) -> new PreventBlockSlowness(type, entity)).allowCondition();
public static final PowerFactory<?> WINGS_POWER = WingsPower.createFactory().allowCondition(); public static final PowerFactory<?> WINGS_POWER = WingsPower.createFactory().allowCondition();
public static void register() { public static void register() {
Registry.register(ApoliRegistries.POWER_FACTORY, CAN_WALK_ON_POWDER_SNOW.getSerializerId(), CAN_WALK_ON_POWDER_SNOW); Registry.register(ApoliRegistries.POWER_FACTORY, CAN_WALK_ON_POWDER_SNOW.getSerializerId(),
Registry.register(ApoliRegistries.POWER_FACTORY, PREVENT_BLOCK_SLOWNESS.getSerializerId(), PREVENT_BLOCK_SLOWNESS); CAN_WALK_ON_POWDER_SNOW);
Registry.register(ApoliRegistries.POWER_FACTORY, PREVENT_BLOCK_SLOWNESS.getSerializerId(),
PREVENT_BLOCK_SLOWNESS);
Registry.register(ApoliRegistries.POWER_FACTORY, WingsPower.POWER_TYPE_ID, WINGS_POWER); Registry.register(ApoliRegistries.POWER_FACTORY, WingsPower.POWER_TYPE_ID, WINGS_POWER);
} }

View File

@@ -35,7 +35,7 @@
"origin.faithful.kitsune.name": "Kitsune", "origin.faithful.kitsune.name": "Kitsune",
"origin.faithful.kitsune.description": "Kitsune are small creatures, due to their foxlike origins.", "origin.faithful.kitsune.description": "Kitsune are small creatures, due to their foxlike origins.",
"power.faithful.kitsune-powers/light.name": "Light", "power.faithful.kitsune-powers/light.name": "Light",
"power.faithful.kitsune-powers/light.description": "Kitsune do not sink in powder snow, and do not alert skulk", "power.faithful.kitsune-powers/light.description": "Kitsune do not sink in powder snow, and do not alert skulk.",
"power.faithful.kitsune-powers/small.name": "Small", "power.faithful.kitsune-powers/small.name": "Small",
"power.faithful.kitsune-powers/small.description": "Kitsune are small creatures, due to their foxlike origins.", "power.faithful.kitsune-powers/small.description": "Kitsune are small creatures, due to their foxlike origins.",
"power.faithful.kitsune-powers/swift.name": "Swift", "power.faithful.kitsune-powers/swift.name": "Swift",
@@ -49,5 +49,31 @@
"power.faithful.orc-powers/strength.name": "Orcish Strength", "power.faithful.orc-powers/strength.name": "Orcish Strength",
"power.faithful.orc-powers/strength.description": "Orcs do extra damage when attacking.", "power.faithful.orc-powers/strength.description": "Orcs do extra damage when attacking.",
"power.faithful.orc-powers/orc_skin.name": "Orc Skin", "power.faithful.orc-powers/orc_skin.name": "Orc Skin",
"power.faithful.orc-powers/orc_skin.description": "Orcs skin grants them a bit of armour." "power.faithful.orc-powers/orc_skin.description": "Orcs skin grants them a bit of armour.",
//-----goblin-----//
"origin.faithful.goblin.name": "Goblin",
"origin.faithful.goblin.description": "A diminutive and grotesque creature of mischief.",
"power.faithful.goblin-powers/quick.name": "Quick",
"power.faithful.goblin-powers/quick.description": "Goblins are quite fleet-footed for their short stature.",
"power.faithful.goblin-powers/short.name": "Short",
"power.faithful.goblin-powers/short.description": "Goblins are quite short.",
"power.faithful.goblin-powers/persuasive.name": "Persuasive",
"power.faithful.goblin-powers/persuasive.description": "Goblins are surprisingly good at.",
//-----harpy-----//
"origin.faithful.harpy.name": "Harpy",
"origin.faithful.harpy.description": "Strange half-bird half-human creatures of spiritual origin.",
"power.faithful.harpy-powers/birdlike.name": "Birdlike Steps",
"power.faithful.harpy-powers/birdlike.description": "Like birds, harpies somehow do not sink in snow.",
"power.faithful.harpy-powers/claws.name": "Claws",
"power.faithful.harpy-powers/claws.description": "Harpies do extra damage thanks to their claws.",
"power.faithful.harpy-powers/winged.name": "Winged",
"power.faithful.harpy-powers/winged.description": "Harpies have wings due to their half-bird nature.",
//-----merfolk-----//
"origin.faithful.merfolk.name": "Merfolk",
"origin.faithful.merfolk.description": "Mythical creatures of the ocean.",
"power.faithful.merfolk-powers/gills.name": "Gills",
"power.faithful.merfolk-powers/gills.description": "Merfolk can breathe underwater, but are slowed on land."
} }

View File

@@ -16,7 +16,7 @@
"conditions": [ "conditions": [
{ {
"condition": "minecraft:random_chance", "condition": "minecraft:random_chance",
"chance": 0.05 "chance": 0.00125
} }
] ]
}, },
@@ -28,7 +28,7 @@
"conditions": [ "conditions": [
{ {
"condition": "minecraft:random_chance", "condition": "minecraft:random_chance",
"chance": 0.05 "chance": 0.00125
} }
] ]
} }

View File

@@ -0,0 +1,10 @@
{
"powers": [
"faithful:goblin-powers/persuasive",
"faithful:goblin-powers/quick",
"faithful:goblin-powers/short"
],
"icon": "minecraft:dirt",
"order": 1006,
"impact": 1
}

View File

@@ -0,0 +1,10 @@
{
"powers": [
"faithful:harpy-powers/winged",
"faithful:harpy-powers/claws",
"faithful:harpy-powers/birdlike"
],
"icon": "minecraft:dirt",
"order": 1007,
"impact": 1
}

View File

@@ -0,0 +1,13 @@
{
"powers": [
"faithful:merfolk-powers/gills",
"origins:aqua_affinity",
"origins:water_vision",
"origins:like_water",
"origins:swim_speed",
"origins:aquatic"
],
"icon": "minecraft:dirt",
"order": 1008,
"impact": 3
}

View File

@@ -0,0 +1,15 @@
{
"type": "origins:action_over_time",
"interval": 5,
"entity_action": {
"type": "origins:apply_effect",
"effects": [
{
"effect": "minecraft:hero_of_the_village",
"duration": 35,
"show_particles": false,
"show_icon": false
}
]
}
}

View File

@@ -0,0 +1,9 @@
{
"type": "origins:attribute",
"modifier": {
"name": "swift",
"attribute": "minecraft:generic.movement_speed",
"value": 0.06,
"operation": "multiply_base"
}
}

View File

@@ -0,0 +1,24 @@
{
"type": "origins:action_on_callback",
"entity_action_gained": {
"type": "origins:and",
"actions": [
{
"type": "origins:execute_command",
"command": "scale set pehkui:height .80 @s",
"permission_level": 4
},
{
"type": "origins:execute_command",
"command": "scale set pehkui:width .80 @s",
"permission_level": 4
},
{
"type": "origins:execute_command",
"command": "scale persist set true",
"permission_level": 4
}
]
},
"when_orb": true
}

View File

@@ -0,0 +1,13 @@
{
"type": "origins:multiple",
"no_skulk": {
"type": "origins:prevent_game_event",
"event": "minecraft:step",
"events": [
"minecraft:hit_ground"
]
},
"snow": {
"type": "faithful:can_walk_on_powder_snow"
}
}

View File

@@ -0,0 +1,13 @@
{
"type": "origins:attribute",
"modifiers":
[
{
"name": "wings damage",
"attribute": "generic.attack_damage",
"value": 3.0,
"operation": "addition"
}
]
}

View File

@@ -0,0 +1,6 @@
{
"type": "faithful:wings",
"wings_type": "icarus:white_feathered_wings",
"armor_slows": false,
"exhaustion_amount": 0.1
}

View File

@@ -9,5 +9,8 @@
}, },
"snow": { "snow": {
"type": "faithful:can_walk_on_powder_snow" "type": "faithful:can_walk_on_powder_snow"
},
"prevent_block_slowness": {
"type": "faithful:prevent_block_slowness"
} }
} }

View File

@@ -5,12 +5,12 @@
"actions": [ "actions": [
{ {
"type": "origins:execute_command", "type": "origins:execute_command",
"command": "scale set pehkui:height .80 @s", "command": "scale set pehkui:height .75 @s",
"permission_level": 4 "permission_level": 4
}, },
{ {
"type": "origins:execute_command", "type": "origins:execute_command",
"command": "scale set pehkui:width .80 @s", "command": "scale set pehkui:width .75 @s",
"permission_level": 4 "permission_level": 4
}, },
{ {

View File

@@ -3,7 +3,7 @@
"modifier": { "modifier": {
"name": "swift", "name": "swift",
"attribute": "minecraft:generic.movement_speed", "attribute": "minecraft:generic.movement_speed",
"value": 0.05, "value": 0.1,
"operation": "multiply_base" "operation": "multiply_base"
} }
} }

View File

@@ -0,0 +1,38 @@
{
"type": "origins:action_over_time",
"interval": 5,
"entity_action": {
"type": "origins:if_else_list",
"actions": [
{
"condition": {
"type": "origins:submerged_in",
"fluid": "minecraft:water"
},
"action": {
"type": "origins:gain_air",
"value": 20
}
},
{
"condition": {
"type": "origins:submerged_in",
"fluid": "minecraft:water",
"inverted": true
},
"action": {
"type": "origins:apply_effect",
"effects": [
{
"effect": "minecraft:slowness",
"duration": 35,
"amplifier": 1,
"show_particles": false,
"show_icon": false
}
]
}
}
]
}
}

View File

@@ -6,6 +6,9 @@
"faithful:pixie", "faithful:pixie",
"faithful:kitsune", "faithful:kitsune",
"faithful:orc", "faithful:orc",
"faithful:goblin",
"faithful:harpy",
"faithful:merfolk",
{ {
"condition": { "condition": {
"type": "origins:equipped_item", "type": "origins:equipped_item",

View File

@@ -8,8 +8,7 @@
"name": "Faithful Origins", "name": "Faithful Origins",
"description": "Origins for Celestia SMP", "description": "Origins for Celestia SMP",
"authors": [ "authors": [
"Gæmer", "Gæmer"
"CosmoOrSth(or sth)"
], ],
"contact": { "contact": {
"issues": "https://git.bigsmithy.org/Smithy/faithful-origins/issues", "issues": "https://git.bigsmithy.org/Smithy/faithful-origins/issues",