Skip to content

Commit

Permalink
Made the mace more of a task to craft
Browse files Browse the repository at this point in the history
- Updated the icon
- Added mace head
- Changed mace crafting recipe
- Need to work on details more
  • Loading branch information
kckarnige committed Sep 26, 2024
1 parent a6d3a9c commit 7ab0151
Show file tree
Hide file tree
Showing 15 changed files with 252 additions and 10 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

#

This mod gives the mace a complete overhaul, making it like the trident — having a 2D icon with a 3D first-person model.
(Credit to [Volery](https://modrinth.com/mod/mace-but-3d/) | [MIT](https://github.com/Volery39/MaceBut3D/blob/3c22f7265b5b1b1ccb5d5774cf890700b03103e0/LICENSE))
This mod gives the mace a complete overhaul, making it as special as the trident, if not even more so!
This mod also expands the capabilities of the mace by adding a new crafting recipe, new items, and a new ability, wind bounce!

This mod also expands the capabilities of the mace by adding a new crafting recipe, new items, and new other stuff!
You can wind bounce by using the mace on the ground below you, though it does cost a good amount of durabilty, use it wisely!


#
Expand Down
32 changes: 32 additions & 0 deletions src/main/java/com/kckarnige/wham/items/ModItems.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
package com.kckarnige.wham.items;

import com.kckarnige.wham.wham;

import net.fabricmc.fabric.api.itemgroup.v1.FabricItemGroupEntries;
import net.fabricmc.fabric.api.itemgroup.v1.ItemGroupEvents;
import net.minecraft.item.Item;
import net.minecraft.item.ItemGroups;
import net.minecraft.registry.Registries;
import net.minecraft.registry.Registry;
import net.minecraft.util.Identifier;
import net.minecraft.util.Rarity;

public class ModItems {

public static final Item MACE_HEAD = registerItem("mace_head", new Item(new Item.Settings().rarity(Rarity.EPIC)));

private static void addItemToItemGroup(FabricItemGroupEntries entries) {
entries.add(MACE_HEAD);
}

private static Item registerItem (String name, Item item) {
return Registry.register(Registries.ITEM, Identifier.of(wham.MOD_ID, name), item);
}

public static void registerModItems () {
wham.LOGGER.info("[Wham!] Things feel different..");

ItemGroupEvents.modifyEntriesEvent(ItemGroups.INGREDIENTS).register(ModItems::addItemToItemGroup);
ItemGroupEvents.modifyEntriesEvent(ItemGroups.TOOLS).register(ModItems::addItemToItemGroup);
}
}
2 changes: 2 additions & 0 deletions src/main/java/com/kckarnige/wham/wham.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.kckarnige.wham;

import com.kckarnige.wham.items.ModItems;
import net.fabricmc.api.ModInitializer;

import org.slf4j.Logger;
Expand All @@ -12,6 +13,7 @@ public class wham implements ModInitializer {

@Override
public void onInitialize() {
ModItems.registerModItems();
LOGGER.info("[Wham!] Now this should pack more of a punch!");
}
}
Binary file modified src/main/resources/assets/wham/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/main/resources/assets/wham/lang/en_gb.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"item.wham.mace_head": "Mace Head"
}
3 changes: 3 additions & 0 deletions src/main/resources/assets/wham/lang/en_us.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"item.wham.mace_head": "Mace Head"
}
178 changes: 178 additions & 0 deletions src/main/resources/assets/wham/models/item/mace_head.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,178 @@
{
"credit": "Made with Blockbench",
"texture_size": [8, 8],
"textures": {
"9": "wham:item/mace_texture",
"particle": "item/mace"
},
"elements": [
{
"from": [7.625, 0, 7.625],
"to": [8.375, 3, 8.375],
"rotation": {"angle": 0, "axis": "z", "origin": [8, 2.2875, 8]},
"faces": {
"north": {"uv": [14.5, 1.5, 16, 7.5], "texture": "#9"},
"east": {"uv": [14.5, 1.5, 16, 7.5], "texture": "#9"},
"south": {"uv": [14.5, 1.5, 16, 7.5], "texture": "#9"},
"west": {"uv": [14.5, 1.5, 16, 7.5], "texture": "#9"},
"up": {"uv": [16, 1.5, 14.5, 0], "texture": "#9"},
"down": {"uv": [16, 7.5, 14.5, 9], "texture": "#9"}
}
},
{
"name": "plane",
"from": [8, 3, 7.625],
"to": [8, 3.5, 8.375],
"rotation": {"angle": 0, "axis": "z", "origin": [8, 2.2875, 8]},
"faces": {
"east": {"uv": [14.5, 13.075, 16, 14], "texture": "#9"},
"west": {"uv": [16, 13.075, 14.5, 14], "texture": "#9"}
}
},
{
"name": "plane",
"from": [7.625, 3, 8],
"to": [8.375, 3.5, 8],
"rotation": {"angle": 0, "axis": "z", "origin": [8, 2.2875, 8]},
"faces": {
"north": {"uv": [14.5, 13.075, 16, 14], "texture": "#9"},
"south": {"uv": [16, 13.075, 14.5, 14], "texture": "#9"}
}
},
{
"name": "plane",
"from": [8, -0.8, 8.25],
"to": [8, 3.45, 10.5],
"rotation": {"angle": 22.5, "axis": "y", "origin": [8, 2.2875, 8]},
"faces": {
"east": {"uv": [6.5, 0, 11, 8], "texture": "#9"},
"west": {"uv": [11, 0, 6.5, 8], "texture": "#9"}
}
},
{
"name": "plane",
"from": [5.5, -0.8, 8],
"to": [7.75, 3.45, 8],
"rotation": {"angle": 22.5, "axis": "y", "origin": [8, 2.2875, 8]},
"faces": {
"north": {"uv": [11, 0, 6.5, 8], "texture": "#9"},
"south": {"uv": [6.5, 0, 11, 8], "texture": "#9"}
}
},
{
"name": "plane",
"from": [8.25, -0.8, 8],
"to": [10.5, 3.45, 8],
"rotation": {"angle": 22.5, "axis": "y", "origin": [8, 2.2875, 8]},
"faces": {
"north": {"uv": [6.5, 0, 11, 8], "texture": "#9"},
"south": {"uv": [11, 0, 6.5, 8], "texture": "#9"}
}
},
{
"name": "plane",
"from": [8, -0.8, 5.5],
"to": [8, 3.45, 7.75],
"rotation": {"angle": 22.5, "axis": "y", "origin": [8, 2.2875, 8]},
"faces": {
"east": {"uv": [11, 0, 6.5, 8], "texture": "#9"},
"west": {"uv": [6.5, 0, 11, 8], "texture": "#9"}
}
},
{
"name": "plane",
"from": [8, -0.8, 5.5],
"to": [8, 3.45, 7.75],
"rotation": {"angle": -22.5, "axis": "y", "origin": [8, 2.2875, 8]},
"faces": {
"east": {"uv": [11, 0, 6.5, 8], "texture": "#9"},
"west": {"uv": [6.5, 0, 11, 8], "texture": "#9"}
}
},
{
"name": "plane",
"from": [8, -0.8, 8.25],
"to": [8, 3.45, 10.5],
"rotation": {"angle": -22.5, "axis": "y", "origin": [8, 2.2875, 8]},
"faces": {
"east": {"uv": [6.5, 0, 11, 8], "texture": "#9"},
"west": {"uv": [11, 0, 6.5, 8], "texture": "#9"}
}
},
{
"name": "plane",
"from": [8.25, -0.8, 8],
"to": [10.5, 3.45, 8],
"rotation": {"angle": -22.5, "axis": "y", "origin": [8, 2.2875, 8]},
"faces": {
"north": {"uv": [6.5, 0, 11, 8], "texture": "#9"},
"south": {"uv": [11, 0, 6.5, 8], "texture": "#9"}
}
},
{
"name": "plane",
"from": [5.5, -0.8, 8],
"to": [7.75, 3.45, 8],
"rotation": {"angle": -22.5, "axis": "y", "origin": [8, 2.2875, 8]},
"faces": {
"north": {"uv": [11, 0, 6.5, 8], "texture": "#9"},
"south": {"uv": [6.5, 0, 11, 8], "texture": "#9"}
}
}
],
"display": {
"thirdperson_righthand": {
"rotation": [176, 20, -2],
"translation": [0, -12, 2.5],
"scale": [2.18, 2.18, 2.18]
},
"thirdperson_lefthand": {
"rotation": [176, 20, -2],
"translation": [0, -12, 2.5],
"scale": [2.18, 2.18, 2.18]
},
"firstperson_righthand": {
"rotation": [4, 8, 1],
"translation": [-1.5, 14, 4],
"scale": [1.69, 1.63, 1.69]
},
"firstperson_lefthand": {
"rotation": [4, 8, 1],
"translation": [-1.5, 14, 4],
"scale": [1.69, 1.63, 1.69]
},
"ground": {
"translation": [0, 12, 0],
"scale": [2, 2, 2]
},
"gui": {
"rotation": [34, -46, 0],
"translation": [0, 14.25, 0],
"scale": [2.58, 2.58, 2.58]
},
"head": {
"translation": [0, 22, 0],
"scale": [4, 2.5, 4]
},
"fixed": {
"translation": [0, 12.5, 0],
"scale": [2, 2, 2]
}
},
"groups": [
{
"name": "Original Model by GugerOS",
"origin": [7.25, 1.5, 7.25],
"color": 0,
"children": [
0,
{
"name": "Edit by KayoticCarnige",
"origin": [7.5, 6.375, 7.5],
"color": 0,
"children": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
}
]
}
]
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions src/main/resources/data/minecraft/recipe/mace.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
"category": "equipment",
"pattern": [
"=#=",
"-I-",
" I "
" I ",
" - "
],
"key": {
"#": {
"item": "minecraft:heavy_core"
"item": "wham:mace_head"
},
"=": {
"item": "minecraft:iron_ingot"
"item": "minecraft:wind_charge"
},
"-": {
"item": "minecraft:iron_nugget"
Expand Down
24 changes: 24 additions & 0 deletions src/main/resources/data/wham/recipe/mace_head.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"type": "minecraft:crafting_shaped",
"category": "equipment",
"pattern": [
" - ",
"=#=",
"- -"
],
"key": {
"#": {
"item": "minecraft:heavy_core"
},
"=": {
"item": "minecraft:iron_ingot"
},
"-": {
"item": "minecraft:iron_nugget"
}
},
"result": {
"id": "wham:mace_head",
"count": 1
}
}
6 changes: 3 additions & 3 deletions src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
"schemaVersion": 1,
"id": "wham",
"version": "${version}",
"name": "Slow Your Bronze",
"description": "A compatibility mod to make the 'Bronze' mod compatible with 'Slow Your Roll'.",
"name": "Wham!",
"description": "A complete mace overhaul!",
"authors": [
"KayoticCarnige"
],
"contact": {
"homepage": "https://fabricmc.net/",
"sources": "https://github.com/kckarnige/wham"
"sources": "https://github.com/kckarnige/WhamMace"
},
"license": "MIT",
"icon": "assets/wham/icon.png",
Expand Down
Binary file added wham.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added wham.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified wham.psd
Binary file not shown.
Binary file added wham_small.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7ab0151

Please sign in to comment.