-
Notifications
You must be signed in to change notification settings - Fork 68
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
1 parent
3a5b4da
commit 5eda224
Showing
39 changed files
with
361 additions
and
45 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
src/generated/resources/data/minecraft/tags/damage_type/always_hurts_ender_dragons.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": [ | ||
"touhou_little_maid:danmaku_ender_killer" | ||
] | ||
} |
5 changes: 5 additions & 0 deletions
5
src/generated/resources/data/minecraft/tags/damage_type/is_projectile.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": [ | ||
"touhou_little_maid:danmaku" | ||
] | ||
} |
5 changes: 5 additions & 0 deletions
5
src/generated/resources/data/minecraft/tags/entity_type/fall_damage_immune.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": [ | ||
"touhou_little_maid:fairy" | ||
] | ||
} |
5 changes: 5 additions & 0 deletions
5
src/generated/resources/data/minecraft/tags/entity_type/freeze_immune_entity_types.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": [ | ||
"touhou_little_maid:fairy" | ||
] | ||
} |
5 changes: 5 additions & 0 deletions
5
src/generated/resources/data/minecraft/tags/entity_type/impact_projectiles.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": [ | ||
"touhou_little_maid:danmaku" | ||
] | ||
} |
5 changes: 5 additions & 0 deletions
5
src/generated/resources/data/minecraft/tags/entity_type/powder_snow_walkable_mobs.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": [ | ||
"touhou_little_maid:fairy" | ||
] | ||
} |
32 changes: 32 additions & 0 deletions
32
src/generated/resources/data/touhou_little_maid/advancement/recipes/misc/entity_id_copy.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,32 @@ | ||
{ | ||
"parent": "minecraft:recipes/root", | ||
"criteria": { | ||
"has_book": { | ||
"conditions": { | ||
"items": [ | ||
{ | ||
"items": "minecraft:book" | ||
} | ||
] | ||
}, | ||
"trigger": "minecraft:inventory_changed" | ||
}, | ||
"has_the_recipe": { | ||
"conditions": { | ||
"recipe": "touhou_little_maid:entity_id_copy" | ||
}, | ||
"trigger": "minecraft:recipe_unlocked" | ||
} | ||
}, | ||
"requirements": [ | ||
[ | ||
"has_the_recipe", | ||
"has_book" | ||
] | ||
], | ||
"rewards": { | ||
"recipes": [ | ||
"touhou_little_maid:entity_id_copy" | ||
] | ||
} | ||
} |
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
32 changes: 32 additions & 0 deletions
32
src/generated/resources/data/touhou_little_maid/recipe/altar_recipe/wchess.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,32 @@ | ||
{ | ||
"type": "touhou_little_maid:altar_recipe_serializers", | ||
"category": "misc", | ||
"entity": "minecraft:item", | ||
"group": "altar_recipe", | ||
"ingredients": [ | ||
{ | ||
"tag": "minecraft:planks" | ||
}, | ||
{ | ||
"tag": "minecraft:planks" | ||
}, | ||
{ | ||
"tag": "minecraft:planks" | ||
}, | ||
{ | ||
"tag": "c:dyes/black" | ||
}, | ||
{ | ||
"tag": "c:dyes/white" | ||
}, | ||
{ | ||
"tag": "c:gems/emerald" | ||
} | ||
], | ||
"lang": "jei.touhou_little_maid.altar_craft.item_craft.result", | ||
"power": 0.1, | ||
"result": { | ||
"count": 1, | ||
"id": "touhou_little_maid:wchess" | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
src/generated/resources/data/touhou_little_maid/recipe/entity_id_copy.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,16 @@ | ||
{ | ||
"type": "minecraft:crafting_shapeless", | ||
"category": "misc", | ||
"ingredients": [ | ||
{ | ||
"tag": "c:leathers" | ||
}, | ||
{ | ||
"item": "minecraft:paper" | ||
} | ||
], | ||
"result": { | ||
"count": 1, | ||
"id": "touhou_little_maid:entity_id_copy" | ||
} | ||
} |
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
1 change: 1 addition & 0 deletions
1
src/main/java/com/github/tartaricacid/touhoulittlemaid/datagen/EnchantmentKeys.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
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/github/tartaricacid/touhoulittlemaid/datagen/tag/DamageTypeGenerator.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.github.tartaricacid.touhoulittlemaid.datagen.tag; | ||
|
||
import com.github.tartaricacid.touhoulittlemaid.TouhouLittleMaid; | ||
import com.github.tartaricacid.touhoulittlemaid.init.InitDamage; | ||
import net.minecraft.core.HolderLookup; | ||
import net.minecraft.data.PackOutput; | ||
import net.minecraft.data.tags.DamageTypeTagsProvider; | ||
import net.minecraft.tags.DamageTypeTags; | ||
import net.neoforged.neoforge.common.data.ExistingFileHelper; | ||
import org.jetbrains.annotations.Nullable; | ||
|
||
import java.util.concurrent.CompletableFuture; | ||
|
||
public class DamageTypeGenerator extends DamageTypeTagsProvider { | ||
public DamageTypeGenerator(PackOutput pOutput, CompletableFuture<HolderLookup.Provider> pLookupProvider, @Nullable ExistingFileHelper existingFileHelper) { | ||
super(pOutput, pLookupProvider, TouhouLittleMaid.MOD_ID, existingFileHelper); | ||
} | ||
|
||
@Override | ||
protected void addTags(HolderLookup.Provider pProvider) { | ||
this.tag(DamageTypeTags.IS_PROJECTILE).add(InitDamage.DANMAKU); | ||
this.tag(DamageTypeTags.ALWAYS_HURTS_ENDER_DRAGONS).add(InitDamage.DANMAKU_ENDER_KILLER); | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
src/main/java/com/github/tartaricacid/touhoulittlemaid/datagen/tag/EntityTypeGenerator.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.github.tartaricacid.touhoulittlemaid.datagen.tag; | ||
|
||
import com.github.tartaricacid.touhoulittlemaid.init.InitEntities; | ||
import net.minecraft.core.HolderLookup; | ||
import net.minecraft.data.PackOutput; | ||
import net.minecraft.tags.EntityTypeTags; | ||
import net.neoforged.neoforge.common.data.ExistingFileHelper; | ||
import net.neoforged.neoforge.common.data.internal.NeoForgeEntityTypeTagsProvider; | ||
|
||
import java.util.concurrent.CompletableFuture; | ||
|
||
public class EntityTypeGenerator extends NeoForgeEntityTypeTagsProvider { | ||
public EntityTypeGenerator(PackOutput output, CompletableFuture<HolderLookup.Provider> lookupProvider, ExistingFileHelper existingFileHelper) { | ||
super(output, lookupProvider, existingFileHelper); | ||
} | ||
|
||
@Override | ||
public void addTags(HolderLookup.Provider lookupProvider) { | ||
tag(EntityTypeTags.IMPACT_PROJECTILES).add(InitEntities.DANMAKU.get()); | ||
tag(EntityTypeTags.POWDER_SNOW_WALKABLE_MOBS).add(InitEntities.FAIRY.get()); | ||
tag(EntityTypeTags.FREEZE_IMMUNE_ENTITY_TYPES).add(InitEntities.FAIRY.get()); | ||
tag(EntityTypeTags.FALL_DAMAGE_IMMUNE).add(InitEntities.FAIRY.get()); | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...id/touhoulittlemaid/datagen/TagBlock.java → ...ouhoulittlemaid/datagen/tag/TagBlock.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
2 changes: 1 addition & 1 deletion
2
...houlittlemaid/datagen/TagEnchantment.java → ...ittlemaid/datagen/tag/TagEnchantment.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
2 changes: 1 addition & 1 deletion
2
...cid/touhoulittlemaid/datagen/TagItem.java → ...touhoulittlemaid/datagen/tag/TagItem.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
Oops, something went wrong.