mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-11-25 20:58:34 +01:00
Compare commits
No commits in common. "d82640a8437baa6376588bb50a64b4d98b5d2e52" and "2ba62a505d8fc32c8a2607b65b01d67ce64b7583" have entirely different histories.
d82640a843
...
2ba62a505d
14 changed files with 31 additions and 56 deletions
|
@ -13,7 +13,7 @@ apply plugin: 'net.minecraftforge.gradle'
|
||||||
apply plugin: 'eclipse'
|
apply plugin: 'eclipse'
|
||||||
apply plugin: 'maven-publish'
|
apply plugin: 'maven-publish'
|
||||||
|
|
||||||
version = '36.2'
|
version = '36.1'
|
||||||
group = 'de.ellpeck.naturesaura' // http://maven.apache.org/guides/mini/guide-naming-conventions.html
|
group = 'de.ellpeck.naturesaura' // http://maven.apache.org/guides/mini/guide-naming-conventions.html
|
||||||
archivesBaseName = 'NaturesAura'
|
archivesBaseName = 'NaturesAura'
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"replace": false,
|
"replace": false,
|
||||||
"values": [
|
"values": [
|
||||||
"naturesaura:aura_cache",
|
"naturesaura:aura_cache",
|
||||||
"naturesaura:aura_trove"
|
"naturesaura:aura_trove"
|
||||||
]
|
]
|
||||||
}
|
}
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"replace": false,
|
"replace": false,
|
||||||
"values": [
|
"values": [
|
||||||
"naturesaura:eye",
|
"naturesaura:eye",
|
||||||
"naturesaura:eye_improved"
|
"naturesaura:eye_improved"
|
||||||
]
|
]
|
||||||
}
|
}
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"replace": false,
|
"replace": false,
|
||||||
"values": [
|
"values": [
|
||||||
"naturesaura:shockwave_creator"
|
"naturesaura:shockwave_creator"
|
||||||
]
|
]
|
||||||
}
|
}
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"replace": false,
|
"replace": false,
|
||||||
"values": [
|
"values": [
|
||||||
"naturesaura:death_ring"
|
"naturesaura:death_ring"
|
||||||
]
|
]
|
||||||
}
|
}
|
6
src/generated/resources/data/forge/tags/blocks/dirt.json
Normal file
6
src/generated/resources/data/forge/tags/blocks/dirt.json
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"replace": false,
|
||||||
|
"values": [
|
||||||
|
"naturesaura:nether_grass"
|
||||||
|
]
|
||||||
|
}
|
|
@ -1,6 +0,0 @@
|
||||||
{
|
|
||||||
"replace": false,
|
|
||||||
"values": [
|
|
||||||
"naturesaura:nether_grass"
|
|
||||||
]
|
|
||||||
}
|
|
|
@ -1,6 +0,0 @@
|
||||||
{
|
|
||||||
"replace": false,
|
|
||||||
"values": [
|
|
||||||
"#minecraft:stone_bricks"
|
|
||||||
]
|
|
||||||
}
|
|
|
@ -1,6 +0,0 @@
|
||||||
{
|
|
||||||
"replace": false,
|
|
||||||
"values": [
|
|
||||||
"#minecraft:planks"
|
|
||||||
]
|
|
||||||
}
|
|
|
@ -1,6 +0,0 @@
|
||||||
{
|
|
||||||
"replace": false,
|
|
||||||
"values": [
|
|
||||||
"minecraft:nether_bricks"
|
|
||||||
]
|
|
||||||
}
|
|
|
@ -26,8 +26,8 @@ public final class Multiblocks {
|
||||||
new ResourceLocation(NaturesAura.MOD_ID, "altar"),
|
new ResourceLocation(NaturesAura.MOD_ID, "altar"),
|
||||||
ALTAR_PATTERN,
|
ALTAR_PATTERN,
|
||||||
'C', Blocks.CHISELED_STONE_BRICKS,
|
'C', Blocks.CHISELED_STONE_BRICKS,
|
||||||
'B', Matcher.tag(Blocks.STONE_BRICKS, BlockTagProvider.ALTAR_STONE),
|
'B', Blocks.STONE_BRICKS,
|
||||||
'W', Matcher.tag(Blocks.OAK_PLANKS, BlockTagProvider.ALTAR_WOOD),
|
'W', Matcher.tag(Blocks.OAK_PLANKS, BlockTags.PLANKS),
|
||||||
'M', ModBlocks.GOLD_BRICK,
|
'M', ModBlocks.GOLD_BRICK,
|
||||||
'0', ModBlocks.NATURE_ALTAR,
|
'0', ModBlocks.NATURE_ALTAR,
|
||||||
' ', Matcher.wildcard());
|
' ', Matcher.wildcard());
|
||||||
|
@ -35,7 +35,7 @@ public final class Multiblocks {
|
||||||
new ResourceLocation(NaturesAura.MOD_ID, "nether_altar"),
|
new ResourceLocation(NaturesAura.MOD_ID, "nether_altar"),
|
||||||
ALTAR_PATTERN,
|
ALTAR_PATTERN,
|
||||||
'C', Blocks.RED_NETHER_BRICKS,
|
'C', Blocks.RED_NETHER_BRICKS,
|
||||||
'B', Matcher.tag(Blocks.NETHER_BRICKS, BlockTagProvider.NETHER_ALTAR_STONE),
|
'B', Blocks.NETHER_BRICKS,
|
||||||
'W', Matcher.tag(Blocks.CRIMSON_PLANKS, BlockTagProvider.NETHER_ALTAR_WOOD),
|
'W', Matcher.tag(Blocks.CRIMSON_PLANKS, BlockTagProvider.NETHER_ALTAR_WOOD),
|
||||||
'M', ModBlocks.GOLD_NETHER_BRICK,
|
'M', ModBlocks.GOLD_NETHER_BRICK,
|
||||||
'0', ModBlocks.NATURE_ALTAR.defaultBlockState().setValue(BlockNatureAltar.NETHER, true),
|
'0', ModBlocks.NATURE_ALTAR.defaultBlockState().setValue(BlockNatureAltar.NETHER, true),
|
||||||
|
|
|
@ -110,7 +110,7 @@ public class PatchouliCompat implements ICompat {
|
||||||
event.getMouseX(), event.getMouseY(), gui.getMinecraft().font);
|
event.getMouseX(), event.getMouseY(), gui.getMinecraft().font);
|
||||||
} else if (now.getMonth() == Month.JUNE) {
|
} else if (now.getMonth() == Month.JUNE) {
|
||||||
var x = gui.width / 2 + 272 / 2;
|
var x = gui.width / 2 + 272 / 2;
|
||||||
var y = gui.height / 2 + 32;
|
var y = gui.height / 2 - 180 / 2 + 16;
|
||||||
|
|
||||||
RenderSystem.setShader(GameRenderer::getPositionTexShader);
|
RenderSystem.setShader(GameRenderer::getPositionTexShader);
|
||||||
RenderSystem.setShaderTexture(0, ClientEvents.BOOK_GUI);
|
RenderSystem.setShaderTexture(0, ClientEvents.BOOK_GUI);
|
||||||
|
@ -118,7 +118,7 @@ public class PatchouliCompat implements ICompat {
|
||||||
|
|
||||||
if (event.getMouseX() >= x && event.getMouseY() >= y && event.getMouseX() < x + 45 && event.getMouseY() < y + 26)
|
if (event.getMouseX() >= x && event.getMouseY() >= y && event.getMouseX() < x + 45 && event.getMouseY() < y + 26)
|
||||||
gui.renderComponentTooltip(event.getPoseStack(),
|
gui.renderComponentTooltip(event.getPoseStack(),
|
||||||
Collections.singletonList(new TextComponent("\u00A76Happy \u00A74P\u00A76r\u00A7ei\u00A72d\u00A79e\u00A75!")),
|
Collections.singletonList(new TextComponent("§6Happy §4P§6r§ei§2d§9e§5!")),
|
||||||
event.getMouseX(), event.getMouseY(), gui.getMinecraft().font);
|
event.getMouseX(), event.getMouseY(), gui.getMinecraft().font);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -15,10 +15,7 @@ import org.jetbrains.annotations.Nullable;
|
||||||
|
|
||||||
public class BlockTagProvider extends BlockTagsProvider {
|
public class BlockTagProvider extends BlockTagsProvider {
|
||||||
|
|
||||||
public static final TagKey<Block> ALTAR_WOOD = BlockTags.create(new ResourceLocation(NaturesAura.MOD_ID, "altar_wood"));
|
|
||||||
public static final TagKey<Block> ALTAR_STONE = BlockTags.create(new ResourceLocation(NaturesAura.MOD_ID, "altar_stone"));
|
|
||||||
public static final TagKey<Block> NETHER_ALTAR_WOOD = BlockTags.create(new ResourceLocation(NaturesAura.MOD_ID, "nether_altar_wood"));
|
public static final TagKey<Block> NETHER_ALTAR_WOOD = BlockTags.create(new ResourceLocation(NaturesAura.MOD_ID, "nether_altar_wood"));
|
||||||
public static final TagKey<Block> NETHER_ALTAR_STONE = BlockTags.create(new ResourceLocation(NaturesAura.MOD_ID, "nether_altar_stone"));
|
|
||||||
|
|
||||||
public BlockTagProvider(DataGenerator gen, @Nullable ExistingFileHelper existingFileHelper) {
|
public BlockTagProvider(DataGenerator gen, @Nullable ExistingFileHelper existingFileHelper) {
|
||||||
super(gen, NaturesAura.MOD_ID, existingFileHelper);
|
super(gen, NaturesAura.MOD_ID, existingFileHelper);
|
||||||
|
@ -34,10 +31,6 @@ public class BlockTagProvider extends BlockTagsProvider {
|
||||||
this.tag(BlockTags.SLABS).add(ModBlocks.ANCIENT_SLAB, ModBlocks.INFUSED_SLAB, ModBlocks.INFUSED_BRICK_SLAB);
|
this.tag(BlockTags.SLABS).add(ModBlocks.ANCIENT_SLAB, ModBlocks.INFUSED_SLAB, ModBlocks.INFUSED_BRICK_SLAB);
|
||||||
this.tag(BlockTags.DIRT).add(ModBlocks.NETHER_GRASS);
|
this.tag(BlockTags.DIRT).add(ModBlocks.NETHER_GRASS);
|
||||||
this.tag(BlockTags.SMALL_FLOWERS).add(ModBlocks.END_FLOWER, ModBlocks.AURA_BLOOM);
|
this.tag(BlockTags.SMALL_FLOWERS).add(ModBlocks.END_FLOWER, ModBlocks.AURA_BLOOM);
|
||||||
this.tag(ALTAR_WOOD).addTag(BlockTags.PLANKS);
|
|
||||||
this.tag(ALTAR_STONE).addTag(BlockTags.STONE_BRICKS);
|
|
||||||
this.tag(NETHER_ALTAR_WOOD).add(Blocks.CRIMSON_PLANKS, Blocks.WARPED_PLANKS);
|
this.tag(NETHER_ALTAR_WOOD).add(Blocks.CRIMSON_PLANKS, Blocks.WARPED_PLANKS);
|
||||||
this.tag(NETHER_ALTAR_STONE).add(Blocks.NETHER_BRICKS);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -136,8 +136,8 @@ public class EntityEffectInhibitor extends Entity implements IVisualizable {
|
||||||
@Override
|
@Override
|
||||||
public boolean hurt(DamageSource source, float amount) {
|
public boolean hurt(DamageSource source, float amount) {
|
||||||
if (source instanceof EntityDamageSource && !this.level.isClientSide) {
|
if (source instanceof EntityDamageSource && !this.level.isClientSide) {
|
||||||
this.spawnAtLocation(this.getDrop(), 0F);
|
|
||||||
this.kill();
|
this.kill();
|
||||||
|
this.spawnAtLocation(this.getDrop(), 0F);
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
return super.hurt(source, amount);
|
return super.hurt(source, amount);
|
||||||
|
|
Loading…
Reference in a new issue