Changes(real)

- Fixed bug which caused the Monarch's solar energy to not be functional.
- Changed texture of the cotton crop.
- Changed texture of the cotton ball.
- Added Item "Ghostly Cloth".
- Renamed java class "sun_totem" to "sunTotem" to fit convention.
This commit is contained in:
CosmoOrSth
2025-01-20 16:39:35 +05:30
parent ce1258228c
commit 621356df11
32 changed files with 95 additions and 32 deletions

View File

@@ -1,3 +1,6 @@
# Changes # Changes
- changed namespace of 'monarchpowers' directory to 'monarch-powers' to fit convention. - Fixed bug which caused the Monarch's solar energy to not be functional.
- added 'farmland' to list of blocks that the Blight will turn to coarse dirt upon stepping on it. - Changed texture of the cotton crop.
- Changed texture of the cotton ball.
- Added Item "Ghostly Cloth".
- Renamed java class "sun_totem" to "sunTotem" to fit convention.

View File

@@ -2,10 +2,7 @@ package com.smithy.terraoriginum;
import com.smithy.terraoriginum.blocks.cottonCropBlock; import com.smithy.terraoriginum.blocks.cottonCropBlock;
import com.smithy.terraoriginum.blocks.crucifix; import com.smithy.terraoriginum.blocks.crucifix;
import com.smithy.terraoriginum.items.iconItems; import com.smithy.terraoriginum.items.*;
import com.smithy.terraoriginum.items.sun_totem;
import com.smithy.terraoriginum.items.cottonItems;
import com.smithy.terraoriginum.items.umbrella;
import com.smithy.terraoriginum.registry.modEnchantments; import com.smithy.terraoriginum.registry.modEnchantments;
import net.fabricmc.api.ModInitializer; import net.fabricmc.api.ModInitializer;
import net.fabricmc.fabric.api.itemgroup.v1.ItemGroupEvents; import net.fabricmc.fabric.api.itemgroup.v1.ItemGroupEvents;
@@ -27,10 +24,11 @@ public class TerraOriginum implements ModInitializer {
crucifix.register(); crucifix.register();
cottonCropBlock.register(); cottonCropBlock.register();
cottonItems.register(); cottonItems.register();
sun_totem.register(); sunTotem.register();
ghostlyItems.register();
ItemGroupEvents.modifyEntriesEvent(ItemGroups.TOOLS).register((content) -> content.add(umbrella.UMBRELLA)); 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.TOOLS).register((content) -> content.add(sunTotem.SUN_TOTEM));
ItemGroupEvents.modifyEntriesEvent(ItemGroups.FUNCTIONAL).register((content) -> content.add(crucifix.CRUCIFIX)); ItemGroupEvents.modifyEntriesEvent(ItemGroups.FUNCTIONAL).register((content) -> content.add(crucifix.CRUCIFIX));
ItemGroupEvents.modifyEntriesEvent(ItemGroups.NATURAL).register((content) -> content.add(cottonItems.COTTON_SEEDS)); ItemGroupEvents.modifyEntriesEvent(ItemGroups.NATURAL).register((content) -> content.add(cottonItems.COTTON_SEEDS));
ItemGroupEvents.modifyEntriesEvent(ItemGroups.INGREDIENTS).register((content) -> content.add(cottonItems.COTTON_BALL)); ItemGroupEvents.modifyEntriesEvent(ItemGroups.INGREDIENTS).register((content) -> content.add(cottonItems.COTTON_BALL));

View File

@@ -0,0 +1,20 @@
package com.smithy.terraoriginum.items;
import net.fabricmc.fabric.api.item.v1.FabricItemSettings;
import net.minecraft.item.Item;
import net.minecraft.registry.Registries;
import net.minecraft.registry.Registry;
import net.minecraft.util.Identifier;
public class ghostlyItems {
public static final Item GHOSTLY_CLOTH = new Item(new FabricItemSettings());
public static void register() {
Registry.register(Registries.ITEM, new Identifier("terraoriginum", "ghostly_cloth"), GHOSTLY_CLOTH);
}
}

