Skip to content

Commit

Permalink
v2.0 - Refinement
Browse files Browse the repository at this point in the history
  • Loading branch information
DakotaPride committed Aug 31, 2024
1 parent cd12f96 commit cd57a79
Show file tree
Hide file tree
Showing 322 changed files with 3,887 additions and 1,334 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ org.gradle.jvmargs=-Xmx2G
# Mod Info
maven_group = net.dakotapride
archives_base_name = garnished
mod_version = 1.9.8
mod_version = 2.0

minecraft_version = 1.19.2

Expand Down
124 changes: 122 additions & 2 deletions src/main/java/net/dakotapride/garnished/CreateGarnished.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@
import net.dakotapride.garnished.registry.GarnishedAdvancementUtils;
import net.dakotapride.garnished.registry.GarnishedBlockEntities;
import net.dakotapride.garnished.registry.GarnishedEnchantments;
import net.dakotapride.garnished.registry.GarnishedFoodValues;
import net.dakotapride.garnished.registry.GarnishedRecipeTypes;
import net.fabricmc.fabric.api.biome.v1.BiomeModifications;

import net.fabricmc.fabric.api.biome.v1.BiomeSelectors;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.tags.BiomeTags;
import net.minecraft.world.level.biome.Biomes;
import net.minecraft.world.level.block.ComposterBlock;
import net.minecraft.world.level.levelgen.GenerationStep;

