Compare commits

..

3 Commits

Author SHA1 Message Date
60d41ebce7
added missing "Ultra" tools & rebalanced them 2025-01-10 21:37:06 +01:00
33ec0f816a
green_to_apha improvement 2025-01-10 21:33:02 +01:00
3a47e9954c
Change to ParchmentMC mappings 2025-01-10 20:00:10 +01:00
18 changed files with 55 additions and 7 deletions

View File

@ -3,6 +3,7 @@ plugins {
id 'idea'
id 'maven-publish'
id 'net.minecraftforge.gradle' version '[6.0,6.2)'
id 'org.parchmentmc.librarian.forgegradle' version '1.+'
}
version = mod_version
@ -30,7 +31,7 @@ minecraft {
//
// Use non-default mappings at your own risk. They may not always work.
// Simply re-run your setup task after changing the mappings to update your workspace.
mappings channel: mapping_channel, version: mapping_version
mappings channel: "parchment", version: "2023.09.03-1.20.1"
// When true, this property will have all Eclipse/IntelliJ IDEA run configurations run the "prepareX" task for the given run configuration before launching the game.
// In most cases, it is not necessary to enable.

View File

@ -5,6 +5,7 @@ pluginManagement {
name = 'MinecraftForge'
url = 'https://maven.minecraftforge.net/'
}
maven { url = 'https://maven.parchmentmc.org' }
}
}

View File

@ -58,7 +58,12 @@ public class CompressedBlocks
output.accept(ModBlocks.GRANITE_3X.get());
output.accept(ModBlocks.GRANITE_4X.get());
output.accept(ModBlocks.CBLOCK_MINING.get());
output.accept(Tools.ULTRA_SWORD.get());
output.accept(Tools.ULTRA_PICKAXE.get());
output.accept(Tools.ULTRA_AXE.get());
output.accept(Tools.ULTRA_SHOVEL.get());
output.accept(Tools.ULTRA_HOE.get());
}).build());
public CompressedBlocks()

View File

@ -19,7 +19,11 @@ public class ModItemModelProvider extends ItemModelProvider {
@Override
protected void registerModels() {
handheldItem(Tools.ULTRA_SWORD);
handheldItem(Tools.ULTRA_PICKAXE);
handheldItem(Tools.ULTRA_AXE);
handheldItem(Tools.ULTRA_SHOVEL);
handheldItem(Tools.ULTRA_HOE);
}
private ItemModelBuilder saplingItem(RegistryObject<Block> item) {

View File

@ -14,7 +14,7 @@ import java.util.List;
public class ToolTiers {
public static final Tier ULTRA = TierSortingRegistry.registerTier(
new ForgeTier(5, 2560, 20f, 4f, 25,
new ForgeTier(4, 2560, 12.0f, 5.0f, 25,
Tags.Blocks.NEEDS_ULTRA_TOOL, () -> Ingredient.of(ModBlocks.CBLOCK_MINING_ITEM.get())),
new ResourceLocation(CompressedBlocks.MODID, "ultra"), List.of(Tiers.NETHERITE), List.of()
);

View File

@ -11,9 +11,11 @@ public class Tools {
public static final DeferredRegister<Item> TOOLS =
DeferredRegister.create(ForgeRegistries.ITEMS, CompressedBlocks.MODID);
public static final RegistryObject<Item> ULTRA_PICKAXE = TOOLS.register("ultra_pickaxe", () -> new PickaxeItem(ToolTiers.ULTRA, 1, -2.5f, new Item.Properties()));
public static final RegistryObject<Item> ULTRA_SWORD = TOOLS.register("ultra_sword", () -> new SwordItem(ToolTiers.ULTRA, 3, -2.4f, new Item.Properties().fireResistant()));
public static final RegistryObject<Item> ULTRA_PICKAXE = TOOLS.register("ultra_pickaxe", () -> new PickaxeItem(ToolTiers.ULTRA, 1, -2.8f, new Item.Properties().fireResistant()));
public static final RegistryObject<Item> ULTRA_AXE = TOOLS.register("ultra_axe", () -> new AxeItem(ToolTiers.ULTRA, 5.0f, -2.5f, new Item.Properties().fireResistant()));
public static final RegistryObject<Item> ULTRA_SHOVEL = TOOLS.register("ultra_shovel", () -> new ShovelItem(ToolTiers.ULTRA, 1.5f, -3.0f, new Item.Properties().fireResistant()));
public static final RegistryObject<Item> ULTRA_HOE = TOOLS.register("ultra_hoe", () -> new HoeItem(ToolTiers.ULTRA, -4, 0.0f, new Item.Properties().fireResistant()));
public static void register(IEventBus eventBus) {TOOLS.register(eventBus);}
}

View File

@ -16,5 +16,9 @@
"block.compressedblocks.granite_3x": "Granite³",
"block.compressedblocks.granite_4x": "Granite⁴",
"block.compressedblocks.cblock_mining": "Mining Block",
"item.compressedblocks.ultra_pickaxe": "Ultra Pickaxe"
"item.compressedblocks.ultra_sword": "Ultra Sword",
"item.compressedblocks.ultra_pickaxe": "Ultra Pickaxe",
"item.compressedblocks.ultra_axe": "Ultra Axe",
"item.compressedblocks.ultra_shovel": "Ultra Shovel",
"item.compressedblocks.ultra_hoe": "Ultra Hoe"
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

@ -0,0 +1,7 @@
{
"animation": {
"frametime": 3,
"interpolate": true,
"frames": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17]
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

@ -0,0 +1,7 @@
{
"animation": {
"frametime": 3,
"interpolate": true,
"frames": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17]
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 907 B

After

Width:  |  Height:  |  Size: 907 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@ -0,0 +1,7 @@
{
"animation": {
"frametime": 3,
"interpolate": true,
"frames": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17]
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

@ -0,0 +1,7 @@
{
"animation": {
"frametime": 3,
"interpolate": true,
"frames": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17]
}
}

View File

@ -1,3 +1,6 @@
#!/bin/bash
magick "$1" -transparent "#00ff00" "$1"
for file in "$1"/*.png; do
echo "$file"
magick "$file" -transparent "#00ff00" "$file"
done

Binary file not shown.