View File

@@ -7,7 +7,7 @@ import net.minecraft.registry.Registry;
import net.minecraft.util.Identifier; import net.minecraft.util.Identifier;
import net.minecraft.util.Rarity; import net.minecraft.util.Rarity;
public class sun_totem { public class sunTotem {
public static final Item SUN_TOTEM = new Item(new Item.Settings().maxCount(1).rarity(Rarity.EPIC)); public static final Item SUN_TOTEM = new Item(new Item.Settings().maxCount(1).rarity(Rarity.EPIC));

View File

@@ -4,25 +4,25 @@
"model": "terraoriginum:block/cotton_crop_stage0" "model": "terraoriginum:block/cotton_crop_stage0"
}, },
"age=1": { "age=1": {
"model": "terraoriginum:block/cotton_crop_stage0" "model": "terraoriginum:block/cotton_crop_stage1"
}, },
"age=2": { "age=2": {
"model": "terraoriginum:block/cotton_crop_stage1" "model": "terraoriginum:block/cotton_crop_stage1"
}, },
"age=3": { "age=3": {
"model": "terraoriginum:block/cotton_crop_stage1" "model": "terraoriginum:block/cotton_crop_stage2"
}, },
"age=4": { "age=4": {
"model": "terraoriginum:block/cotton_crop_stage2" "model": "terraoriginum:block/cotton_crop_stage3"
}, },
"age=5": { "age=5": {
"model": "terraoriginum:block/cotton_crop_stage2" "model": "terraoriginum:block/cotton_crop_stage3"
}, },
"age=6": { "age=6": {
"model": "terraoriginum:block/cotton_crop_stage2" "model": "terraoriginum:block/cotton_crop_stage4"
}, },
"age=7": { "age=7": {
"model": "terraoriginum:block/cotton_crop_stage3" "model": "terraoriginum:block/cotton_crop_stage5"
} }
} }
} }

View File

@@ -8,6 +8,8 @@
"item.terraoriginum.cotton_seeds": "Cotton Seeds", "item.terraoriginum.cotton_seeds": "Cotton Seeds",
"item.terraoriginum.cotton_ball": "Cotton ball", "item.terraoriginum.cotton_ball": "Cotton ball",
"item.terraoriginum.ghostly_cloth": "Ghostly Cloth",
"item.terraoriginum.sun_totem": "Sun Totem", "item.terraoriginum.sun_totem": "Sun Totem",
"death.attack.lack_of_ectoplasm": "%1$s faded away", "death.attack.lack_of_ectoplasm": "%1$s faded away",

View File

@@ -1,7 +1,7 @@
{ {
"parent": "minecraft:block/crop", "parent": "minecraft:block/cross",
"textures": { "textures": {
"crop": "terraoriginum:block/cotton_crop_block_stage0" "cross": "terraoriginum:block/crop_cotton_0"
} }
} }

View File

@@ -1,7 +1,7 @@
{ {
"parent": "minecraft:block/crop", "parent": "minecraft:block/cross",
"textures": { "textures": {
"crop": "terraoriginum:block/cotton_crop_block_stage1" "cross": "terraoriginum:block/crop_cotton_1"
} }
} }

View File

@@ -1,7 +1,7 @@
{ {
"parent": "minecraft:block/crop", "parent": "minecraft:block/cross",
"textures": { "textures": {
"crop": "terraoriginum:block/cotton_crop_block_stage2" "cross": "terraoriginum:block/crop_cotton_2"
} }
} }

View File

@@ -1,7 +1,7 @@
{ {
"parent": "minecraft:block/crop", "parent": "minecraft:block/cross",
"textures": { "textures": {
"crop": "terraoriginum:block/cotton_crop_block_stage3" "cross": "terraoriginum:block/crop_cotton_3"
} }
} }

View File

@@ -0,0 +1,7 @@
{
"parent": "minecraft:block/cross",
"textures": {
"cross": "terraoriginum:block/crop_cotton_4"
}
}

