Some plants fixes
This commit is contained in:
parent
2093c747c6
commit
44dd1c35a9
3 changed files with 18 additions and 0 deletions
|
@ -18,6 +18,7 @@ import net.minecraft.loot.context.LootContextParameters;
|
|||
import net.minecraft.util.math.BlockPos;
|
||||
import net.minecraft.world.World;
|
||||
import ru.betterend.blocks.basis.BlockPlant;
|
||||
import ru.betterend.registry.EndBlocks;
|
||||
import ru.betterend.util.MHelper;
|
||||
|
||||
public class BlockNeedlegrass extends BlockPlant {
|
||||
|
@ -38,4 +39,9 @@ public class BlockNeedlegrass extends BlockPlant {
|
|||
return Lists.newArrayList(new ItemStack(Items.STICK, MHelper.randRange(0, 2, MHelper.RANDOM)));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean isTerrain(BlockState state) {
|
||||
return state.isOf(EndBlocks.SHADOW_GRASS);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue