generated from NeoForgeMDKs/MDK-1.21-NeoGradle
-
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.
Merge remote-tracking branch 'origin/main'
- Loading branch information
Showing
26 changed files
with
656 additions
and
94 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
src/generated/resources/.cache/5db5b310cf1abc4c7f33d2d565e2a2290a7f6c4d
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,10 +1,10 @@ | ||
// 1.21.1 2024-09-07T19:25:16.955058691 Item Models: modjam | ||
// 1.21.1 2024-09-08T11:01:34.5874471 Item Models: modjam | ||
207e815e9b4c9ebca4f444f877e2488a5ce9b1c5 assets/modjam/models/item/aquarine_steel.json | ||
51765874ad3111adf69684269ad9a422bfbaac4a assets/modjam/models/item/aquarine_steel_block.json | ||
dd0c37deb1f33fb0844da4a540706681887fc3d4 assets/modjam/models/item/aquatic_catalyst.json | ||
246cda7a0fca8b278dd6ed5392d0ce745d9fa097 assets/modjam/models/item/chiseled_dark_prismarine.json | ||
5dd5fd7a7c348bbaf51df14605c5241bf75e18ae assets/modjam/models/item/dark_prismarine_pillar.json | ||
4d48047a9639345841262719f87f57c3494e4a55 assets/modjam/models/item/deep_sea_drain.json | ||
5b6b9e8621c065cb4167e4b6dfdfaecb0fd7186d assets/modjam/models/item/eas_vial.json | ||
f0f9891cd57b3a66f7440a71b925348bb8ea745b assets/modjam/models/item/glass_vial.json | ||
dab337d602d93b0a4930b69e652b1155300c6502 assets/modjam/models/item/prism_monocle.json | ||
c01b567bc1c1fdc5563e08b663fa59595f3efed8 assets/modjam/models/item/prismarine_crucible.json |
3 changes: 1 addition & 2 deletions
3
src/generated/resources/.cache/7383b985a2cdbb3a068dc5fd3ae4ba545545c370
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
3 changes: 2 additions & 1 deletion
3
src/generated/resources/.cache/9fb1092f32d4fcbf9e061ffd718d4ec689c6c95e
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 +1,2 @@ | ||
// 1.21.1 2024-09-06T15:44:54.651739 Recipes | ||
// 1.21.1 2024-09-08T11:01:34.5914309 Recipes | ||
7ee5f7bbf9d978b4b659502cf6c42314dbe3678b data/modjam/recipe/aquarine_steel.json |
3 changes: 3 additions & 0 deletions
3
src/generated/resources/assets/modjam/models/item/deep_sea_drain.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 @@ | ||
{ | ||
"parent": "modjam:block/deep_sea_drain" | ||
} |
12 changes: 12 additions & 0 deletions
12
src/generated/resources/data/modjam/recipe/aquarine_steel.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,12 @@ | ||
{ | ||
"type": "modjam:item_transformation", | ||
"ingredients": [ | ||
{ | ||
"item": "minecraft:iron_ingot" | ||
} | ||
], | ||
"result": { | ||
"count": 1, | ||
"id": "modjam:aquarine_steel" | ||
} | ||
} |
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
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
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: 1 addition & 1 deletion
2
src/main/java/com/portingdeadmods/modjam/content/augments/Augments.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
24 changes: 24 additions & 0 deletions
24
src/main/java/com/portingdeadmods/modjam/content/augments/DisallowBreakingAugment.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,24 @@ | ||
package com.portingdeadmods.modjam.content.augments; | ||
|
||
import com.mojang.blaze3d.platform.InputConstants; | ||
import com.portingdeadmods.modjam.utils.InputUtils; | ||
import net.minecraft.client.Minecraft; | ||
import net.minecraft.world.entity.player.Player; | ||
import net.minecraft.world.item.Items; | ||
import net.neoforged.neoforge.event.level.BlockEvent; | ||
import net.neoforged.neoforge.event.tick.PlayerTickEvent; | ||
|
||
public class DisallowBreakingAugment implements StaticAugment{ | ||
@Override | ||
public void breakBlock(BlockEvent.BreakEvent event) { | ||
// Player player = event.getPlayer(); | ||
event.setCanceled(true); | ||
} | ||
|
||
@Override | ||
public void tick(PlayerTickEvent.Post event) { | ||
if (InputUtils.isKeyDown(InputConstants.KEY_Y)){ | ||
event.getEntity().addItem(Items.EMERALD.getDefaultInstance()); | ||
} | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
src/main/java/com/portingdeadmods/modjam/content/augments/GiveDiamondAugment.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,24 @@ | ||
package com.portingdeadmods.modjam.content.augments; | ||
|
||
import com.mojang.blaze3d.platform.InputConstants; | ||
import com.portingdeadmods.modjam.utils.InputUtils; | ||
import net.minecraft.client.Minecraft; | ||
import net.minecraft.world.item.Items; | ||
import net.neoforged.neoforge.event.level.BlockEvent; | ||
import net.neoforged.neoforge.event.tick.PlayerTickEvent; | ||
import org.lwjgl.system.linux.Stat; | ||
|
||
public class GiveDiamondAugment implements StaticAugment { | ||
@Override | ||
public void breakBlock(BlockEvent.BreakEvent event) { | ||
|
||
} | ||
|
||
@Override | ||
public void tick(PlayerTickEvent.Post event) { | ||
if (InputUtils.isKeyDown(InputConstants.KEY_Y)) { | ||
event.getEntity().addItem(Items.DIAMOND.getDefaultInstance()); | ||
} | ||
|
||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
src/main/java/com/portingdeadmods/modjam/content/augments/StaticAugment.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,10 @@ | ||
package com.portingdeadmods.modjam.content.augments; | ||
|
||
import net.neoforged.neoforge.event.level.BlockEvent; | ||
import net.neoforged.neoforge.event.tick.PlayerTickEvent; | ||
|
||
public interface StaticAugment { | ||
void breakBlock(BlockEvent.BreakEvent event); | ||
|
||
void tick(PlayerTickEvent.Post event); | ||
} |
29 changes: 29 additions & 0 deletions
29
src/main/java/com/portingdeadmods/modjam/content/augments/ThrowSnowballAugment.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,29 @@ | ||
package com.portingdeadmods.modjam.content.augments; | ||
|
||
import com.mojang.blaze3d.platform.InputConstants; | ||
import com.portingdeadmods.modjam.ModJam; | ||
import com.portingdeadmods.modjam.utils.InputUtils; | ||
import net.minecraft.world.entity.projectile.Snowball; | ||
import net.minecraft.world.item.Items; | ||
import net.neoforged.neoforge.event.level.BlockEvent; | ||
import net.neoforged.neoforge.event.tick.PlayerTickEvent; | ||
|
||
public class ThrowSnowballAugment implements StaticAugment { | ||
@Override | ||
public void breakBlock(BlockEvent.BreakEvent event) { | ||
|
||
} | ||
|
||
@Override | ||
public void tick(PlayerTickEvent.Post event) { | ||
if (InputUtils.isKeyDown(InputConstants.KEY_Y)) { | ||
ModJam.LOGGER.info("Snow"); | ||
if (!event.getEntity().level().isClientSide) { | ||
Snowball snowball = new Snowball(event.getEntity().level(), event.getEntity()); | ||
snowball.setItem(Items.SNOWBALL.getDefaultInstance()); | ||
snowball.shootFromRotation(event.getEntity(), event.getEntity().getXRot(), event.getEntity().getYRot(), 0.0F, 1.5F, 1.0F); | ||
event.getEntity().level().addFreshEntity(snowball); | ||
} | ||
} | ||
} | ||
} |
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
Oops, something went wrong.