View File

@@ -0,0 +1,7 @@
{
"parent": "minecraft:block/cross",
"textures": {
"cross": "terraoriginum:block/crop_cotton_5"
}
}

View File

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 228 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 316 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 430 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 294 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 449 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 474 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 508 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 562 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 577 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 589 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 248 B

After

Width:  |  Height:  |  Size: 614 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 373 B

View File

@@ -1,7 +1,7 @@
{ {
"condition": { "condition": {
"type": "origins:resource", "type": "origins:resource",
"resource": "terraoriginum:monarchpowers/solar_energy", "resource": "terraoriginum:monarch-powers/solar_energy",
"comparison": ">=", "comparison": ">=",
"compare_to": 50 "compare_to": 50
}, },
@@ -48,7 +48,7 @@
}, },
{ {
"type": "origins:change_resource", "type": "origins:change_resource",
"resource": "terraoriginum:monarchpowers/solar_energy", "resource": "terraoriginum:monarch-powers/solar_energy",
"change": -50, "change": -50,
"operation": "add" "operation": "add"
} }

View File

@@ -8,7 +8,7 @@
{ {
"condition": { "condition": {
"type": "origins:resource", "type": "origins:resource",
"resource": "terraoriginum:monarchpowers/solar_energy", "resource": "terraoriginum:monarch-powers/solar_energy",
"comparison": "<", "comparison": "<",
"compare_to": 50 "compare_to": 50
}, },

View File

@@ -1,7 +1,7 @@
{ {
"condition": { "condition": {
"type": "origins:resource", "type": "origins:resource",
"resource": "terraoriginum:monarchpowers/solar_energy", "resource": "terraoriginum:monarch-powers/solar_energy",
"comparison": ">=", "comparison": ">=",
"compare_to": 100 "compare_to": 100
}, },
@@ -35,7 +35,7 @@
}, },
{ {
"type": "origins:change_resource", "type": "origins:change_resource",
"resource": "terraoriginum:monarchpowers/solar_energy", "resource": "terraoriginum:monarch-powers/solar_energy",
"change": -100, "change": -100,
"operation": "add" "operation": "add"
}, },

View File

@@ -6,7 +6,7 @@
"interval": 40, "interval": 40,
"entity_action": { "entity_action": {
"type": "origins:change_resource", "type": "origins:change_resource",
"resource": "terraoriginum:monarchpowers/solar_energy", "resource": "terraoriginum:monarch-powers/solar_energy",
"change": 10, "change": 10,
"operation": "add" "operation": "add"
} }

View File

@@ -21,7 +21,7 @@
}, },
{ {
"type": "origins:change_resource", "type": "origins:change_resource",
"resource": "terraoriginum:monarchpowers/solar_energy", "resource": "terraoriginum:monarch-powers/solar_energy",
"change": -300 "change": -300
} }
] ]
@@ -31,7 +31,7 @@
}, },
"condition": { "condition": {
"type": "origins:resource", "type": "origins:resource",
"resource": "terraoriginum:monarchpowers/solar_energy", "resource": "terraoriginum:monarch-powers/solar_energy",
"comparison": ">=", "comparison": ">=",
"compare_to": 200 "compare_to": 200
}, },

View File

@@ -17,7 +17,7 @@
"interval": 40, "interval": 40,
"entity_action": { "entity_action": {
"type": "origins:change_resource", "type": "origins:change_resource",
"resource": "terraoriginum:monarchpowers/solar_energy", "resource": "terraoriginum:monarch-powers/solar_energy",
"change": 4, "change": 4,
"operation": "add" "operation": "add"
} }

View File

@@ -0,0 +1,20 @@
{
"type": "minecraft:crafting_shaped",
"pattern": [
" # ",
"#E#",
" # "
],
"key": {
"#": {
"item": "terraoriginum:cotton_ball"
},
"E": {
"item": "minecraft:echo_shard"
}
},
"result": {
"item": "terraoriginum:ghostly_cloth",
"count": 1
}
}