-
Notifications
You must be signed in to change notification settings - Fork 1
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
ab6b2e7
commit 076ff07
Showing
14 changed files
with
101 additions
and
7 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
src/main/generated/.cache/378f9509398ea584ca54616156177f9ec588f984
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/generated/.cache/80beaa027efbcf9e17d04d48300d7784fb0cb57f
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/generated/.cache/dfb0a8ea05a472c697eb35080aef6b0f1497af5b
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/main/generated/.cache/e4e32e775410155fd5b39910e36714f200d58a95
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.20 2024-02-15T10:28:20.6395263 Tutorial Mod/Tags for minecraft:point_of_interest_type | ||
78962891c373229b4fe870a6579bd271c66c239e data\minecraft\tags\point_of_interest_type\acquirable_job_site.json |
2 changes: 1 addition & 1 deletion
2
src/main/generated/.cache/f3f56cafc2cbe41709406bb540eb1fca38a90f18
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,2 +1,2 @@ | ||
// 1.20 2024-02-09T14:06:21.8447463 Tutorial Mod/Tags for minecraft:item | ||
// 1.20 2024-02-15T10:28:20.6370176 Tutorial Mod/Tags for minecraft:item | ||
ce010d2466a35ec6f527d2d2cfd45bb119c1b373 data\minecraft\tags\items\trimmable_armor.json |
9 changes: 9 additions & 0 deletions
9
src/main/generated/data/minecraft/tags/point_of_interest_type/acquirable_job_site.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,9 @@ | ||
{ | ||
"replace": false, | ||
"values": [ | ||
{ | ||
"id": "tutorialmod:ice_ether_poi", | ||
"required": false | ||
} | ||
] | ||
} |
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/besson/tutorialmod/datagen/ModPoiTagsProvider.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.besson.tutorialmod.datagen; | ||
|
||
import com.besson.tutorialmod.TutorialMod; | ||
import net.minecraft.data.DataOutput; | ||
import net.minecraft.data.server.tag.TagProvider; | ||
import net.minecraft.registry.RegistryKeys; | ||
import net.minecraft.registry.RegistryWrapper; | ||
import net.minecraft.registry.tag.PointOfInterestTypeTags; | ||
import net.minecraft.util.Identifier; | ||
import net.minecraft.world.poi.PointOfInterestType; | ||
|
||
import java.util.concurrent.CompletableFuture; | ||
|
||
public class ModPoiTagsProvider extends TagProvider<PointOfInterestType> { | ||
public ModPoiTagsProvider(DataOutput output, CompletableFuture<RegistryWrapper.WrapperLookup> registryLookupFuture) { | ||
super(output, RegistryKeys.POINT_OF_INTEREST_TYPE, registryLookupFuture); | ||
} | ||
|
||
@Override | ||
protected void configure(RegistryWrapper.WrapperLookup lookup) { | ||
getOrCreateTagBuilder(PointOfInterestTypeTags.ACQUIRABLE_JOB_SITE) | ||
.addOptional(new Identifier(TutorialMod.MOD_ID,"ice_ether_poi")); | ||
} | ||
} |
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
35 changes: 35 additions & 0 deletions
35
src/main/java/com/besson/tutorialmod/villager/ModVillagers.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,35 @@ | ||
package com.besson.tutorialmod.villager; | ||
|
||
import com.besson.tutorialmod.TutorialMod; | ||
import com.besson.tutorialmod.block.ModBlocks; | ||
import com.google.common.collect.ImmutableSet; | ||
import net.fabricmc.fabric.api.object.builder.v1.world.poi.PointOfInterestHelper; | ||
import net.minecraft.block.Block; | ||
import net.minecraft.registry.Registries; | ||
import net.minecraft.registry.Registry; | ||
import net.minecraft.registry.RegistryKey; | ||
import net.minecraft.registry.RegistryKeys; | ||
import net.minecraft.sound.SoundEvents; | ||
import net.minecraft.util.Identifier; | ||
import net.minecraft.village.VillagerProfession; | ||
import net.minecraft.world.poi.PointOfInterestType; | ||
|
||
public class ModVillagers { | ||
public static final RegistryKey<PointOfInterestType> ICE_ETHER_POI_KEY = point("ice_ether_poi"); | ||
public static final PointOfInterestType ICE_ETHER_POI = registerPointOfInterestType("ice_ether_poi", ModBlocks.ICE_ETHER_BLOCK); | ||
public static final VillagerProfession ICE_ETHER_MASTER = registerVillagerProfession("ice_ether_master",ICE_ETHER_POI_KEY); | ||
private static VillagerProfession registerVillagerProfession(String name,RegistryKey<PointOfInterestType> type){ | ||
return Registry.register(Registries.VILLAGER_PROFESSION,new Identifier(TutorialMod.MOD_ID,name), | ||
new VillagerProfession(name,entry -> entry.matchesKey(type),entry -> entry.matchesKey(type), | ||
ImmutableSet.of(),ImmutableSet.of(), SoundEvents.ENTITY_VILLAGER_WORK_LIBRARIAN)); | ||
} | ||
private static PointOfInterestType registerPointOfInterestType(String name, Block block){ | ||
return PointOfInterestHelper.register(new Identifier(TutorialMod.MOD_ID,name),1,1,block); | ||
} | ||
private static RegistryKey<PointOfInterestType> point(String name){ | ||
return RegistryKey.of(RegistryKeys.POINT_OF_INTEREST_TYPE,new Identifier(TutorialMod.MOD_ID,name)); | ||
} | ||
public static void registerVillagers(){ | ||
|
||
} | ||
} |
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
Binary file added
BIN
+1.66 KB
...ces/assets/tutorialmod/textures/entity/villager/profession/ice_ether_master.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.