Sapling fixes & lotus log recipe

This commit is contained in:
paulevsGitch 2020-11-02 03:15:09 +03:00
parent 28f2ac03a9
commit b8d0a1d93f
5 changed files with 37 additions and 0 deletions

View file

@ -1,7 +1,11 @@
package ru.betterend.blocks;
import net.minecraft.block.BlockState;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.WorldView;
import net.minecraft.world.gen.feature.Feature;
import ru.betterend.blocks.basis.BlockFeatureSapling;
import ru.betterend.registry.EndBlocks;
import ru.betterend.registry.EndFeatures;
public class BlockDragonTreeSapling extends BlockFeatureSapling {
@ -13,4 +17,9 @@ public class BlockDragonTreeSapling extends BlockFeatureSapling {
protected Feature<?> getFeature() {
return EndFeatures.DRAGON_TREE.getFeature();
}
@Override
public boolean canPlaceAt(BlockState state, WorldView world, BlockPos pos) {
return world.getBlockState(pos.down()).isOf(EndBlocks.SHADOW_GRASS);
}
}