generated from NeoForgeMDKs/MDK-1.21-ModDevGradle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
35 changed files
with
549 additions
and
269 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
root = true | ||
|
||
[*.java] | ||
insert_final_newline = false | ||
trim_trailing_whitespace = true | ||
indent_style = tab | ||
charset = utf-8 | ||
max_line_length = off |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
name: Build | ||
|
||
on: [push, pull_request] | ||
on: [ push, pull_request ] | ||
|
||
jobs: | ||
build: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
src/generated/resources/.cache/1bda0eb39dbc3800081e5f8528c492e5d2ac1dc9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
// 1.21 2024-07-15T18:04:26.8729482 Languages: en_us for mod: assorted_armaments | ||
72c40f83ddc6d5b45a2604e128477116e191ef35 assets/assorted_armaments/lang/en_us.json |
3 changes: 3 additions & 0 deletions
3
src/generated/resources/.cache/2db82bc4898868f7eec79958ed07d46c99c9af46
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
// 1.21 2024-07-15T17:50:38.496693 Item Models: assorted_armaments | ||
d32d27cad84bb99311ff41f5e5a23d04e00f7b0c assets/assorted_armaments/models/item/wooden_claymore.json | ||
7769febb5b9173a3405449255fcfb26b53ad50f9 assets/assorted_armaments/models/item/wooden_claymore_inventory.json |
1 change: 1 addition & 0 deletions
1
src/generated/resources/.cache/71dcf7bf8210fd7e66cc67af3b3209319af55224
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
// 1.21 2024-07-15T17:27:31.0404021 Tags for minecraft:block mod id assorted_armaments |
3 changes: 3 additions & 0 deletions
3
src/generated/resources/.cache/b9473a7920e150f1fd90d60adffdd8557dd85fef
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
// 1.21 2024-07-15T17:27:31.0374041 Tags for minecraft:item mod id assorted_armaments | ||
4232a79b0abae6cba29e1551051988d2cc83bcb8 data/assorted_armaments/tags/item/claymores.json | ||
d500bd43e88c70df0ec4054b266d05b7df7e221e data/minecraft/tags/item/swords.json |
2 changes: 2 additions & 0 deletions
2
src/generated/resources/.cache/e31f75891746f095f78065a964298b59b7cd2c16
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
// 1.21 2024-07-15T18:04:26.8709471 Languages: zh_cn for mod: assorted_armaments | ||
7051fcbe197c4c53cb96a9c74c46adc41994475a assets/assorted_armaments/lang/zh_cn.json |
3 changes: 3 additions & 0 deletions
3
src/generated/resources/assets/assorted_armaments/lang/en_us.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"item.assorted_armaments.wooden_claymore": "Wooden Claymore" | ||
} |
3 changes: 3 additions & 0 deletions
3
src/generated/resources/assets/assorted_armaments/lang/zh_cn.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"item.assorted_armaments.wooden_claymore": "木大剑" | ||
} |
6 changes: 6 additions & 0 deletions
6
src/generated/resources/assets/assorted_armaments/models/item/wooden_claymore.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"parent": "assorted_armaments:item/large_handheld", | ||
"textures": { | ||
"layer0": "assorted_armaments:item/wooden_claymore" | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
src/generated/resources/assets/assorted_armaments/models/item/wooden_claymore_inventory.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"parent": "minecraft:item/generated", | ||
"textures": { | ||
"layer0": "assorted_armaments:item/wooden_claymore_inventory" | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
src/generated/resources/data/assorted_armaments/tags/item/claymores.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"values": [ | ||
"assorted_armaments:wooden_claymore" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"values": [ | ||
"#assorted_armaments:claymores" | ||
] | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
26 changes: 26 additions & 0 deletions
26
src/main/java/team/leomc/assortedarmaments/AssortedArmaments.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package team.leomc.assortedarmaments; | ||
|
||
import net.minecraft.resources.ResourceLocation; | ||
import net.neoforged.bus.api.IEventBus; | ||
import net.neoforged.fml.ModContainer; | ||
import net.neoforged.fml.common.Mod; | ||
import net.neoforged.fml.config.ModConfig; | ||
import team.leomc.assortedarmaments.registry.AAItems; | ||
|
||
@Mod(AssortedArmaments.ID) | ||
public class AssortedArmaments { | ||
public static final String ID = "assorted_armaments"; | ||
|
||
public AssortedArmaments(IEventBus modBus, ModContainer container) { | ||
AAItems.ITEMS.register(modBus); | ||
container.registerConfig(ModConfig.Type.COMMON, Config.SPEC); | ||
} | ||
|
||
public static ResourceLocation id(String string) { | ||
return ResourceLocation.fromNamespaceAndPath(ID, string); | ||
} | ||
|
||
public static String strId(String string) { | ||
return ID + ":" + string; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package team.leomc.assortedarmaments; | ||
|
||
import net.neoforged.bus.api.SubscribeEvent; | ||
import net.neoforged.fml.common.EventBusSubscriber; | ||
import net.neoforged.fml.event.config.ModConfigEvent; | ||
import net.neoforged.neoforge.common.ModConfigSpec; | ||
|
||
@EventBusSubscriber(modid = AssortedArmaments.ID, bus = EventBusSubscriber.Bus.MOD) | ||
public class Config { | ||
private static final ModConfigSpec.Builder BUILDER = new ModConfigSpec.Builder(); | ||
|
||
private static final ModConfigSpec.DoubleValue CLAYMORE_BLOCK_WALK_SPEED_MODIFIER = BUILDER | ||
.comment("Player's walk speed when blocking using a claymore = claymoreBlockWalkSpeedModifier * originalSpeed") | ||
.defineInRange("claymoreBlockWalkSpeedModifier", 0.75, 0, Integer.MAX_VALUE); | ||
|
||
public static final ModConfigSpec SPEC = BUILDER.build(); | ||
|
||
public static double claymoreBlockWalkSpeedModifier; | ||
|
||
@SubscribeEvent | ||
private static void onLoad(final ModConfigEvent event) { | ||
claymoreBlockWalkSpeedModifier = CLAYMORE_BLOCK_WALK_SPEED_MODIFIER.get(); | ||
} | ||
} |
Oops, something went wrong.