Update for the 'Monarch' Origin

-Changed the way sun energy works
-Added sun totem
-Added lack_of_sun damage type
This commit is contained in:
CosmoOrSth
2024-10-13 13:01:11 +05:30
parent 2b00c24bcb
commit acd4d32e56
13 changed files with 115 additions and 6 deletions

View File

@@ -4,6 +4,7 @@ import net.arcmods.arcteam.terraoriginum.blocks.cottonCropBlock;
import net.arcmods.arcteam.terraoriginum.blocks.crucifix;
import net.arcmods.arcteam.terraoriginum.items.cottonItems;
import net.arcmods.arcteam.terraoriginum.items.mync_eye;
import net.arcmods.arcteam.terraoriginum.items.sun_totem;
import net.arcmods.arcteam.terraoriginum.items.umbrella;
import net.arcmods.arcteam.terraoriginum.registry.modEnchantments;
import net.fabricmc.api.ModInitializer;
@@ -26,8 +27,10 @@ public class TerraOriginum implements ModInitializer {
crucifix.register();
cottonCropBlock.register();
cottonItems.register();
sun_totem.register();
ItemGroupEvents.modifyEntriesEvent(ItemGroups.TOOLS).register((content) -> content.add(umbrella.UMBRELLA));
ItemGroupEvents.modifyEntriesEvent(ItemGroups.TOOLS).register((content) -> content.add(sun_totem.SUN_TOTEM));
ItemGroupEvents.modifyEntriesEvent(ItemGroups.FUNCTIONAL).register((content) -> content.add(crucifix.CRUCIFIX));
ItemGroupEvents.modifyEntriesEvent(ItemGroups.NATURAL).register((content) -> content.add(cottonItems.COTTON_SEEDS));
ItemGroupEvents.modifyEntriesEvent(ItemGroups.INGREDIENTS).register((content) -> content.add(cottonItems.COTTON_BALL));

View File

@@ -0,0 +1,17 @@
package net.arcmods.arcteam.terraoriginum.items;
import net.arcmods.arcteam.terraoriginum.TerraOriginum;
import net.minecraft.item.Item;
import net.minecraft.registry.Registries;
import net.minecraft.registry.Registry;
import net.minecraft.util.Identifier;
import net.minecraft.util.Rarity;
public class sun_totem {
public static final Item SUN_TOTEM = new Item(new Item.Settings().maxCount(1).rarity(Rarity.EPIC));
public static void register() {
Registry.register(Registries.ITEM, new Identifier(TerraOriginum.MOD_ID, "sun_totem"), SUN_TOTEM);
}
}

View File

@@ -6,9 +6,14 @@
"item.terraoriginum.cotton_seeds": "Cotton Seeds",
"item.terraoriginum.cotton_ball": "Cotton ball",
"item.terraoriginum.sun_totem": "Sun Totem",
"death.attack.lack_of_ectoplasm": "%1$s faded away",
"death.attack.lack_of_ectoplasm.player": "%1$s faded away whilst trying to escape %2$s",
"death.attack.lack_of_sun": "%1$s fell apart",
"death.attack.lack_of_sun.player": "%1$s fell apart whilst fighting %2$s",
"death.attack.boiling": "%1$s boiled up",
"death.attack.boiling.player": "%1$s boiled up whilst trying to fight off %2$s",
@@ -217,7 +222,7 @@
"power.terraoriginum.monarchpowers/hyperefficient_blood.name": "Hyperefficient Blood",
"power.terraoriginum.monarchpowers/hyperefficient_blood.description": "Your blood is extremely efficient, destroying any poisons within your bloodstream before they have a chance to do any damage",
"power.terraoriginum.monarchpowers/solar_energy.name": "Solar Energy",
"power.terraoriginum.monarchpowers/solar_energy.description": "You draw energy from the sun and store it within your body, and access it at will to use various abilities",
"power.terraoriginum.monarchpowers/solar_energy.description": "You draw energy from the sun and store it within your body, and access it at will to use various abilities. But if you run out, your body will no longer be able to keep itself together",
"power.terraoriginum.monarchpowers/sun_fueled.name": "Sun Fueled",
"power.terraoriginum.monarchpowers/sun_fueled.description": "You have evolved to draw power from the sun, leading you to become more powerful during the day",
"power.terraoriginum.monarchpowers/nuclear_rush.name": "Nuclear Rush",
@@ -232,7 +237,8 @@
"power.terraoriginum.monarchpowers/super_dash.description": "release a large portion of the solar energy stored within your body to create a large amount of thrust in whatever direction you are facing",
"power.terraoriginun.monarchpowers/hydropetrification.name": "Hydropetrification",
"power.terraoriginum.monarchpowers/hydropetrification.description": "Your body's cells contain a high concentration of neutrinos to facilitate nuclear processes whithin itself, this causes your entire body to heavily slow down underwater",
"power.terraoriginum.monarchpowers/totem_fueled.name": "Totem Fueled",
"power.terraoriginum.monarchpowers/totem_fueled.description": "Craft a Sun Totem and hold it to get small amounts of sun energy even outside the sun",
"death.attack.terraoriginum:last_stand": "%1$s made their last stand.",
"death.attack.terraoriginum:last_stand.player": "%1$s made their last stand trying to kill %2$s."

View File

@@ -0,0 +1,6 @@
{
"parent": "item/generated",
"textures": {
"layer0": "terraoriginum:item/sun_totem"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 440 B

View File

@@ -0,0 +1,5 @@
{
"exhaustion": 0.1,
"message_id": "lack_of_sun",
"scaling": "never"
}

View File

@@ -7,8 +7,10 @@
"terraoriginum:monarchpowers/hyperefficient_blood",
"terraoriginum:monarchpowers/hydropetrification",
"terraoriginum:monarchpowers/sun_fueled",
"terraoriginum:monarchpowers/totem_fueled",
"terraoriginum:monarchpowers/nyctophobia",
"terraoriginum:monarchpowers/shining"
"terraoriginum:monarchpowers/shining",
"terraoriginum:monarchpowers/lackofsundamage"
],
"icon": "fire_charge",
"order": 999,

View File

@@ -19,7 +19,7 @@
"type": "origins:apply_effect",
"effect": {
"effect": "minecraft:mining_fatigue",
"duration": 200,
"duration": 10,
"amplifier": 2
}

View File

@@ -0,0 +1,24 @@
{
"type": "origins:action_over_time",
"hidden": true,
"interval": 20,
"entity_action": {
"type": "origins:if_else_list",
"actions": [
{
"condition": {
"type": "origins:resource",
"resource": "terraoriginum:monarchpowers/solar_energy",
"comparison": "<",
"compare_to": 50
},
"action": {
"type": "origins:damage",
"amount": 4,
"damage_type": "terraoriginum:lack_of_sun"
}
}
]
}
}

View File

@@ -1,6 +1,6 @@
{
"condition": {
"type": "origins:daytime"
"type": "origins:exposed_to_sun"
},
"type": "origins:action_over_time",
"interval": 40,

View File

@@ -14,7 +14,6 @@
{
"type": "origins:execute_command",
"command": "particle dust_color_transition 0.9 0.38 0 1 0.88 0.11 0.14 ~ ~1 ~ 0.5 0 0.5 10 100 force"
},
{
"type": "origins:execute_command",

View File

@@ -0,0 +1,24 @@
{
"condition": {
"type": "origins:inventory",
"process_mode": "items",
"slots": [
"weapon.mainhand",
"weapon.offhand"
],
"item_condition": {
"type": "origins:ingredient",
"ingredient": {
"item": "terraoriginum:sun_totem"
}
}
},
"type": "origins:action_over_time",
"interval": 40,
"entity_action": {
"type": "origins:change_resource",
"resource": "terraoriginum:monarchpowers/solar_energy",
"change": 4,
"operation": "add"
}
}

View File

@@ -0,0 +1,23 @@
{
"type": "minecraft:crafting_shaped",
"pattern": [
" / ",
"#P#",
" / "
],
"key": {
"#": {
"item": "minecraft:redstone"
},
"/": {
"item": "minecraft:fire_charge"
},
"P": {
"item": "minecraft:totem_of_undying"
}
},
"result": {
"item": "terraoriginum:sun_totem",
"count": 1
}
}