import org.slf4j.Logger;
Expand All @@ -26,7 +28,6 @@
import net.dakotapride.garnished.registry.GarnishedEffects;
import net.dakotapride.garnished.registry.GarnishedFeatures;
import net.dakotapride.garnished.registry.GarnishedFluids;
import net.dakotapride.garnished.registry.GarnishedFoods;
import net.dakotapride.garnished.registry.GarnishedItems;
import net.dakotapride.garnished.registry.GarnishedTabs;
import net.dakotapride.garnished.registry.GarnishedTags;
Expand Down Expand Up @@ -58,7 +59,7 @@ public void onInitialize() {
GarnishedBlocks.setRegister();
GarnishedTabs.setRegister();
GarnishedFluids.setRegister();
GarnishedFoods.setRegister();
GarnishedFoodValues.setRegister();
GarnishedEffects.setRegister();
GarnishedFeatures.setRegister();
GarnishedTags.setRegister();
Expand Down Expand Up @@ -119,6 +120,125 @@ public void onInitialize() {
StrippableBlockRegistry.register(GarnishedBlocks.NUT_LOG.get(), GarnishedBlocks.STRIPPED_NUT_LOG.get());
StrippableBlockRegistry.register(GarnishedBlocks.NUT_WOOD.get(), GarnishedBlocks.STRIPPED_NUT_WOOD.get());


ComposterBlock.COMPOSTABLES.put(GarnishedItems.CRACKED_BUHG.get(), 0.10f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.CRACKED_CASHEW.get(), 0.10f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.CRACKED_WALNUT.get(), 0.10f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.CRACKED_ALMOND.get(), 0.10f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.CRACKED_PISTACHIO.get(), 0.10f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.CRACKED_PECAN.get(), 0.10f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.CRACKED_MACADAMIA.get(), 0.10f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.CRACKED_HAZELNUT.get(), 0.10f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.CRACKED_CHESTNUT.get(), 0.10f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.UNGARNISHED_BUHG.get(), 0.15f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.UNGARNISHED_CASHEW.get(), 0.15f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.UNGARNISHED_WALNUT.get(), 0.15f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.UNGARNISHED_ALMOND.get(), 0.15f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.UNGARNISHED_PISTACHIO.get(), 0.15f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.UNGARNISHED_PECAN.get(), 0.15f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.UNGARNISHED_MACADAMIA.get(), 0.15f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.UNGARNISHED_HAZELNUT.get(), 0.15f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.UNGARNISHED_CHESTNUT.get(), 0.15f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.BUHG.get(), 0.20f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.CASHEW.get(), 0.20f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.WALNUT.get(), 0.20f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.ALMOND.get(), 0.20f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.PISTACHIO.get(), 0.20f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.PECAN.get(), 0.20f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.MACADAMIA.get(), 0.20f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.HAZELNUT.get(), 0.20f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.CHESTNUT.get(), 0.20f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.CHOCOLATE_GLAZED_BUHG.get(), 0.25f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.CHOCOLATE_GLAZED_CASHEW.get(), 0.25f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.CHOCOLATE_GLAZED_WALNUT.get(), 0.25f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.CHOCOLATE_GLAZED_ALMOND.get(), 0.25f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.CHOCOLATE_GLAZED_PISTACHIO.get(), 0.25f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.CHOCOLATE_GLAZED_PECAN.get(), 0.25f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.CHOCOLATE_GLAZED_MACADAMIA.get(), 0.25f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.CHOCOLATE_GLAZED_HAZELNUT.get(), 0.25f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.CHOCOLATE_GLAZED_CHESTNUT.get(), 0.25f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.SWEETENED_BUHG.get(), 0.25f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.SWEETENED_CASHEW.get(), 0.25f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.SWEETENED_WALNUT.get(), 0.25f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.SWEETENED_ALMOND.get(), 0.25f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.SWEETENED_PISTACHIO.get(), 0.25f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.SWEETENED_PECAN.get(), 0.25f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.SWEETENED_MACADAMIA.get(), 0.25f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.SWEETENED_HAZELNUT.get(), 0.25f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.SWEETENED_CHESTNUT.get(), 0.25f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.HONEYED_BUHG.get(), 0.25f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.HONEYED_CASHEW.get(), 0.25f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.HONEYED_WALNUT.get(), 0.25f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.HONEYED_ALMOND.get(), 0.25f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.HONEYED_PISTACHIO.get(), 0.25f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.HONEYED_PECAN.get(), 0.25f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.HONEYED_MACADAMIA.get(), 0.25f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.HONEYED_HAZELNUT.get(), 0.25f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.HONEYED_CHESTNUT.get(), 0.25f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.CINDER_FLOUR_BUHG.get(), 0.30f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.CINDER_FLOUR_CASHEW.get(), 0.30f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.CINDER_FLOUR_WALNUT.get(), 0.30f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.CINDER_FLOUR_ALMOND.get(), 0.30f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.CINDER_FLOUR_PISTACHIO.get(), 0.30f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.CINDER_FLOUR_PECAN.get(), 0.30f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.CINDER_FLOUR_MACADAMIA.get(), 0.30f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.CINDER_FLOUR_HAZELNUT.get(), 0.30f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.CINDER_FLOUR_CHESTNUT.get(), 0.30f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.MELTED_CINDER_FLOUR_BUHG.get(), 0.40f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.MELTED_CINDER_FLOUR_CASHEW.get(), 0.40f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.MELTED_CINDER_FLOUR_WALNUT.get(), 0.40f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.MELTED_CINDER_FLOUR_ALMOND.get(), 0.40f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.MELTED_CINDER_FLOUR_PISTACHIO.get(), 0.40f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.MELTED_CINDER_FLOUR_PECAN.get(), 0.40f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.MELTED_CINDER_FLOUR_MACADAMIA.get(), 0.40f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.MELTED_CINDER_FLOUR_HAZELNUT.get(), 0.40f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.MELTED_CINDER_FLOUR_CHESTNUT.get(), 0.40f);
ComposterBlock.COMPOSTABLES.put(GarnishedBlocks.NUT_LEAVES.get().asItem(), 0.35f);
ComposterBlock.COMPOSTABLES.put(GarnishedBlocks.UNASSIGNED_NUT_LEAVES.get().asItem(), 0.35f);
ComposterBlock.COMPOSTABLES.put(GarnishedBlocks.BUHG_LEAVES.get().asItem(), 0.35f);
ComposterBlock.COMPOSTABLES.put(GarnishedBlocks.CASHEW_LEAVES.get().asItem(), 0.35f);
ComposterBlock.COMPOSTABLES.put(GarnishedBlocks.WALNUT_LEAVES.get().asItem(), 0.35f);
ComposterBlock.COMPOSTABLES.put(GarnishedBlocks.ALMOND_LEAVES.get().asItem(), 0.35f);
ComposterBlock.COMPOSTABLES.put(GarnishedBlocks.PISTACHIO_LEAVES.get().asItem(), 0.35f);
ComposterBlock.COMPOSTABLES.put(GarnishedBlocks.PECAN_LEAVES.get().asItem(), 0.35f);
ComposterBlock.COMPOSTABLES.put(GarnishedBlocks.MACADAMIA_LEAVES.get().asItem(), 0.35f);
ComposterBlock.COMPOSTABLES.put(GarnishedBlocks.HAZELNUT_LEAVES.get().asItem(), 0.35f);
ComposterBlock.COMPOSTABLES.put(GarnishedBlocks.CHESTNUT_LEAVES.get().asItem(), 0.35f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.PECAN_PIE_SLICE.get(), 0.25f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.PECAN_PIE.get(), 1.0f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.ALMOND_CHEESE.get(), 0.20f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.SALAD.get(), 0.75f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.CRUSHED_CRIMSON_FUNGUS.get(), 0.35f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.CRUSHED_WARPED_FUNGUS.get(), 0.35f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.CRUSHED_SEPIA_FUNGUS.get(), 0.35f);
ComposterBlock.COMPOSTABLES.put(GarnishedBlocks.SEPIA_FUNGUS.get().asItem(), 0.65f);
ComposterBlock.COMPOSTABLES.put(Items.CHORUS_FRUIT, 0.45f);
ComposterBlock.COMPOSTABLES.put(Items.CHORUS_FLOWER, 0.65f);
ComposterBlock.COMPOSTABLES.put(Items.CHORUS_PLANT, 0.65f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.HOLLOWED_CHORUS_FRUIT.get(), 0.35f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.CHORUS_TUFT.get(), 0.10f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.MULCH.get(), 0.25f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.WHEAT_GRAZE.get(), 0.65f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.DRIED_DULSE_KELP.get(), 0.30f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.DRIED_VERMILION_KELP.get(), 0.30f);
ComposterBlock.COMPOSTABLES.put(GarnishedBlocks.DULSE_KELP.get().asItem(), 0.30f);
ComposterBlock.COMPOSTABLES.put(GarnishedBlocks.VERMILION_KELP.get().asItem(), 0.30f);
ComposterBlock.COMPOSTABLES.put(GarnishedBlocks.DRIED_DULSE_KELP_BLOCK.get().asItem(), 0.50f);
ComposterBlock.COMPOSTABLES.put(GarnishedBlocks.DRIED_VERMILION_KELP_BLOCK.get().asItem(), 0.50f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.PRICKLY_PEAR.get(), 0.45f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.BAMBOO_CLOD.get(), 0.45f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.BOK_CHOY.get(), 0.65f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.BOK_CHOY_SEEDS.get(), 0.30f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.PANSOPHICAL_PETAL.get(), 0.45f);
ComposterBlock.COMPOSTABLES.put(GarnishedItems.INCANDESCENT_PETAL.get(), 0.45f);
ComposterBlock.COMPOSTABLES.put(GarnishedBlocks.PANSOPHICAL_DAISY.get().asItem(), 0.65f);
ComposterBlock.COMPOSTABLES.put(GarnishedBlocks.INCANDESCENT_LILY.get().asItem(), 0.65f);
ComposterBlock.COMPOSTABLES.put(GarnishedBlocks.SORROWFUL_LICHEN.get().asItem(), 0.65f);
ComposterBlock.COMPOSTABLES.put(GarnishedBlocks.SOUL_ROOTS.get().asItem(), 0.65f);
ComposterBlock.COMPOSTABLES.put(GarnishedBlocks.AUREATE_SHRUB.get().asItem(), 0.65f);
ComposterBlock.COMPOSTABLES.put(GarnishedBlocks.SMALL_CHORUS_PLANT.get().asItem(), 0.65f);
ComposterBlock.COMPOSTABLES.put(GarnishedBlocks.BARREN_ROOTS.get().asItem(), 0.65f);

}

public static CreateRegistrate registrate() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ public void onInitializeClient() {

BlockRenderLayerMap.INSTANCE.putBlock(GarnishedBlocks.NUT_PLANT.get(), RenderType.cutout());
BlockRenderLayerMap.INSTANCE.putBlock(GarnishedBlocks.NUT_LEAVES.get(), RenderType.cutout());
BlockRenderLayerMap.INSTANCE.putBlock(GarnishedBlocks.UNASSIGNED_NUT_LEAVES.get(), RenderType.cutout());

BlockRenderLayerMap.INSTANCE.putBlock(GarnishedBlocks.ALMOND_LEAVES.get(), RenderType.cutoutMipped());
BlockRenderLayerMap.INSTANCE.putBlock(GarnishedBlocks.CASHEW_LEAVES.get(), RenderType.cutoutMipped());
Expand Down Expand Up @@ -127,8 +128,8 @@ public void onInitializeClient() {

public static synchronized void blockColourProvider(BlockColors colors) {
colors.register((unknown, lightReader, pos, unknown2) -> lightReader != null && pos != null ?
BiomeColors.getAverageFoliageColor(lightReader, pos) : FoliageColor.get(0.5D, 1.0D),
GarnishedBlocks.NUT_LEAVES.get(),
BiomeColors.getAverageFoliageColor(lightReader, pos) : FoliageColor.get(0.6D, 1.0D),
GarnishedBlocks.NUT_LEAVES.get(), GarnishedBlocks.UNASSIGNED_NUT_LEAVES.get(),
GarnishedBlocks.ALMOND_LEAVES.get(), GarnishedBlocks.CASHEW_LEAVES.get(), GarnishedBlocks.WALNUT_LEAVES.get(),
GarnishedBlocks.PECAN_LEAVES.get(), GarnishedBlocks.BUHG_LEAVES.get(), GarnishedBlocks.PISTACHIO_LEAVES.get(),
GarnishedBlocks.MACADAMIA_LEAVES.get(), GarnishedBlocks.HAZELNUT_LEAVES.get(), GarnishedBlocks.CHESTNUT_LEAVES.get());
Expand All @@ -140,7 +141,7 @@ public static synchronized void itemColourProvider(BlockColors colors, ItemColor
return colors.getColor(state, null, null, tintIndex);
};

itemColors.register(itemBlockColourHandler, GarnishedBlocks.NUT_LEAVES.get(),
itemColors.register(itemBlockColourHandler, GarnishedBlocks.NUT_LEAVES.get(), GarnishedBlocks.UNASSIGNED_NUT_LEAVES.get(),
GarnishedBlocks.ALMOND_LEAVES.get(), GarnishedBlocks.CASHEW_LEAVES.get(), GarnishedBlocks.WALNUT_LEAVES.get(),
GarnishedBlocks.PECAN_LEAVES.get(), GarnishedBlocks.BUHG_LEAVES.get(), GarnishedBlocks.PISTACHIO_LEAVES.get(),
GarnishedBlocks.MACADAMIA_LEAVES.get(), GarnishedBlocks.HAZELNUT_LEAVES.get(), GarnishedBlocks.CHESTNUT_LEAVES.get());
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
package net.dakotapride.garnished.block;

import org.jetbrains.annotations.NotNull;

import net.minecraft.core.BlockPos;
import net.minecraft.util.RandomSource;
import net.minecraft.world.entity.Entity;
import net.minecraft.world.level.Level;
import net.minecraft.world.level.block.Block;
import net.minecraft.world.level.block.state.BlockState;

public class DragonStoneBlock extends Block {
public DragonStoneBlock(Properties properties) {
super(properties);
}

@Override
public void animateTick(@NotNull BlockState state, @NotNull Level level, @NotNull BlockPos pos, @NotNull RandomSource random) {
SpecialEffectsBlock.Wyvern.getParticles(state, level, pos, random);
}

@Override
public void stepOn(@NotNull Level level, @NotNull BlockPos pos, @NotNull BlockState state, @NotNull Entity entity) {
SpecialEffectsBlock.Wyvern.getEffects(level, pos, state, entity);

super.stepOn(level, pos, state, entity);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
package net.dakotapride.garnished.block;

import org.jetbrains.annotations.NotNull;

import net.minecraft.core.BlockPos;
import net.minecraft.util.RandomSource;
import net.minecraft.world.entity.Entity;
import net.minecraft.world.level.Level;
import net.minecraft.world.level.block.SlabBlock;
import net.minecraft.world.level.block.state.BlockState;

public class DragonStoneSlabBlock extends SlabBlock {
public DragonStoneSlabBlock(Properties properties) {
super(properties);
}

@Override
public void animateTick(@NotNull BlockState state, @NotNull Level level, @NotNull BlockPos pos, @NotNull RandomSource random) {
SpecialEffectsBlock.Wyvern.getParticles(state, level, pos, random);
}

@Override
public void stepOn(@NotNull Level level, @NotNull BlockPos pos, @NotNull BlockState state, @NotNull Entity entity) {
SpecialEffectsBlock.Wyvern.getEffects(level, pos, state, entity);

super.stepOn(level, pos, state, entity);
}
}
Original file line number Diff line number Diff line change
@@ -1,10 +1,29 @@
package net.dakotapride.garnished.block;

import org.jetbrains.annotations.NotNull;

import net.dakotapride.garnished.registry.GarnishedBlocks;
import net.minecraft.core.BlockPos;
import net.minecraft.util.RandomSource;
import net.minecraft.world.entity.Entity;
import net.minecraft.world.level.Level;
import net.minecraft.world.level.block.StairBlock;
import net.minecraft.world.level.block.state.BlockState;

public class DragonStoneStairsBlock extends StairBlock {
public DragonStoneStairsBlock(Properties properties) {
super(GarnishedBlocks.DRAGON_STONE.get().defaultBlockState(), properties);
}

@Override
public void animateTick(@NotNull BlockState state, @NotNull Level level, @NotNull BlockPos pos, @NotNull RandomSource random) {
SpecialEffectsBlock.Wyvern.getParticles(state, level, pos, random);
}

@Override
public void stepOn(@NotNull Level level, @NotNull BlockPos pos, @NotNull BlockState state, @NotNull Entity entity) {
SpecialEffectsBlock.Wyvern.getEffects(level, pos, state, entity);

super.stepOn(level, pos, state, entity);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
package net.dakotapride.garnished.block;

import org.jetbrains.annotations.NotNull;

import net.minecraft.core.BlockPos;
import net.minecraft.util.RandomSource;
import net.minecraft.world.entity.Entity;
import net.minecraft.world.level.Level;
import net.minecraft.world.level.block.WallBlock;
import net.minecraft.world.level.block.state.BlockState;

public class DragonStoneWallBlock extends WallBlock {
public DragonStoneWallBlock(Properties properties) {
super(properties);
}

@Override
public void animateTick(@NotNull BlockState state, @NotNull Level level, @NotNull BlockPos pos, @NotNull RandomSource random) {
SpecialEffectsBlock.Wyvern.getParticles(state, level, pos, random);
}

@Override
public void stepOn(@NotNull Level level, @NotNull BlockPos pos, @NotNull BlockState state, @NotNull Entity entity) {
SpecialEffectsBlock.Wyvern.getEffects(level, pos, state, entity);

super.stepOn(level, pos, state, entity);
}
}
Loading

0 comments on commit cd57a79

Please sign in to comment.