generated from TeamGensouSpark/LunarCapitalFramework
-
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
13 changed files
with
179 additions
and
22 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
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
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
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
37 changes: 37 additions & 0 deletions
37
src/main/java/io/github/teamgensouspark/grimoireofpatchouli/recepies/AnvilReceipe.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,37 @@ | ||
package io.github.teamgensouspark.grimoireofpatchouli.recepies; | ||
|
||
import arekkuusu.grimoireofalice.common.item.ModItems; | ||
import io.github.teamgensouspark.grimoireofpatchouli.PatchouliModInfo; | ||
import io.github.teamgensouspark.grimoireofpatchouli.utils.ModCompat; | ||
import net.minecraft.init.Enchantments; | ||
import net.minecraft.init.Items; | ||
import net.minecraft.item.ItemStack; | ||
import net.minecraftforge.event.AnvilUpdateEvent; | ||
import net.minecraftforge.fml.common.Mod.EventBusSubscriber; | ||
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; | ||
|
||
@EventBusSubscriber(modid = PatchouliModInfo.MODID) | ||
public class AnvilReceipe { | ||
@SubscribeEvent | ||
public static void onAnvilUpdate(AnvilUpdateEvent event) { | ||
if (ModCompat.GOA.isLoaded()) { | ||
if (event.getLeft().getItem() == ModItems.HAKUROUKEN && event.getRight().getItem() == ModItems.ROUKANKEN) { | ||
ItemStack output = new ItemStack( | ||
io.github.teamgensouspark.grimoireofpatchouli.libs.vanilia.ModItems.BLACK_SAKURA); | ||
output.addEnchantment(Enchantments.SMITE, 10); | ||
event.setOutput(output); | ||
event.setCost(30); | ||
|
||
} | ||
} else { | ||
if (event.getLeft().getItem() == Items.DIAMOND_SWORD && event.getRight().getItem() == Items.NETHER_STAR) { | ||
ItemStack output = new ItemStack( | ||
io.github.teamgensouspark.grimoireofpatchouli.libs.vanilia.ModItems.BLACK_SAKURA); | ||
output.addEnchantment(Enchantments.SMITE, 10); | ||
event.setOutput(output); | ||
event.setCost(30); | ||
|
||
} | ||
} | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...ofpatchouli/intf/IHasTouhouCharacter.java → ...fpatchouli/utils/IHasTouhouCharacter.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
27 changes: 27 additions & 0 deletions
27
src/main/java/io/github/teamgensouspark/grimoireofpatchouli/utils/ModCompat.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,27 @@ | ||
package io.github.teamgensouspark.grimoireofpatchouli.utils; | ||
|
||
import net.minecraftforge.fml.common.Loader; | ||
|
||
public class ModCompat { | ||
private String modid; | ||
public static final ModCompat GOA = new ModCompat("grimoireofalice"); | ||
|
||
public ModCompat(String modid) { | ||
this.modid = modid; | ||
} | ||
|
||
public String getModid() { | ||
return modid; | ||
} | ||
|
||
public boolean isLoaded() { | ||
return Loader.isModLoaded(modid); | ||
} | ||
|
||
public void loadedThen(Runnable F) { | ||
if (isLoaded()) { | ||
F.run(); | ||
} | ||
} | ||
|
||
} |
6 changes: 6 additions & 0 deletions
6
...in/resources/assets/grimoireofpatchouli/models/item/danmaku/spellcard/wonder_godwind.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": "danmakucore:item/danmaku/spellcard/spellcard_base", | ||
"textures": { | ||
"1": "grimoireofpatchouli:items/spellcard/dream_seal" | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
src/main/resources/assets/grimoireofpatchouli/recipes/moon_phaser.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,23 @@ | ||
{ | ||
"type": "minecraft:crafting_shapeless", | ||
"group": "grimoireofpatchouli:item", | ||
"result": { | ||
"item": "grimoireofpatchouli:moon_phaser", | ||
"count": 1 | ||
}, | ||
"ingredients": [ | ||
{ | ||
"item": "minecraft:dye", | ||
"data": 4 | ||
}, | ||
{ | ||
"item": "minecraft:redstone" | ||
}, | ||
{ | ||
"item": "minecraft:redstone" | ||
}, | ||
{ | ||
"item": "minecraft:clock" | ||
} | ||
] | ||
} |